Skip to content

Commit

Permalink
kbuild: fix a.out.h export to userspace with O= build.
Browse files Browse the repository at this point in the history
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=.

Signed-off-by: David Woodhouse <david.woodhouse@intel.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
David Woodhouse authored and Sam Ravnborg committed Jun 27, 2008
1 parent 543cf4c commit b660398
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/asm-generic/Kbuild.asm
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion include/asm-powerpc/Kbuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion include/linux/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b660398

Please sign in to comment.