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-25 15:02:35 -0600 |
commit | b21bd509cd837bce63fa5fbbcb81451e52264648 (patch) | |
tree | 27e778e4e377dc997a960ded23817e551036bd18 | |
parent | 26afeacdf4d0a0f23b21b9652067c61152aa72d8 (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 | 18 |
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)-$* \ |