Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Fredrik Roubert <roubert@df.lth.se>
To: buildroot@busybox.net
Subject: [Buildroot] PowerPC kernel headers
Date: Mon, 9 Oct 2006 10:26:42 +0200	[thread overview]
Message-ID: <20061009082642.GA20352@igloo.df.lth.se> (raw)

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 

             reply	other threads:[~2006-10-09  8:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-09  8:26 Fredrik Roubert [this message]
2006-10-09 11:44 ` [Buildroot] PowerPC kernel headers Bernhard Fischer
     [not found]   ` <30f88efd0610090455t32193b77gf529dd3f3f1c8979@mail.gmail.com>
2006-10-09 12:06     ` Bernhard Fischer
2006-10-09 14:32   ` Fredrik Roubert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061009082642.GA20352@igloo.df.lth.se \
    --to=roubert@df.lth.se \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox