* [Buildroot] PowerPC kernel headers
@ 2006-10-09 8:26 Fredrik Roubert
2006-10-09 11:44 ` Bernhard Fischer
0 siblings, 1 reply; 4+ messages in thread
From: Fredrik Roubert @ 2006-10-09 8:26 UTC (permalink / raw)
To: buildroot
Hi!
Recently the possibility to use the Linux 2.6.18 kernel headers has been
added to buildroot. However, the correct asm directory for PowerPC has
changed from "ppc" to "powerpc", as part of the move to a unified kernel
architecture for 32 and 64 bit PowerPC system.
The attached patch updates kernel-headers.mk to use asm-powerpc when
building with the 2.6.18 kernel headers.
Cheers // Fredrik Roubert
--
Visserij 192 | +32 473 344527 / +46 708 776974
BE-9000 Gent | http://www.df.lth.se/~roubert/
-------------- next part --------------
diff -ur buildroot-20061006/toolchain/kernel-headers/kernel-headers.mk buildroot/toolchain/kernel-headers/kernel-headers.mk
--- buildroot-20061006/toolchain/kernel-headers/kernel-headers.mk 2006-10-06 09:15:02.000000000 +0200
+++ buildroot/toolchain/kernel-headers/kernel-headers.mk 2006-10-06 16:45:43.000000000 +0200
@@ -128,7 +128,12 @@
$(LINUX_HEADERS_DIR)/Makefile; \
fi;
@if [ "$(ARCH)" = "powerpc" ];then \
- (cd $(LINUX_HEADERS_DIR)/include; ln -fs asm-ppc$(NOMMU) asm;) \
+ (cd $(LINUX_HEADERS_DIR)/include; \
+ if [ $(PATCHLEVEL) -eq 6 -a $(SUBLEVEL) -ge 18 ];then \
+ ln -fs asm-powerpc$(NOMMU) asm; \
+ else \
+ ln -fs asm-ppc$(NOMMU) asm; \
+ fi) \
elif [ "$(ARCH)" = "mips" ];then \
(cd $(LINUX_HEADERS_DIR)/include; ln -fs asm-mips$(NOMMU) asm;) \
elif [ "$(ARCH)" = "mipsel" ];then \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 303 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20061009/75e45e4a/attachment.pgp
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] PowerPC kernel headers
2006-10-09 8:26 [Buildroot] PowerPC kernel headers Fredrik Roubert
@ 2006-10-09 11:44 ` Bernhard Fischer
[not found] ` <30f88efd0610090455t32193b77gf529dd3f3f1c8979@mail.gmail.com>
2006-10-09 14:32 ` Fredrik Roubert
0 siblings, 2 replies; 4+ messages in thread
From: Bernhard Fischer @ 2006-10-09 11:44 UTC (permalink / raw)
To: buildroot
On Mon, Oct 09, 2006 at 10:26:42AM +0200, Fredrik Roubert wrote:
>Hi!
>
>Recently the possibility to use the Linux 2.6.18 kernel headers has been
>added to buildroot. However, the correct asm directory for PowerPC has
>changed from "ppc" to "powerpc", as part of the move to a unified kernel
>architecture for 32 and 64 bit PowerPC system.
>
>The attached patch updates kernel-headers.mk to use asm-powerpc when
>building with the 2.6.18 kernel headers.
I just checked in r16345 that uses headers_install for the full kernel.
This should make your patch unnecessary, i'd say. Please confirm.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] PowerPC kernel headers
[not found] ` <30f88efd0610090455t32193b77gf529dd3f3f1c8979@mail.gmail.com>
@ 2006-10-09 12:06 ` Bernhard Fischer
0 siblings, 0 replies; 4+ messages in thread
From: Bernhard Fischer @ 2006-10-09 12:06 UTC (permalink / raw)
To: buildroot
On Mon, Oct 09, 2006 at 01:55:40PM +0200, Benjamin Delagoutte wrote:
>Works well with r16345 and 2.6.18.
Good. Thanks for checking and kind regards,
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] PowerPC kernel headers
2006-10-09 11:44 ` Bernhard Fischer
[not found] ` <30f88efd0610090455t32193b77gf529dd3f3f1c8979@mail.gmail.com>
@ 2006-10-09 14:32 ` Fredrik Roubert
1 sibling, 0 replies; 4+ messages in thread
From: Fredrik Roubert @ 2006-10-09 14:32 UTC (permalink / raw)
To: buildroot
On Mon 09 Oct 13:44 CEST 2006, Bernhard Fischer wrote:
> > The attached patch updates kernel-headers.mk to use asm-powerpc when
> > building with the 2.6.18 kernel headers.
>
> I just checked in r16345 that uses headers_install for the full kernel.
> This should make your patch unnecessary, i'd say. Please confirm.
That's correct. With patch r16345 my patch to kernel-headers.mk is not
needed anymore. (There is however a bug in r16345 that must be fixed
first, see separate post.)
Cheers // Fredrik Roubert
--
Visserij 192 | +32 473 344527 / +46 708 776974
BE-9000 Gent | http://www.df.lth.se/~roubert/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 303 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20061009/cf1e208a/attachment.pgp
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-10-09 14:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-09 8:26 [Buildroot] PowerPC kernel headers Fredrik Roubert
2006-10-09 11:44 ` Bernhard Fischer
[not found] ` <30f88efd0610090455t32193b77gf529dd3f3f1c8979@mail.gmail.com>
2006-10-09 12:06 ` Bernhard Fischer
2006-10-09 14:32 ` Fredrik Roubert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox