svn commit: trunk/buildroot/target/u-boot
Author: jacmet
Date: 2008-06-11 06:07:03 -0700 (Wed, 11 Jun 2008) New Revision: 22292
Log:
u-boot: evaluate U_BOOT_ARCH at use time, rather than Makefile parse time
U_BOOT_ARCH seems to race with KERNEL_ARCH in some situations, so it end up empty. It's only used once, so fix it by using a use-time evaluated variable instead (=).
Modified:
trunk/buildroot/target/u-boot/Makefile.in
Changeset:
Modified: trunk/buildroot/target/u-boot/Makefile.in
===================================================================
buildroot/target/u-boot/Makefile.in +1 -1
@@ -12,7 +12,7 @@ U_BOOT_BIN:=u-boot.bin U_BOOT_TOOLS_BIN:=mkimage # u-boot still uses arch=ppc for powerpc -U_BOOT_ARCH:=$(shell echo $(KERNEL_ARCH)|$(HOST_SED_DIR)/bin/sed 's/powerpc/ppc/') +U_BOOT_ARCH=$(shell echo $(KERNEL_ARCH)|$(HOST_SED_DIR)/bin/sed 's/powerpc/ppc/') ifneq ($(BR2_TARGET_U_BOOT_CONFIG_BOARD),) U_BOOT_INC_CONF_FILE:=$(U_BOOT_DIR)/include/configs/$(subst _config,,$(BR2_TARGET_U_BOOT_CONFIG_BOARD)).h
buildroot/target/u-boot/Makefile.in line 15
Quoted 2 lines · jacmet at uclibc.org
buildroot/target/u-boot/Makefile.in +1
-1-U_BOOT_ARCH:=$(shell echo $(KERNEL_ARCH)|$(HOST_SED_DIR)/bin/sed 's/powerpc/ppc/') +U_BOOT_ARCH=$(shell echo $(KERNEL_ARCH)|$(HOST_SED_DIR)/bin/sed 's/powerpc/ppc/')
How about
U_BOOT_ARCH=$(KERNEL_ARCH:powerpc=ppc)
anyway.. less ugly than calling the shell + sed.
Hamish
Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Hamish" == Hamish Moffatt <[email protected]> writes:
Hi,
Quoted 1 line
Quoted 1 line
+U_BOOT_ARCH=$(shell echo $(KERNEL_ARCH)|$(HOST_SED_DIR)/bin/sed 's/powerpc/ppc/')
Hamish> How about
Hamish> U_BOOT_ARCH=$(KERNEL_ARCH:powerpc=ppc)
Hamish> anyway.. less ugly than calling the shell + sed.
Ah yes, ofcause - Fixed. U-boot supports ARCH=powerpc from 1.3.3 on though.
Signature · 1 line
Bye, Peter Korsgaard