diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2010-11-18 16:20:48 -0500 |
---|---|---|
committer | Saul Wold <Saul.Wold@intel.com> | 2010-12-10 22:01:37 -0800 |
commit | 48d00ad8d5134b5bf3215df4faca7c7fd01154eb (patch) | |
tree | 2ab77e65c97f125460f0e6c548c40b8f2b973b2e /meta/recipes-kernel | |
parent | 0e7d9956a0cbe95cfe2919d13fcfcac705c4b104 (diff) | |
download | poky-48d00ad8d5134b5bf3215df4faca7c7fd01154eb.tar.gz |
linux-libc-headers-yocto: use common linux-yocto routines
Modify linux-libc-headers-yocto to use the common linux-yocto
routines, so headers exported to userspace will track the
branches in the yocto kernel git repository.
This commit also switches supported boards to prefer the
yocto libc headers.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb index 3e3c1fa9ba..0515233958 100644 --- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb | |||
@@ -1,4 +1,7 @@ | |||
1 | require linux-libc-headers.inc | 1 | require linux-libc-headers.inc |
2 | include recipes-kernel/linux/linux-yocto.inc | ||
3 | |||
4 | B = "${S}" | ||
2 | 5 | ||
3 | INHIBIT_DEFAULT_DEPS = "1" | 6 | INHIBIT_DEFAULT_DEPS = "1" |
4 | DEPENDS += "unifdef-native" | 7 | DEPENDS += "unifdef-native" |
@@ -8,7 +11,9 @@ PR = "r1" | |||
8 | 11 | ||
9 | SRC_URI = "git://git.pokylinux.org/linux-2.6-windriver.git;fullclone=1" | 12 | SRC_URI = "git://git.pokylinux.org/linux-2.6-windriver.git;fullclone=1" |
10 | 13 | ||
11 | S = "${WORKDIR}/linux" | 14 | SRCREV_FORMAT = "meta_machine" |
15 | SRC_URI = "git://git.pokylinux.org/linux-2.6-windriver.git;protocol=git;fullclone=1;branch=${KBRANCH};name=machine \ | ||
16 | git://git.pokylinux.org/linux-2.6-windriver.git;protocol=git;noclone=1;branch=wrs_meta;name=meta" | ||
12 | 17 | ||
13 | set_arch() { | 18 | set_arch() { |
14 | case ${TARGET_ARCH} in | 19 | case ${TARGET_ARCH} in |
@@ -26,19 +31,11 @@ do_configure() { | |||
26 | oe_runmake allnoconfig ARCH=$ARCH | 31 | oe_runmake allnoconfig ARCH=$ARCH |
27 | } | 32 | } |
28 | 33 | ||
29 | do_kernel_checkout() { | 34 | do_kernel_configme() { |
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 | } | 35 | } |
40 | 36 | ||
41 | addtask kernel_checkout before do_patch after do_unpack | 37 | do_patch () { |
38 | } | ||
42 | 39 | ||
43 | do_compile () { | 40 | do_compile () { |
44 | } | 41 | } |