diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-07-05 16:54:45 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-07-05 16:54:45 +0200 |
commit | b9997ca731a42eaa4c04dd6c2bf8632b72dac038 (patch) | |
tree | cb899c4c1e4a2a3e60b1b8b31e2114d609652716 /boot/u-boot/u-boot.mk | |
parent | ab10ed8c87c38c54940ee5418b996b7a6ca79642 (diff) |
u-boot: add 2010.06 release
A few minor modifications of u-boot.mk is needed to support 2010.06:
- U-Boot now uses ARCH=powerpc like the kernel (instead of ARCH=ppc)
- Library files have moved, so adjust the target mkimage/fw_printenv rules
(still compatible with older versions)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'boot/u-boot/u-boot.mk')
-rw-r--r-- | boot/u-boot/u-boot.mk | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/boot/u-boot/u-boot.mk b/boot/u-boot/u-boot.mk index ad67343a9..37ed21557 100644 --- a/boot/u-boot/u-boot.mk +++ b/boot/u-boot/u-boot.mk @@ -32,9 +32,12 @@ U_BOOT_BIN:=u-boot.bin MKIMAGE:=$(HOST_DIR)/usr/bin/mkimage U_BOOT_TARGETS:=$(BINARIES_DIR)/$(U_BOOT_BIN) $(MKIMAGE) +U_BOOT_ARCH=$(KERNEL_ARCH) -# u-boot still uses arch=ppc for powerpc +# u-boot in the past used arch=ppc for powerpc +ifneq ($(findstring x200,$(UBOOT_VERSION))$(findstring x2010.03,$(UBOOT_VERSION)),) U_BOOT_ARCH=$(KERNEL_ARCH:powerpc=ppc) +endif U_BOOT_INC_CONF_FILE:=$(U_BOOT_DIR)/include/config.h @@ -147,9 +150,9 @@ $(TARGET_DIR)/usr/bin/mkimage: $(U_BOOT_DIR)/.configured $(U_BOOT_DIR)/common/image.c \ $(wildcard $(addprefix $(U_BOOT_DIR)/tools/,default_image.c \ fit_image.c imximage.c kwbimage.c mkimage.c)) \ - $(addprefix $(U_BOOT_DIR)/lib_generic/,crc32.c md5.c sha1.c) \ + $(addprefix $(U_BOOT_DIR)/lib*/,crc32.c md5.c sha1.c) \ $(U_BOOT_DIR)/tools/os_support.c \ - $(U_BOOT_DIR)/libfdt/fdt*.c + $(wildcard $(U_BOOT_DIR)/libfdt/fdt*.c $(U_BOOT_DIR)/lib/libfdt/fdt*.c) $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@ @@ -158,7 +161,7 @@ $(TARGET_DIR)/usr/sbin/fw_printenv: $(U_BOOT_DIR)/.configured mkdir -p $(@D) $(TARGET_CC) -I$(U_BOOT_DIR)/include -I$(LINUX_HEADERS_DIR)/include \ -DUSE_HOSTCC -o $@ \ - $(U_BOOT_DIR)/tools/env/*.c $(U_BOOT_DIR)/lib_generic/crc32.c + $(U_BOOT_DIR)/tools/env/*.c $(U_BOOT_DIR)/lib*/crc32.c $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@ ln -sf fw_printenv $(TARGET_DIR)/usr/sbin/fw_setenv |