From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [PATCH 2/3] Kbuild: Implement CONFIG_UIMAGE_KERNEL_NOLOAD Date: Wed, 07 Mar 2012 11:10:19 -0700 Message-ID: <4F57A48B.1060100@wwwdotorg.org> References: <1331080238-1524-1-git-send-email-swarren@wwwdotorg.org> <1331080238-1524-2-git-send-email-swarren@wwwdotorg.org> <1331103163.2048.33.camel@epip-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from avon.wwwdotorg.org ([70.85.31.133]:33946 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754233Ab2CGSKX (ORCPT ); Wed, 7 Mar 2012 13:10:23 -0500 In-Reply-To: <1331103163.2048.33.camel@epip-laptop> Sender: linux-arch-owner@vger.kernel.org List-ID: To: gxt@mprc.pku.edu.cn Cc: Michal Marek , Russell King , nico@fluxnic.net, Haavard Skinnemoen , Hans-Christian Egtvedt , Mike Frysinger , Michal Simek , Paul Mundt , "David S. Miller" , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-arm-kernel@lists.infradead.org, uclinux-dist-devel@blackfin.uclinux.org, microblaze-uclinux@itee.uq.edu.au, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org On 03/06/2012 11:52 PM, Guan Xuetao wrote: > On Tue, 2012-03-06 at 17:30 -0700, Stephen Warren wrote: >> This allows the user to use U-Boot's mkimage's -T kernel_noload option >> if their arch Kconfig allows it, and they desire. ... > Hi, Stephen, > It seems that UIMAGE_ARCH and UIMAGE_LOADADDR can't be modified from > arch-Makefiles. Oh dear, you're right. I suck at testing:-( I've fixed this locally. For reference, Makefile.lib is included after the Makefile in the relevant source directory, whereas my patch assumed the other way around. So, rather than setting defaults in Makefile.lib and having foo/Makefile override them, I should set the non-defaults in foo/Makefile, and have Makefile.lib provide default values for variables that aren't already set. Testing indicates this solves the problem!