Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [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

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