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-08-16 00:28:48 -0600
commit669748a0ae056b16e8cca7dc7c4e4e1b060c58d6 (patch)
tree143a6de62fe251ad25d2b1a981f1aceeecebc660
parenta183cd2cbd151b3cc8afdd21d9a9a2c14913a3f0 (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 c174b6fd723..9906d4a6460 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-$*
@@ -217,8 +217,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)-$* \