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-21 18:02:01 -0600
commitc4e4d20a8a2d694fb9c429cb41f6399c4a9bf87d (patch)
treea0dc8d5b0fb82c580f381ddf7d84c7934830b8fa
parent344f3c31c35e73f9d7f153ff63f3aecfcd320231 (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.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 3271b1aac76..eabc40f1f87 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -42,6 +42,9 @@ $(stampdir)/stamp-build-%: $(stampdir)/stamp-prepare-%
@touch $@
# Install the finished build
+ifeq ($(do_complete_flavour_headers),true)
+indep_hdrdir = $(CURDIR)/debian/$(hdrs_pkg_name)/usr/src/$(hdrs_pkg_name)
+endif
install-%: pkgdir = $(CURDIR)/debian/$(bin_pkg_name)-$*
install-%: pkgdir_ex = $(CURDIR)/debian/$(extra_pkg_name)-$*
install-%: bindoc = $(pkgdir)/usr/share/doc/$(bin_pkg_name)-$*
@@ -209,6 +212,22 @@ ifeq ($(arch),powerpc)
endif
# Script to symlink everything up
$(SHELL) $(DROOT)/scripts/link-headers "$(hdrdir)" "$(basepkg)" "$*"
+ifeq ($(do_complete_flavour_headers),true)
+ install -d $(indep_hdrdir)
+ 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 $(indep_hdrdir)
+ cp -a drivers/media/dvb/dvb-core/*.h $(indep_hdrdir)/drivers/media/dvb/dvb-core
+ cp -a drivers/media/video/*.h $(indep_hdrdir)/drivers/media/video
+ cp -a drivers/media/dvb/frontends/*.h $(indep_hdrdir)/drivers/media/dvb/frontends
+ cp -a scripts include $(indep_hdrdir)
+ (find arch -name include -type d -print | \
+ xargs -n1 -i: find : -type f) | \
+ cpio -pd --preserve-modification-time $(indep_hdrdir)
+endif
# The build symlink
install -d debian/$(basepkg)-$*/lib/modules/$(abi_release)-$*
ln -s /usr/src/$(basepkg)-$* \