From: Haiying Wang Date: Thu, 25 Nov 2010 11:20:18 -0500 Subject: [U-Boot] [PATCH 09/24 V2] arch/powerpc/*/config.mk: makeCONFIG_SYS_LDSCRIPT settings work In-Reply-To: <1290700844-31427-10-git-send-email-wd@denx.de> References: <1290373420-3053-1-git-send-email-wd@denx.de> <1290700844-31427-10-git-send-email-wd@denx.de> Message-ID: <1290702018.2007.4.camel@haiying-laptop> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 2010-11-25 at 09:00 -0700, Wolfgang Denk wrote: > As we try to get rid of board specific config.mk files we must > provide a way for board specific settings of the LDSCRIPT variable > (path to the linker script) where needed. > > We now implement the following hierarchy: > > - Highest priority has a "#define CONFIG_SYS_LDCONFIG" in the board > config file. > - If CONFIG_SYS_LDCONFIG is not set, and the system is booting from > NAND (CONFIG_NAND_U_BOOT is set), then a board specific linker > script board/$(BOARDDIR)/u-boot-nand.lds gets use. u-boot-nand.lds is not in board/$(BOARDDIR) for 85xx at least, it is in $(SRCTREE)/$(CPUDIR)/ > - If we are not booting from NAND, we test if a processor specific > linker script arch/powerpc/cpu/$(CPU)/u-boot.lds exists; if so we > use that. should we use $(CPUDIR) instead of arch/powerpc/cpu/$(CPU)? Haiying