+ kbuild-allow-header_install-to-work-with-o=.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     kbuild: Allow header_install to work with O=

has been added to the -mm tree.  Its filename is

     kbuild-allow-header_install-to-work-with-o=.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: kbuild: Allow header_install to work with O=
From: Ben Collins <ben.collins@xxxxxxxxxx>

Without this patch, doing:

make O=/foo/build INSTALL_HDR_PATH=/foo/install-headers headers_install

Doesn't work.

Signed-off-by: Ben Collins <bcollins@xxxxxxxxxx>
Cc: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
Cc: Sam Ravnborg <sam@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 Makefile                     |    2 +-
 scripts/Makefile.headersinst |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -puN Makefile~kbuild-allow-header_install-to-work-with-o= Makefile
--- a/Makefile~kbuild-allow-header_install-to-work-with-o=
+++ a/Makefile
@@ -935,7 +935,7 @@ headers_install_all: include/linux/versi
 
 PHONY += headers_install
 headers_install: include/linux/version.h scripts_basic FORCE
-	@if [ ! -r include/asm-$(ARCH)/Kbuild ]; then \
+	@if [ ! -r $(srctree)/include/asm-$(ARCH)/Kbuild ]; then \
 	  echo '*** Error: Headers not exportable for this architecture ($(ARCH))'; \
 	  exit 1 ; fi
 	$(Q)$(MAKE) $(build)=scripts scripts/unifdef
diff -puN scripts/Makefile.headersinst~kbuild-allow-header_install-to-work-with-o= scripts/Makefile.headersinst
--- a/scripts/Makefile.headersinst~kbuild-allow-header_install-to-work-with-o=
+++ a/scripts/Makefile.headersinst
@@ -168,7 +168,7 @@ $(objhdr-y) $(header-y) $(unifdef-y): $(
 	$(call cmd,gen)
 
 else
-$(objhdr-y) :		$(INSTALL_HDR_PATH)/$(_dst)/%.h: $(srctree)/$(obj)/%.h $(KBUILDFILES)
+$(objhdr-y) :		$(INSTALL_HDR_PATH)/$(_dst)/%.h: $(obj)/%.h $(KBUILDFILES)
 	$(call cmd,o_hdr_install)
 
 $(header-y) :		$(INSTALL_HDR_PATH)/$(_dst)/%.h: $(srctree)/$(obj)/%.h $(KBUILDFILES)
_

Patches currently in -mm which might be from ben.collins@xxxxxxxxxx are

kbuild-allow-header_install-to-work-with-o=.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux