From 669748a0ae056b16e8cca7dc7c4e4e1b060c58d6 Mon Sep 17 00:00:00 2001 From: John Rigby Date: Fri, 15 Jun 2012 15:38:14 -0600 Subject: 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 --- debian/rules.d/2-binary-arch.mk | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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)-$* \ -- cgit v1.2.3