Skip to contentSkip to conversation

one fix for -rc

GIT PULL Sam Ravnborg 1 participant 1 message Jun 27, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Linus

A simple headers_install fix.
It will manifest itself only when you use "make O=... headers_install"

Please pull from:

ssh://master.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes.git master

Sam

 include/asm-generic/Kbuild.asm |    2 +-
 include/asm-powerpc/Kbuild     |    1 -
 include/linux/Kbuild           |    2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)

commit 7026103a24c2c6a264e7fcc5dfe614094f0c1b43

Author: David Woodhouse <[email protected]>
Date:   Fri Jun 27 14:39:42 2008 +0100

kbuild: fix a.out.h export to userspace with O= build.

We need to check for existence of the a.out.h header in the source tree, not the object tree, if we want it to get the right answer with O=.

include/asm-generic/Kbuild.asm +1 -1
index 92a6d91..7cd25b8 100644
@@ -1,6 +1,6 @@
 header-y  += kvm.h
 
-ifeq ($(wildcard include/asm-$(SRCARCH)/a.out.h),include/asm-$(SRCARCH)/a.out.h)
+ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/a.out.h),)
 unifdef-y += a.out.h
 endif
 unifdef-y += auxvec.h
include/asm-powerpc/Kbuild +0 -1
index 7381916..bca352e 100644
@@ -1,6 +1,5 @@
 include include/asm-generic/Kbuild.asm
 
-header-y += a.out.h
 header-y += auxvec.h
 header-y += ioctls.h
 header-y += mman.h
include/linux/Kbuild +1 -1
index b6fbb25..71d70d1 100644
@@ -166,7 +166,7 @@ unifdef-y += acct.h
 unifdef-y += adb.h
 unifdef-y += adfs_fs.h
 unifdef-y += agpgart.h
-ifeq ($(wildcard include/asm-$(SRCARCH)/a.out.h),include/asm-$(SRCARCH)/a.out.h)
+ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/a.out.h),)
 unifdef-y += a.out.h
 endif
 unifdef-y += apm_bios.h