summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2012-09-29 13:27:08 -0600
committerJohn Rigby <john.rigby@linaro.org>2012-09-29 13:27:08 -0600
commit7325bc0f1b0f3af0ecea8dd2bed5ae3c5cca005b (patch)
tree44dc186bf2bd8f044263cd4e100bd66a069a02b4
parent0dd0b691b8c2517792b9937523ab2dda06e23ca7 (diff)
LINARO: hack in boot wrapper support
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r--debian/rules.d/2-binary-arch.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index dd9dc26bc50..c6decf517e0 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -41,6 +41,15 @@ $(stampdir)/stamp-build-%: dtb_target = $(notdir $(dtb_file))
$(stampdir)/stamp-build-%: $(stampdir)/stamp-prepare-%
@echo Debug: $@
$(build_cd) $(kmake) $(build_O) $(conc_level) $(build_image) $(modules_target) $(dtb_target)
+
+# hack in the boot wrapper
+ if [ -d linaro/boot-wrapper ] ; then \
+ cp -a linaro/boot-wrapper/ $(builddir); \
+ cp -a arch/arm64/boot/dts/* $(builddir)/boot-wrapper; \
+ cp -a $(builddir)/build-$*/arch/arm64/boot/Image $(builddir)/boot-wrapper; \
+ (cd $(builddir)/boot-wrapper; make CROSS_COMPILE=$(CROSS_COMPILE) ); \
+ fi
+
@touch $@
# Install the finished build
@@ -85,6 +94,8 @@ endif
install -m644 $(builddir)/build-$*/$(dtb_file) \
$(pkgdir)/lib/firmware/$(abi_release)-$*/device-tree/$(dtb_target); \
fi
+ install -m644 $(builddir)/boot-wrapper/linux-system.axf \
+ $(pkgdir)/boot/img.axf || echo "no axf file"
ifeq ($(no_dumpfile),)
makedumpfile -g $(pkgdir)/boot/vmcoreinfo-$(abi_release)-$* \
-x $(builddir)/build-$*/vmlinux