From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shilimkar, Santosh" Subject: RE: [PATCH] ARM: OMAP2/3: Reorganize Makefile to add omap4 support (Re: [PATCH 7/7][RFC] OMAP4: Enable basic build support.) Date: Thu, 23 Apr 2009 10:37:37 +0530 Message-ID: References: <1240319293-19662-1-git-send-email-santosh.shilimkar@ti.com> <1240319293-19662-2-git-send-email-santosh.shilimkar@ti.com> <1240319293-19662-3-git-send-email-santosh.shilimkar@ti.com> <1240319293-19662-4-git-send-email-santosh.shilimkar@ti.com> <1240319293-19662-5-git-send-email-santosh.shilimkar@ti.com> <1240319293-19662-6-git-send-email-santosh.shilimkar@ti.com> <1240319293-19662-7-git-send-email-santosh.shilimkar@ti.com> <20090421183940.GN25864@atomide.com> <20090422190456.GW25864@atomide.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Return-path: Received: from arroyo.ext.ti.com ([192.94.94.40]:47511 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbZDWFHr convert rfc822-to-8bit (ORCPT ); Thu, 23 Apr 2009 01:07:47 -0400 In-Reply-To: <20090422190456.GW25864@atomide.com> Content-Language: en-US Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Tony Lindgren Cc: "linux-omap@vger.kernel.org" > > > This ifeq else we don't want to do as it breaks things > for multi-omap. > > > > How do we handle this. For OMAP4, those files are not > common and needed at this point of time. More so if we agree > that OMAP4 won't support multi-omap, then this should be ok. > > No way we're dropping multi-omap for a few ifdefs. > > We need to have code where we can compile in all the selected things. > In this case we should be able to select any combination of > CONFIG_ARCH_OMAP2, > CONFIG_ARCH_OMAP3, CONFIG_ARCH_OMAP4. And the code already > gets optimized if > only one is selected. > > The recent omap2 clock breakage with trivial clock patches is > already a > good enough reason to support the multi-omap. So basically > all the developers > should do their builds with the multi-omap selected. > > Also the distros want multi-omap. Only the product specific kernels > should be built with only one option selected to optimize for > speed and size. I think most of the things are in place for multi-omap for OMAP4 as well if all the comments are taken care. > > Some thing like this can be done but then Makefile will be > completely rewamped. > > > > # Common support > > obj-y := id.o io.o control.o mux.o devices.o serial.o > gpmc.o timer-gp.o > > > > obj-$(CONFIG_ARCH_OMAP2) += display.o sdrc.o prcm.o clock.o > powerdomain.o clockdomain.o > > obj-$(CONFIG_ARCH_OMAP3) += display.o sdrc.o prcm.o clock.o > powerdomain.o clockdomain.o > > > > Is this OK ? > > How about the attached patch? Looks good. After adding clock support stubs we need to compile almost all files except 'clock.c' so we may not need this completely. But any case, the patch looks cleaner.