diff options
author | John Rigby <john.rigby@linaro.org> | 2012-06-15 15:38:14 -0600 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-06-21 05:16:54 -0600 |
commit | 49821e004660816e9adfa86c792ca5dfaa5dd8b0 (patch) | |
tree | a0dc8d5b0fb82c580f381ddf7d84c7934830b8fa | |
parent | e57565d84b8bb5979d30e8d9833aba86e0d9ae7d (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.mk | 19 |
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)-$* \ |