diff options
Diffstat (limited to 'meta/recipes-kernel/linux-libc-headers')
5 files changed, 162 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-wrs_git.bb b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-wrs_git.bb new file mode 100644 index 0000000000..ab25e500ba --- /dev/null +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-wrs_git.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | require linux-libc-headers.inc | ||
2 | |||
3 | INHIBIT_DEFAULT_DEPS = "1" | ||
4 | DEPENDS += "unifdef-native" | ||
5 | PROVIDES = "linux-libc-headers" | ||
6 | PV = "2.6.34+git-${SRCPV}" | ||
7 | PR = "r0" | ||
8 | |||
9 | SRC_URI = "git://git.pokylinux.org/linux-2.6-windriver.git;fullclone=1" | ||
10 | |||
11 | S = "${WORKDIR}/linux" | ||
12 | |||
13 | set_arch() { | ||
14 | case ${TARGET_ARCH} in | ||
15 | arm*) ARCH=arm ;; | ||
16 | i*86*) ARCH=i386 ;; | ||
17 | ia64*) ARCH=ia64 ;; | ||
18 | mips*) ARCH=mips ;; | ||
19 | powerpc*) ARCH=powerpc ;; | ||
20 | x86_64*) ARCH=x86_64 ;; | ||
21 | esac | ||
22 | } | ||
23 | |||
24 | do_configure() { | ||
25 | set_arch | ||
26 | oe_runmake allnoconfig ARCH=$ARCH | ||
27 | } | ||
28 | |||
29 | do_wrlinux_checkout() { | ||
30 | if [ -d ${WORKDIR}/.git/refs/remotes/origin ]; then | ||
31 | rm -rf ${S} | ||
32 | mkdir ${S} | ||
33 | mv ${WORKDIR}/.git ${S} | ||
34 | mv ${S}/.git/refs/remotes/origin/* ${S}/.git/refs/heads | ||
35 | rmdir ${S}/.git/refs/remotes/origin | ||
36 | fi | ||
37 | cd ${S} | ||
38 | git checkout -f standard | ||
39 | } | ||
40 | |||
41 | addtask wrlinux_checkout before do_patch after do_unpack | ||
42 | |||
43 | do_compile () { | ||
44 | } | ||
45 | |||
46 | do_install() { | ||
47 | set_arch | ||
48 | oe_runmake headers_install_all INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH | ||
49 | } | ||
50 | |||
51 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc new file mode 100644 index 0000000000..e6cb1d8669 --- /dev/null +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | |||
@@ -0,0 +1,10 @@ | |||
1 | DESCRIPTION = "Sanitized set of 2.6 kernel headers for the C library's use." | ||
2 | SECTION = "devel" | ||
3 | LICENSE = "GPLv2" | ||
4 | |||
5 | LIC_CHKSUM_FILES = "file://COPYING " | ||
6 | SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2" | ||
7 | |||
8 | #DEPENDS = "cross-linkage" | ||
9 | RDEPENDS_${PN}-dev = "" | ||
10 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})" | ||
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/hayes-gone.patch b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/hayes-gone.patch new file mode 100644 index 0000000000..719c320202 --- /dev/null +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/hayes-gone.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | # 2.6.33 deleted the Hayes esp driver, so the ioctls to get and set its | ||
2 | # configuration are no longer needed, and they break setserial by making it | ||
3 | # believe that it should compile in the code that supports this modem. | ||
4 | |||
5 | 2010/06/16 | ||
6 | Created-by: Jeff Dike <jdike@linux.intel.com> | ||
7 | |||
8 | Index: linux-2.6.34/include/asm-generic/ioctls.h | ||
9 | =================================================================== | ||
10 | --- linux-2.6.34.orig/include/asm-generic/ioctls.h | ||
11 | +++ linux-2.6.34/include/asm-generic/ioctls.h | ||
12 | @@ -86,16 +86,6 @@ | ||
13 | #define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */ | ||
14 | #define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */ | ||
15 | |||
16 | -/* | ||
17 | - * some architectures define FIOQSIZE as 0x545E, which is used for | ||
18 | - * TIOCGHAYESESP on others | ||
19 | - */ | ||
20 | -#ifndef FIOQSIZE | ||
21 | -# define TIOCGHAYESESP 0x545E /* Get Hayes ESP configuration */ | ||
22 | -# define TIOCSHAYESESP 0x545F /* Set Hayes ESP configuration */ | ||
23 | -# define FIOQSIZE 0x5460 | ||
24 | -#endif | ||
25 | - | ||
26 | /* Used for packet mode */ | ||
27 | #define TIOCPKT_DATA 0 | ||
28 | #define TIOCPKT_FLUSHREAD 1 | ||
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/ppc_glibc_build_fix.patch b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/ppc_glibc_build_fix.patch new file mode 100644 index 0000000000..81fa5ce8c9 --- /dev/null +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/ppc_glibc_build_fix.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | stdint.h has C definitions which troubles assembler. and if asm/ptrace.h | ||
2 | is included in assembler context, then it should not include the | ||
3 | C-specific stdint.h file. | ||
4 | This was causing glibc building issue on ppc. | ||
5 | Looks like this issue is introduced on the 2.6.34 kernel. | ||
6 | |||
7 | 2010-06-024 | ||
8 | Signed-Off-By:Nitin A Kamble <nitin.a.kamble@intel.com> | ||
9 | Acked-By:Jeff Dike <jdike@linux.intel.com> | ||
10 | |||
11 | Index: linux-2.6.34/arch/powerpc/include/asm/ptrace.h | ||
12 | =================================================================== | ||
13 | --- linux-2.6.34.orig/arch/powerpc/include/asm/ptrace.h | ||
14 | +++ linux-2.6.34/arch/powerpc/include/asm/ptrace.h | ||
15 | @@ -27,8 +27,10 @@ | ||
16 | #ifdef __KERNEL__ | ||
17 | #include <linux/types.h> | ||
18 | #else | ||
19 | +#ifndef __ASSEMBLY__ | ||
20 | #include <stdint.h> | ||
21 | #endif | ||
22 | +#endif | ||
23 | |||
24 | #ifndef __ASSEMBLY__ | ||
25 | |||
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.34.bb b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.34.bb new file mode 100644 index 0000000000..31c305854f --- /dev/null +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.34.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | require linux-libc-headers.inc | ||
2 | |||
3 | INHIBIT_DEFAULT_DEPS = "1" | ||
4 | DEPENDS += "unifdef-native" | ||
5 | PR = "r0" | ||
6 | |||
7 | SRC_URI += "file://hayes-gone.patch \ | ||
8 | file://ppc_glibc_build_fix.patch" | ||
9 | |||
10 | S = "${WORKDIR}/linux-${PV}" | ||
11 | |||
12 | set_arch() { | ||
13 | case ${TARGET_ARCH} in | ||
14 | alpha*) ARCH=alpha ;; | ||
15 | arm*) ARCH=arm ;; | ||
16 | cris*) ARCH=cris ;; | ||
17 | hppa*) ARCH=parisc ;; | ||
18 | i*86*) ARCH=i386 ;; | ||
19 | ia64*) ARCH=ia64 ;; | ||
20 | mips*) ARCH=mips ;; | ||
21 | m68k*) ARCH=m68k ;; | ||
22 | powerpc*) ARCH=powerpc ;; | ||
23 | s390*) ARCH=s390 ;; | ||
24 | sh*) ARCH=sh ;; | ||
25 | sparc64*) ARCH=sparc64 ;; | ||
26 | sparc*) ARCH=sparc ;; | ||
27 | x86_64*) ARCH=x86_64 ;; | ||
28 | avr32*) ARCH=avr32 ;; | ||
29 | bfin*) ARCH=blackfin ;; | ||
30 | esac | ||
31 | } | ||
32 | |||
33 | do_configure() { | ||
34 | set_arch | ||
35 | oe_runmake allnoconfig ARCH=$ARCH | ||
36 | } | ||
37 | |||
38 | do_compile () { | ||
39 | } | ||
40 | |||
41 | do_install() { | ||
42 | set_arch | ||
43 | oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH | ||
44 | # Kernel should not be exporting this header | ||
45 | rm -f ${D}${exec_prefix}/include/scsi/scsi.h | ||
46 | } | ||
47 | |||
48 | BBCLASSEXTEND = "nativesdk" | ||