From 0fc310a55a8e978f0f2b676fbd21ada6e06653a5 Mon Sep 17 00:00:00 2001 From: John Rigby Date: Thu, 5 Aug 2010 22:55:11 -0600 Subject: LINARO: Initial Linaro U-Boot tree Initial Linaro u-boot tree based on Upstream v2010.06-265-gcdb7497 A series of patches from ssakomans exp branch that add support for beagle C4 and xM. These have been rebased onto current upstream. The gitorious beagle trees are still based on v2010.03. These patches will be replaced with patches from ssakoman. Two versatile express patches from Matt Waddel. Debian packaging by John Rigby based on the lucid u-boot-omap3 package. Currently builds u-boot binaries for these platforms: ca9x4_ct_vxp aka Versatile Express mx51evk aka Babbage omap4_panda omap3_beagle Signed-off-by: John Rigby --- debian/rules | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 debian/rules (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..5b61ff6de --- /dev/null +++ b/debian/rules @@ -0,0 +1,45 @@ +#!/usr/bin/make -f + +# the upstream build passes LDFLAGS directly to ld instead of calling gcc for +# linking; so instead of passing -Wl,foo in LDFLAGS as in automake builds, one +# should set LDFLAGS to foo directly +comma := , +LDFLAGS := $(patsubst -Wl$(comma)%,%,$(LDFLAGS)) + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) +export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- +endif +#export DH_VERBOSE=1 +#export DH_OPTIONS=-v + +PLATFORMS= \ + ca9x4_ct_vxp \ + mx51evk \ + omap3_beagle \ + omap4_panda + +%: + dh --with quilt $@ + +override_dh_auto_configure: + @ + +override_dh_auto_clean: + $(MAKE) distclean + rm -rf debian/build + +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; \ + 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; \ + done -- cgit v1.2.3