aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2010-08-25 14:13:06 -0600
committerEric Miao <eric.miao@linaro.org>2011-03-07 22:53:09 +0800
commit7eca9e489a21d656a45452692b67e2eaefb58ac8 (patch)
tree2b1613c7092c392cae96afc103c961c0a3d23a78 /debian/rules
parentd0f1fa06b3b6561114e1083cb27b0f8a56bd8938 (diff)
downloadu-boot-linaro-natty-7eca9e489a21d656a45452692b67e2eaefb58ac8.tar.gz
LINARO: Build one deb per target
Signed-off-by: John Rigby <john.rigby@linaro.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules18
1 files changed, 9 insertions, 9 deletions
diff --git a/debian/rules b/debian/rules
index 20f0e7598..365d34c4b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,10 +16,10 @@ endif
#export DH_OPTIONS=-v
PLATFORMS_AND_TARGETS= \
- ca9x4_ct_vxp u-boot.bin\
- mx51evk u-boot.imx\
- omap3_beagle u-boot.bin\
- omap4_panda u-boot.bin
+ ca9x4_ct_vxp u-boot.bin ca9x4-ct-vxp\
+ mx51evk u-boot.imx mx51evk\
+ omap3_beagle u-boot.bin omap3-beagle\
+ omap4_panda u-boot.bin omap4-panda
%:
dh --with quilt $@
@@ -35,8 +35,8 @@ override_dh_auto_clean:
# 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:
- echo $(PLATFORMS_AND_TARGETS)| xargs -n 2 | \
- while read plat target; do \
+ echo $(PLATFORMS_AND_TARGETS)| xargs -n 3 | \
+ while read plat target deb; do \
mkdir -p debian/build/$$plat; \
rsync -a --exclude=debian * debian/build/$$plat; \
$(MAKE) -C debian/build/$$plat $${plat}_config; \
@@ -44,7 +44,7 @@ override_dh_auto_build:
done
override_dh_auto_install:
- 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; \
+ echo $(PLATFORMS_AND_TARGETS) | xargs -n 3 | \
+ while read plat target deb; do \
+ install -D -m644 debian/build/$$plat/$$target debian/u-boot-linaro-$$deb/usr/lib/u-boot/$$plat/$$target; \
done