summaryrefslogtreecommitdiffstats
path: root/meta/packages/linux-libc-headers/linux-libc-headers_2.6.18.bb
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-03-05 09:28:38 +0000
committerRichard Purdie <richard@openedhand.com>2007-03-05 09:28:38 +0000
commitb11c8d86572f00d46f32185f629dea8b564fd85a (patch)
treedd196f42cad58400ff61ed1da099baccefe196f8 /meta/packages/linux-libc-headers/linux-libc-headers_2.6.18.bb
parentb64abc60d6babf2bd95bf81d4e5d336071ad2900 (diff)
downloadpoky-b11c8d86572f00d46f32185f629dea8b564fd85a.tar.gz
linux-libc-headers: Add 2.6.18 (from OE.dev)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1322 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/linux-libc-headers/linux-libc-headers_2.6.18.bb')
-rw-r--r--meta/packages/linux-libc-headers/linux-libc-headers_2.6.18.bb70
1 files changed, 70 insertions, 0 deletions
diff --git a/meta/packages/linux-libc-headers/linux-libc-headers_2.6.18.bb b/meta/packages/linux-libc-headers/linux-libc-headers_2.6.18.bb
new file mode 100644
index 0000000000..8e1c5dc3e8
--- /dev/null
+++ b/meta/packages/linux-libc-headers/linux-libc-headers_2.6.18.bb
@@ -0,0 +1,70 @@
1require linux-libc-headers.inc
2
3INHIBIT_DEFAULT_DEPS = "1"
4DEPENDS = "unifdef-native"
5PR = "r1"
6
7SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz2 \
8 file://arm-syscall-define.patch;patch=1"
9
10S = "${WORKDIR}/linux-2.6.18"
11
12set_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 esac
29}
30
31do_configure() {
32 set_arch
33 oe_runmake allnoconfig ARCH=${ARCH}
34}
35
36do_compile () {
37}
38
39do_install() {
40 set_arch
41 oe_runmake headers_install INSTALL_HDR_PATH=${D}/usr ARCH=${ARCH}
42}
43
44do_install_append_arm() {
45 cp include/asm-arm/procinfo.h ${D}${includedir}/asm
46}
47
48STAGE_TEMP="${WORKDIR}/temp-staging"
49
50do_stage () {
51 set_arch
52 rm -rf ${STAGE_TEMP}
53 mkdir -p ${STAGE_TEMP}
54 oe_runmake headers_install INSTALL_HDR_PATH=${STAGE_TEMP}/usr ARCH=${ARCH}
55 if [ "${ARCH}" == "arm" ]; then
56 cp include/asm-arm/procinfo.h ${STAGE_TEMP}${includedir}/asm
57 fi
58 install -d ${STAGING_INCDIR}
59 rm -rf ${STAGING_INCDIR}/linux ${STAGING_INCDIR}/asm ${STAGING_INCDIR}/asm-generic
60 cp -pfLR ${STAGE_TEMP}${includedir}/linux ${STAGING_INCDIR}/
61 cp -pfLR ${STAGE_TEMP}${includedir}/asm ${STAGING_INCDIR}/
62 cp -pfLR ${STAGE_TEMP}${includedir}/asm-generic ${STAGING_INCDIR}/
63 rm -rf ${CROSS_DIR}/${TARGET_SYS}/include/linux
64 rm -rf ${CROSS_DIR}/${TARGET_SYS}/include/asm
65 rm -rf ${CROSS_DIR}/${TARGET_SYS}/include/asm-generic
66 install -d ${CROSS_DIR}/${TARGET_SYS}/include
67 cp -pfLR ${STAGE_TEMP}${includedir}/linux ${CROSS_DIR}/${TARGET_SYS}/include/
68 cp -pfLR ${STAGE_TEMP}${includedir}/asm ${CROSS_DIR}/${TARGET_SYS}/include/
69 cp -pfLR ${STAGE_TEMP}${includedir}/asm-generic ${CROSS_DIR}/${TARGET_SYS}/include/
70}