PowerPC kernel headers
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
Signature · 27 lines
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
Quoted 9 lines · Fredrik Roubert
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.
Quoted 1 line · Benjamin Delagoutte
Works well with r16345 and 2.6.18.
Good. Thanks for checking and kind regards,
Quoted 5 lines · Bernhard Fischer
Quoted 2 lines
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_installfor 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
Signature · 9 lines
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