aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2010-08-23 23:26:41 -0600
committerEric Miao <eric.miao@linaro.org>2011-03-07 22:53:09 +0800
commit1ad6548a8ab1b32182e6f2fbaad05e0226bdfe12 (patch)
tree5d657193710892e67c00f04128f81777d6a229ed
parentdc24f3eb840e48044a255c5a4b2b2c6d8adfcaf5 (diff)
downloadu-boot-linaro-natty-1ad6548a8ab1b32182e6f2fbaad05e0226bdfe12.tar.gz
LINARO: Add per platform make targets
Install u-boot.bin for most targets. Install u-boot.imx for mx51. Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r--debian/changelog1
-rwxr-xr-xdebian/rules29
2 files changed, 18 insertions, 12 deletions
diff --git a/debian/changelog b/debian/changelog
index b3102ce5c..20edf5afe 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,7 @@ u-boot-linaro (v2010.06-695-gbd23130-linaro-2) lucid; urgency=low
NET: Add driver for Micrel KS8851
ARMV7: Add Micrel KS8851 net chip support to OMAP4430 SDP
* Same versatile express patches from Matt Waddel as before.
+ * Updated packaging to include platform specific install targets
-- John Rigby <john.rigby@linaro.org> Mon, 23 Aug 2010 22:54:44 -0600
diff --git a/debian/rules b/debian/rules
index 5b61ff6de..20f0e7598 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,11 +15,11 @@ endif
#export DH_VERBOSE=1
#export DH_OPTIONS=-v
-PLATFORMS= \
- ca9x4_ct_vxp \
- mx51evk \
- omap3_beagle \
- omap4_panda
+PLATFORMS_AND_TARGETS= \
+ ca9x4_ct_vxp u-boot.bin\
+ mx51evk u-boot.imx\
+ omap3_beagle u-boot.bin\
+ omap4_panda u-boot.bin
%:
dh --with quilt $@
@@ -31,15 +31,20 @@ override_dh_auto_clean:
$(MAKE) distclean
rm -rf debian/build
+# the u-boot.imx target does not work with O= and make mrproper
+# removes all *.bin files in the tree so we use rsync to make
+# a copy of the tree for each platform
override_dh_auto_build:
- for plat in $(PLATFORMS); do \
- $(MAKE) O=debian/build/$$plat mrproper; \
- $(MAKE) O=debian/build/$$plat $${plat}_config; \
- $(MAKE) O=debian/build/$$plat; \
-# mkdir -p debian/build/$$plat; touch debian/build/$$plat/u-boot.bin; \
+ echo $(PLATFORMS_AND_TARGETS)| xargs -n 2 | \
+ while read plat target; do \
+ mkdir -p debian/build/$$plat; \
+ rsync -a --exclude=debian * debian/build/$$plat; \
+ $(MAKE) -C debian/build/$$plat $${plat}_config; \
+ $(MAKE) -C debian/build/$$plat $$target; \
done
override_dh_auto_install:
- for plat in $(PLATFORMS); do \
- install -D -m644 debian/build/$$plat/u-boot.bin debian/tmp/usr/lib/u-boot/u-boot-$$plat.bin; \
+ echo $(PLATFORMS_AND_TARGETS) | xargs -n 2 | \
+ while read plat target; do \
+ install -D -m644 debian/build/$$plat/$$target debian/tmp/usr/lib/u-boot/$$plat/$$target; \
done