diff options
| author | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
| commit | b2f192faabe412adce79534e22efe9fb69ee40e2 (patch) | |
| tree | 7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/linux-libc-headers/linux-libc-headers_2.6.11.1.bb | |
| parent | 2cf0eadf9f730027833af802d7e6c90b44248f80 (diff) | |
| download | poky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz | |
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/linux-libc-headers/linux-libc-headers_2.6.11.1.bb')
| -rw-r--r-- | meta/packages/linux-libc-headers/linux-libc-headers_2.6.11.1.bb | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/meta/packages/linux-libc-headers/linux-libc-headers_2.6.11.1.bb b/meta/packages/linux-libc-headers/linux-libc-headers_2.6.11.1.bb new file mode 100644 index 0000000000..2f471223e6 --- /dev/null +++ b/meta/packages/linux-libc-headers/linux-libc-headers_2.6.11.1.bb | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | SECTION = "devel" | ||
| 2 | DESCRIPTION = "Sanitized set of 2.6 kernel headers for the C library's use." | ||
| 3 | HOMEPAGE = "http://ep09.pld-linux.org/~mmazur/linux-libc-headers/" | ||
| 4 | # license note from the package: | ||
| 5 | # Linux-libc-headers are derived from linux kernel headers. For license of a | ||
| 6 | # particular header, check it's content, and if copyright notice isn't present, | ||
| 7 | # standard linux kernel license applies. | ||
| 8 | # since we assume GPL for linux i think we can also assume it here | ||
| 9 | LICENSE = "GPL" | ||
| 10 | MAINTAINER = "Chris Larson <kergoth@handhelds.org>" | ||
| 11 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 12 | PR = "r2" | ||
| 13 | |||
| 14 | SRC_URI = "http://ep09.pld-linux.org/~mmazur/linux-libc-headers/linux-libc-headers-${PV}.tar.bz2 \ | ||
| 15 | file://keyboard.patch;patch=1" | ||
| 16 | |||
| 17 | S = "${WORKDIR}/linux-libc-headers-${PV}" | ||
| 18 | |||
| 19 | do_configure () { | ||
| 20 | case ${TARGET_ARCH} in | ||
| 21 | alpha*) ARCH=alpha ;; | ||
| 22 | arm*) ARCH=arm ;; | ||
| 23 | cris*) ARCH=cris ;; | ||
| 24 | hppa*) ARCH=parisc ;; | ||
| 25 | i*86*) ARCH=i386 ;; | ||
| 26 | ia64*) ARCH=ia64 ;; | ||
| 27 | mips*) ARCH=mips ;; | ||
| 28 | m68k*) ARCH=m68k ;; | ||
| 29 | powerpc*) ARCH=ppc ;; | ||
| 30 | s390*) ARCH=s390 ;; | ||
| 31 | sh*) ARCH=sh ;; | ||
| 32 | sparc64*) ARCH=sparc64 ;; | ||
| 33 | sparc*) ARCH=sparc ;; | ||
| 34 | x86_64*) ARCH=x86_64 ;; | ||
| 35 | esac | ||
| 36 | if test ! -e include/asm-$ARCH; then | ||
| 37 | oefatal unable to create asm symlink in kernel headers | ||
| 38 | fi | ||
| 39 | cp -pPR "include/asm-$ARCH" "include/asm" | ||
| 40 | if test "$ARCH" = "arm"; then | ||
| 41 | cp -pPR include/asm/arch-ebsa285 include/asm/arch | ||
| 42 | elif test "$ARCH" = "sh"; then | ||
| 43 | cp -pPR include/asm/cpu-${TARGET_ARCH} include/asm/cpu || die "unable to create include/asm/cpu" | ||
| 44 | cp -pPR include/asm/cpu/* include/asm | ||
| 45 | fi | ||
| 46 | } | ||
| 47 | |||
| 48 | do_stage () { | ||
| 49 | install -d ${STAGING_INCDIR} | ||
| 50 | rm -rf ${STAGING_INCDIR}/linux ${STAGING_INCDIR}/asm | ||
| 51 | cp -pfLR include/linux ${STAGING_INCDIR}/ | ||
| 52 | cp -pfLR include/asm ${STAGING_INCDIR}/ | ||
| 53 | rm -rf ${CROSS_DIR}/${TARGET_SYS}/include/linux | ||
| 54 | rm -rf ${CROSS_DIR}/${TARGET_SYS}/include/asm | ||
| 55 | install -d ${CROSS_DIR}/${TARGET_SYS}/include | ||
| 56 | cp -pfLR include/linux ${CROSS_DIR}/${TARGET_SYS}/include/ | ||
| 57 | cp -pfLR include/asm ${CROSS_DIR}/${TARGET_SYS}/include/ | ||
| 58 | } | ||
| 59 | |||
| 60 | do_install() { | ||
| 61 | install -d ${D}${includedir} | ||
| 62 | cp -pfLR include/linux ${D}${includedir}/ | ||
| 63 | cp -pfLR include/asm ${D}${includedir}/ | ||
| 64 | } | ||
| 65 | |||
