diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2012-03-23 13:12:42 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-23 18:08:40 +0000 |
| commit | ac56e2ed37d592f9af84a14074367b7d137818f8 (patch) | |
| tree | 6c48d9f851649885fb0c76adb599cd37a542ed16 | |
| parent | 0233e6b1a7f72aa392a68cd9c8a6748f59857b50 (diff) | |
| download | poky-ac56e2ed37d592f9af84a14074367b7d137818f8.tar.gz | |
linux-libc-headers-yocto: move to meta-yocto
linux-libc-headers-yocto is not directly required in meta, so we can
safely move it to meta-yocto.
Machines including meta-yocto that are using linux-yocto that need headers
which are completely up to date with the linux-yocto git tree can use this
as their preferred linux-libc-headers.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta-yocto/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/meta-yocto/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb b/meta-yocto/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb new file mode 100644 index 0000000000..756b596913 --- /dev/null +++ b/meta-yocto/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | require recipes-kernel/linux-libc-headers/linux-libc-headers.inc | ||
| 2 | include recipes-kernel/linux/linux-yocto.inc | ||
| 3 | |||
| 4 | B = "${S}" | ||
| 5 | |||
| 6 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 7 | DEPENDS += "unifdef-native" | ||
| 8 | PROVIDES = "linux-libc-headers" | ||
| 9 | RPROVIDES_${PN}-dev = "linux-libc-headers-dev" | ||
| 10 | RPROVIDES_${PN}-dbg = "linux-libc-headers-dbg" | ||
| 11 | SRCREV = "21ab5dca134a6bf1316aa59f69f9ee9e091d5702" | ||
| 12 | KBRANCH ?= "standard/base" | ||
| 13 | KMETA ?= "meta" | ||
| 14 | PV = "3.2+git-${SRCPV}" | ||
| 15 | PR = "r5" | ||
| 16 | |||
| 17 | SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.2;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta" | ||
| 18 | |||
| 19 | # force this to empty to prevent installation failures, we aren't | ||
| 20 | # building a device tree as part of kern headers | ||
| 21 | KERNEL_DEVICETREE = "" | ||
| 22 | |||
| 23 | set_arch() { | ||
| 24 | case ${TARGET_ARCH} in | ||
| 25 | arm*) ARCH=arm ;; | ||
| 26 | i*86*) ARCH=i386 ;; | ||
| 27 | ia64*) ARCH=ia64 ;; | ||
| 28 | mips*) ARCH=mips ;; | ||
| 29 | powerpc*) ARCH=powerpc ;; | ||
| 30 | x86_64*) ARCH=x86_64 ;; | ||
| 31 | esac | ||
| 32 | } | ||
| 33 | |||
| 34 | do_configure() { | ||
| 35 | set_arch | ||
| 36 | oe_runmake allnoconfig ARCH=$ARCH | ||
| 37 | } | ||
| 38 | |||
| 39 | do_install() { | ||
| 40 | set_arch | ||
| 41 | oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH | ||
| 42 | |||
| 43 | # The ..install.cmd conflicts between various configure runs | ||
| 44 | find ${D}${includedir} -name ..install.cmd | xargs rm -f | ||
| 45 | } | ||
| 46 | |||
| 47 | # The following tasks are not required when we just want | ||
| 48 | # headers. So we override and stub them out. | ||
| 49 | do_kernel_configme() { | ||
| 50 | } | ||
| 51 | |||
| 52 | do_patch () { | ||
| 53 | } | ||
| 54 | |||
| 55 | do_compile () { | ||
| 56 | } | ||
| 57 | |||
| 58 | do_validate_branches () { | ||
| 59 | } | ||
| 60 | |||
| 61 | do_kernel_configcheck () { | ||
| 62 | } | ||
| 63 | |||
| 64 | BBCLASSEXTEND = "nativesdk" | ||
