--- /dev/null
+--- linux-2.6.18/include/linux/dvb/audio.h 2007-03-10 13:05:57.000000000 +0100
++++ linux-2.6.18-fixed/include/linux/dvb/audio.h 2010-01-20 22:48:13.000000000 +0100
+@@ -27,6 +27,7 @@
+ #ifdef __KERNEL__
+ #include <linux/types.h>
+ #else
++#include <asm/types.h>
+ #include <stdint.h>
+ #endif
+
+--- linux-2.6.18/include/linux/dvb/video.h 2007-03-10 13:05:57.000000000 +0100
++++ linux-2.6.18-fixed/include/linux/dvb/video.h 2010-01-20 22:48:02.000000000 +0100
+@@ -29,6 +29,7 @@
+ #ifdef __KERNEL__
+ #include <linux/types.h>
+ #else
++#include <asm/types.h>
+ #include <stdint.h>
+ #include <time.h>
+ #endif
--- /dev/null
+--- linux-2.6.18/include/asm-mips/Kbuild 2010-01-18 22:57:15.000000000 +0100
++++ linux-2.6.18-brcm/include/asm-mips/Kbuild 2010-01-18 22:59:08.000000000 +0100
+@@ -1 +1,3 @@
+ include include/asm-generic/Kbuild.asm
++
++header-y += cachectl.h sgidefs.h sysmips.h
--- /dev/null
+--- linux-2.6.18/include/asm-mips/ptrace.h 2010-01-18 22:57:15.000000000 +0100
++++ linux-2.6.18-brcm/include/asm-mips/ptrace.h 2010-01-18 22:59:08.000000000 +0100
+@@ -10,8 +10,6 @@
+ #define _ASM_PTRACE_H
+
+
+-#include <asm/isadep.h>
+-
+ /* 0 - 31 are integer registers, 32 - 63 are fp registers. */
+ #define FPR_BASE 32
+ #define PC 64
+@@ -73,6 +71,7 @@
+ #ifdef __KERNEL__
+
+ #include <linux/linkage.h>
++#include <asm/isadep.h>
+
+ /*
+ * Does the process account for user or for system time?
PR = "r3"
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz2 \
- file://arm-syscall-define.patch;patch=1"
+ file://arm-syscall-define.patch;patch=1 \
+ file://fix-dvb-headers.patch;patch=1"
+
+SRC_URI_append_mipsel = " file://mips-add-missing-headers.patch;patch=1 \
+ file://mips-fix-ptrace-header.patch;patch=1"
S = "${WORKDIR}/linux-2.6.18"
cp include/asm-arm/procinfo.h ${STAGE_TEMP}${includedir}/asm
fi
install -d ${STAGING_INCDIR}
- rm -rf ${STAGING_INCDIR}/linux ${STAGING_INCDIR}/asm ${STAGING_INCDIR}/asm-generic
- cp -pfLR ${STAGE_TEMP}${includedir}/linux ${STAGING_INCDIR}/
- cp -pfLR ${STAGE_TEMP}${includedir}/asm ${STAGING_INCDIR}/
- cp -pfLR ${STAGE_TEMP}${includedir}/asm-generic ${STAGING_INCDIR}/
+ for x in linux asm asm-generic linux mtd rdma scsi sound video; do
+ rm -rf ${STAGING_INCDIR}/$x;
+ cp -pfLR ${STAGE_TEMP}${includedir}/$x ${STAGING_INCDIR}/;
+ done
# Add UTS_RELEASE to version.h. UTS_RELEASE was moved from version.h to
# utsrelease.h in order to avoid recompiling a kernel every time a localversion
# changed. Since the our headers are static and we're not compiling an