summaryrefslogtreecommitdiff
path: root/polux/Makefile
diff options
context:
space:
mode:
authorJean-Philippe SAVE2012-11-21 11:17:25 +0100
committerJean-Philippe SAVE2012-11-21 18:18:59 +0100
commitc56d1e7ed62a226144c1ee5c1551a4bcb0d89d79 (patch)
treede7a69bf170c35af67ffcaf414c66de4876ba64b /polux/Makefile
parente04835152b435e46bb434a360eaea0a99405275e (diff)
polux: add u-boot in the generated bundle source tree, closes #3476
Diffstat (limited to 'polux/Makefile')
-rw-r--r--polux/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/polux/Makefile b/polux/Makefile
index 0d5322d57d..ad3f64d488 100644
--- a/polux/Makefile
+++ b/polux/Makefile
@@ -13,6 +13,7 @@ BUSYBOX_DIR:=$(APP_DIR)/busybox
BINARIES_DIR=$(TOPDIR)/binaries
GENNVRAM_DIR_FROM_BASE:=common/tools/genNVRAM
+UBOOT_DIR_FROM_BASE:=cleopatre/u-boot-1.1.6
export TOPDIR LINUX_DIR INCLUDE_DIR APP_DIR
@@ -462,6 +463,12 @@ bundle:
(cd $(BASE_DIR) && git archive --format=tar --prefix genNVRAM/ HEAD:$(GENNVRAM_DIR_FROM_BASE)) | tar -x -C $(BUNDLE_DIR)/tools
sed -i -e 's/\(BUNDLE_DIR=\)n/\1y/' $(BUNDLE_DIR)/tools/genNVRAM/Makefile
find $(BUNDLE_DIR)/tools/genNVRAM -name "*.conf" -and -not -name "*200*" -exec rm -f \{\} \;
+ #prepare u-boot part
+ (cd $(BASE_DIR) && git archive --format=tar --prefix u-boot-1.1.6/ HEAD:$(UBOOT_DIR_FROM_BASE)) | tar -x -C $(BUNDLE_DIR)
+ sed -i -e 's/\(EXTRAVERSION *= *\)\(.*\)/\1-$(VERSION_TAG)/' $(BUNDLE_DIR)/u-boot-1.1.6/Makefile
+ $(MAKE) -C $(BUNDLE_DIR)/u-boot-1.1.6 cpincludes
+ rm -f $(BUNDLE_DIR)/u-boot-1.1.6/cpincludes.mk
+ cd $(BUNDLE_DIR)/u-boot-1.1.6 && rm -rf board/arizona cpu/spc300-fcm3 include/asm-arm/arch-spc300-fcm3
#generate plc binaries
mkdir -p $(BUNDLE_DIR)/binaries
make slave_spc200e_defconfig