* a.out.h userspace headers not present with O=
@ 2008-06-27 13:02 Adrian Bunk
2008-06-27 13:06 ` David Woodhouse
2008-06-27 13:11 ` a.out.h userspace headers not present with O= Adrian Bunk
0 siblings, 2 replies; 8+ messages in thread
From: Adrian Bunk @ 2008-06-27 13:02 UTC (permalink / raw)
To: David Woodhouse, sam; +Cc: linux-kbuild, linux-kernel
Commit e53d6a152793a38aa334d6f7a4850642ae45cedc
(Export <linux/a.out.h> to userspace again.)
does not work properly when using O= :
<-- snip -->
linux-2.6.26-rc8$ make O=../out headers_install
...
linux-2.6.26-rc8$ find usr -name a.out.h
linux-2.6.26-rc8$
<-- snip -->
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: a.out.h userspace headers not present with O= 2008-06-27 13:02 a.out.h userspace headers not present with O= Adrian Bunk @ 2008-06-27 13:06 ` David Woodhouse 2008-06-27 13:12 ` Adrian Bunk 2008-06-27 13:11 ` a.out.h userspace headers not present with O= Adrian Bunk 1 sibling, 1 reply; 8+ messages in thread From: David Woodhouse @ 2008-06-27 13:06 UTC (permalink / raw) To: Adrian Bunk; +Cc: sam, linux-kbuild, linux-kernel On Fri, 2008-06-27 at 16:02 +0300, Adrian Bunk wrote: > Commit e53d6a152793a38aa334d6f7a4850642ae45cedc > (Export <linux/a.out.h> to userspace again.) > does not work properly when using O= : Hm, I copied the logic from the existing condition in include/asm-generic/Kbuild.asm. Does that not work either? -- dwmw2 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: a.out.h userspace headers not present with O= 2008-06-27 13:06 ` David Woodhouse @ 2008-06-27 13:12 ` Adrian Bunk 2008-06-27 13:39 ` [PATCH] Fix a.out.h export to userspace with O= build David Woodhouse 0 siblings, 1 reply; 8+ messages in thread From: Adrian Bunk @ 2008-06-27 13:12 UTC (permalink / raw) To: David Woodhouse; +Cc: sam, linux-kbuild, linux-kernel On Fri, Jun 27, 2008 at 02:06:24PM +0100, David Woodhouse wrote: > On Fri, 2008-06-27 at 16:02 +0300, Adrian Bunk wrote: > > Commit e53d6a152793a38aa334d6f7a4850642ae45cedc > > (Export <linux/a.out.h> to userspace again.) > > does not work properly when using O= : > > Hm, I copied the logic from the existing condition in > include/asm-generic/Kbuild.asm. Does that not work either? It doesn't work: linux-2.6.26-rc8$ make O=../out headers_install ... linux-2.6.26-rc8$ find ../out -name a.out.h linux-2.6.26-rc8$ make headers_install ... linux-2.6.26-rc8$ find usr -name a.out.h usr/include/asm/a.out.h usr/include/linux/a.out.h linux-2.6.26-rc8$ > dwmw2 cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] Fix a.out.h export to userspace with O= build. 2008-06-27 13:12 ` Adrian Bunk @ 2008-06-27 13:39 ` David Woodhouse 2008-06-27 20:57 ` Sam Ravnborg 0 siblings, 1 reply; 8+ messages in thread From: David Woodhouse @ 2008-06-27 13:39 UTC (permalink / raw) To: Adrian Bunk, torvalds; +Cc: sam, linux-kbuild, linux-kernel, dhowells On Fri, 2008-06-27 at 16:12 +0300, Adrian Bunk wrote: > On Fri, Jun 27, 2008 at 02:06:24PM +0100, David Woodhouse wrote: > > On Fri, 2008-06-27 at 16:02 +0300, Adrian Bunk wrote: > > > Commit e53d6a152793a38aa334d6f7a4850642ae45cedc > > > (Export <linux/a.out.h> to userspace again.) > > > does not work properly when using O= : > > > > Hm, I copied the logic from the existing condition in > > include/asm-generic/Kbuild.asm. Does that not work either? > > It doesn't work: > > linux-2.6.26-rc8$ make O=../out headers_install > ... > linux-2.6.26-rc8$ find ../out -name a.out.h You're right; it doesn't work with O=, and hasn't since David Howells first added that conditional export in commit 7fa30315. This fixes it: --- From: David Woodhouse <david.woodhouse@intel.com> Subject: 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=. Signed-off-by: David Woodhouse <david.woodhouse@intel.com> diff --git a/include/asm-generic/Kbuild.asm b/include/asm-generic/Kbuild.asm index 92a6d91..7cd25b8 100644 --- a/include/asm-generic/Kbuild.asm +++ b/include/asm-generic/Kbuild.asm @@ -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 diff --git a/include/asm-powerpc/Kbuild b/include/asm-powerpc/Kbuild index 7381916..bca352e 100644 --- a/include/asm-powerpc/Kbuild +++ b/include/asm-powerpc/Kbuild @@ -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 diff --git a/include/linux/Kbuild b/include/linux/Kbuild index b6fbb25..71d70d1 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild @@ -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 -- dwmw2 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Fix a.out.h export to userspace with O= build. 2008-06-27 13:39 ` [PATCH] Fix a.out.h export to userspace with O= build David Woodhouse @ 2008-06-27 20:57 ` Sam Ravnborg 2008-06-27 21:05 ` David Woodhouse 0 siblings, 1 reply; 8+ messages in thread From: Sam Ravnborg @ 2008-06-27 20:57 UTC (permalink / raw) To: David Woodhouse Cc: Adrian Bunk, torvalds, linux-kbuild, linux-kernel, dhowells On Fri, Jun 27, 2008 at 02:39:42PM +0100, David Woodhouse wrote: > On Fri, 2008-06-27 at 16:12 +0300, Adrian Bunk wrote: > > On Fri, Jun 27, 2008 at 02:06:24PM +0100, David Woodhouse wrote: > > > On Fri, 2008-06-27 at 16:02 +0300, Adrian Bunk wrote: > > > > Commit e53d6a152793a38aa334d6f7a4850642ae45cedc > > > > (Export <linux/a.out.h> to userspace again.) > > > > does not work properly when using O= : > > > > > > Hm, I copied the logic from the existing condition in > > > include/asm-generic/Kbuild.asm. Does that not work either? > > > > It doesn't work: > > > > linux-2.6.26-rc8$ make O=../out headers_install > > ... > > linux-2.6.26-rc8$ find ../out -name a.out.h > > You're right; it doesn't work with O=, and hasn't since David Howells > first added that conditional export in commit 7fa30315. This fixes it: > > --- > From: David Woodhouse <david.woodhouse@intel.com> > Subject: Fix a.out.h export to userspace with O= build. Hi David. Will you carry this patch in your tree or do you want me to add it to kbuild-next.git? Sam ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Fix a.out.h export to userspace with O= build. 2008-06-27 20:57 ` Sam Ravnborg @ 2008-06-27 21:05 ` David Woodhouse 2008-06-27 21:20 ` Sam Ravnborg 0 siblings, 1 reply; 8+ messages in thread From: David Woodhouse @ 2008-06-27 21:05 UTC (permalink / raw) To: Sam Ravnborg; +Cc: Adrian Bunk, torvalds, linux-kbuild, linux-kernel, dhowells On Fri, 2008-06-27 at 22:57 +0200, Sam Ravnborg wrote: > Hi David. > > Will you carry this patch in your tree or do you > want me to add it to kbuild-next.git? I was hoping Linus would apply it, since we could consider it a regression. -- dwmw2 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Fix a.out.h export to userspace with O= build. 2008-06-27 21:05 ` David Woodhouse @ 2008-06-27 21:20 ` Sam Ravnborg 0 siblings, 0 replies; 8+ messages in thread From: Sam Ravnborg @ 2008-06-27 21:20 UTC (permalink / raw) To: David Woodhouse Cc: Adrian Bunk, torvalds, linux-kbuild, linux-kernel, dhowells On Fri, Jun 27, 2008 at 10:05:56PM +0100, David Woodhouse wrote: > On Fri, 2008-06-27 at 22:57 +0200, Sam Ravnborg wrote: > > Hi David. > > > > Will you carry this patch in your tree or do you > > want me to add it to kbuild-next.git? > > I was hoping Linus would apply it, since we could consider it a > regression. Tested and it works. I have added it to kbuild-fixes.git and sent Linus a pull request. Sam ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: a.out.h userspace headers not present with O= 2008-06-27 13:02 a.out.h userspace headers not present with O= Adrian Bunk 2008-06-27 13:06 ` David Woodhouse @ 2008-06-27 13:11 ` Adrian Bunk 1 sibling, 0 replies; 8+ messages in thread From: Adrian Bunk @ 2008-06-27 13:11 UTC (permalink / raw) To: David Woodhouse, sam; +Cc: linux-kbuild, linux-kernel On Fri, Jun 27, 2008 at 04:02:36PM +0300, Adrian Bunk wrote: > Commit e53d6a152793a38aa334d6f7a4850642ae45cedc > (Export <linux/a.out.h> to userspace again.) > does not work properly when using O= : > > <-- snip --> > > linux-2.6.26-rc8$ make O=../out headers_install > ... > linux-2.6.26-rc8$ find usr -name a.out.h Wrong test... That should have been: linux-2.6.26-rc8$ find ../out -name a.out.h linux-2.6.26-rc8$ > linux-2.6.26-rc8$ > > <-- snip --> cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-06-27 21:19 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-06-27 13:02 a.out.h userspace headers not present with O= Adrian Bunk 2008-06-27 13:06 ` David Woodhouse 2008-06-27 13:12 ` Adrian Bunk 2008-06-27 13:39 ` [PATCH] Fix a.out.h export to userspace with O= build David Woodhouse 2008-06-27 20:57 ` Sam Ravnborg 2008-06-27 21:05 ` David Woodhouse 2008-06-27 21:20 ` Sam Ravnborg 2008-06-27 13:11 ` a.out.h userspace headers not present with O= Adrian Bunk
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®