aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2012-06-15 15:38:14 -0600
committerJohn Rigby <john.rigby@linaro.org>2012-06-24 17:34:22 -0600
commitfd40e2dfd1a6d3dcd12e4d4b2471d823552cea52 (patch)
treef9e5e2a51b4bef36861215e6d8819938e2941c4c
parent92cebbf1acb67647d8d431f27a224ed8953b2f88 (diff)
LINARO: add install-headers functionality to install-image
This is so the flavour header packages have all the headers and we need no shared linux-headers. Enable this with do_complete_flavour_headers = true and do_flavour_header_package = false in the arch.mk files Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r--debian/rules.d/2-binary-arch.mk18
1 files changed, 17 insertions, 1 deletions
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 02303fb0745..e956b1ab5b1 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -9,7 +9,7 @@ else
build_cd =
build_O = O=$(builddir)/build-$*
endif
-crossbuildscripts=$(shell grep KBUILD_SCRIPTROOT $(DROOT)/scripts/Makefile.build && echo "true")
+crossbuildscripts=$(shell grep KBUILD_SCRIPTROOT scripts/Makefile.build && echo "true")
kbsr = $(builddir)/build-$*
@@ -212,8 +212,24 @@ ifeq ($(arch),powerpc)
mkdir -p $(hdrdir)/arch/powerpc/lib
cp $(builddir)/build-$*/arch/powerpc/lib/*.o $(hdrdir)/arch/powerpc/lib
endif
+ifneq ($(do_complete_flavour_headers),true)
# Script to symlink everything up
$(SHELL) $(DROOT)/scripts/link-headers "$(hdrdir)" "$(basepkg)" "$*"
+else
+ find . -path './debian' -prune -o -path './$(DEBIAN)' -prune \
+ -o -path './include/*' -prune \
+ -o -path './scripts/*' -prune -o -type f \
+ \( -name 'Makefile*' -o -name 'Kconfig*' -o -name 'Kbuild*' -o \
+ -name '*.sh' -o -name '*.pl' -o -name '*.lds' \) \
+ -print | cpio -pd --preserve-modification-time $(hdrdir)
+ cp -a drivers/media/dvb/dvb-core/*.h $(hdrdir)/drivers/media/dvb/dvb-core
+ cp -a drivers/media/video/*.h $(hdrdir)/drivers/media/video
+ cp -a drivers/media/dvb/frontends/*.h $(hdrdir)/drivers/media/dvb/frontends
+ cp -a scripts include $(hdrdir)
+ (find arch -name include -type d -print | \
+ xargs -n1 -i: find : -type f) | \
+ cpio -pd --preserve-modification-time $(hdrdir)
+endif
# The build symlink
install -d debian/$(basepkg)-$*/lib/modules/$(abi_release)-$*
ln -s /usr/src/$(basepkg)-$* \