aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-11-30 18:30:16 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-11-30 18:30:16 +0000
commit9bce57a79f824d67ed29e749c37bc1ced289711b (patch)
tree02627cb25585bb095134586671dfd84bcf13ac2f /toolchain
parentbf1791ea28b899a03a44b1b0725f68572a0744b8 (diff)
downloadmaster-187ad058-9bce57a79f824d67ed29e749c37bc1ced289711b.tar.gz
master-187ad058-9bce57a79f824d67ed29e749c37bc1ced289711b.tar.bz2
master-187ad058-9bce57a79f824d67ed29e749c37bc1ced289711b.zip
another round of ppc fixes - the unfinished include/asm-ppc => asm-powerpc migration causes trouble
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5683 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/kernel-headers/Makefile4
-rw-r--r--toolchain/uClibc/patches/180-powerpc_headers.patch13
2 files changed, 16 insertions, 1 deletions
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile
index 4cd0199e78..d2d9c3dd32 100644
--- a/toolchain/kernel-headers/Makefile
+++ b/toolchain/kernel-headers/Makefile
@@ -26,7 +26,9 @@ define Build/Prepare
endef
define Build/Configure/powerpc
- $(CP) $(PKG_BUILD_DIR)/include/asm-powerpc/* $(PKG_BUILD_DIR)/include/asm-ppc/
+ $(CP) $(PKG_BUILD_DIR)/include/asm-ppc/* $(PKG_BUILD_DIR)/include/asm-powerpc/
+ rm -rf $(PKG_BUILD_DIR)/include/asm-ppc
+ mv $(PKG_BUILD_DIR)/include/asm-powerpc $(PKG_BUILD_DIR)/include/asm-ppc
endef
define Build/Configure
diff --git a/toolchain/uClibc/patches/180-powerpc_headers.patch b/toolchain/uClibc/patches/180-powerpc_headers.patch
new file mode 100644
index 0000000000..98af0c03c6
--- /dev/null
+++ b/toolchain/uClibc/patches/180-powerpc_headers.patch
@@ -0,0 +1,13 @@
+diff -ur uClibc.old/libc/sysdeps/linux/powerpc/bits/kernel_types.h uClibc.dev/libc/sysdeps/linux/powerpc/bits/kernel_types.h
+--- uClibc.old/libc/sysdeps/linux/powerpc/bits/kernel_types.h 2005-08-18 00:49:41.000000000 +0200
++++ uClibc.dev/libc/sysdeps/linux/powerpc/bits/kernel_types.h 2006-11-30 19:26:22.000000000 +0100
+@@ -4,7 +4,8 @@
+ * our private content, and not the kernel header, will win.
+ * -Erik
+ */
+-#if ! defined _PPC_POSIX_TYPES_H && ! defined _PPC64_POSIX_TYPES_H
++#if ! defined _PPC_POSIX_TYPES_H && ! defined _PPC64_POSIX_TYPES_H && !defined _ASM_POWERPC_POSIX_TYPES_H
++#define _ASM_POWERPC_POSIX_TYPES_H
+ #define _PPC_POSIX_TYPES_H
+ #define _PPC64_POSIX_TYPES_H
+