From patchwork Mon May 9 14:40:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 769462 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p49EefFF019218 for ; Mon, 9 May 2011 14:40:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754016Ab1EIOgf (ORCPT ); Mon, 9 May 2011 10:36:35 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:51441 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753629Ab1EIOgf (ORCPT ); Mon, 9 May 2011 10:36:35 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 32CE31B406F; Mon, 9 May 2011 14:36:34 +0000 (UTC) From: Mike Frysinger To: linux-fbdev@vger.kernel.org, Paul Mundt , linux-omap@vger.kernel.org, Tomi Valkeinen Subject: [PATCH] OMAP2: avoid descending into disabled framebuffer dirs Date: Mon, 9 May 2011 10:40:24 -0400 Message-Id: <1304952024-28296-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.5.rc3 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 09 May 2011 14:40:59 +0000 (UTC) Rather than always add the omap2 dirs to the build list (and thus force everyone to generate a useless built-in.o), bind the dirs to their relevant kconfig symbol. Signed-off-by: Mike Frysinger --- drivers/video/omap2/Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/omap2/Makefile b/drivers/video/omap2/Makefile index d853d05..5ddef12 100644 --- a/drivers/video/omap2/Makefile +++ b/drivers/video/omap2/Makefile @@ -1,6 +1,6 @@ obj-$(CONFIG_OMAP2_VRAM) += vram.o obj-$(CONFIG_OMAP2_VRFB) += vrfb.o -obj-y += dss/ -obj-y += omapfb/ +obj-$(CONFIG_OMAP2_DSS) += dss/ +obj-$(CONFIG_FB_OMAP2) += omapfb/ obj-y += displays/