diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2010-11-15 11:25:58 -0500 |
---|---|---|
committer | Saul Wold <Saul.Wold@intel.com> | 2010-11-18 13:30:22 -0800 |
commit | c70816cb9022dfedd78817bb1dfe20219fe2dd90 (patch) | |
tree | 764704dc00eacf53e7a276a0840a32c71160f27f /meta/recipes-kernel | |
parent | 771d890d086534536ff4aa4a386f17e2b697c0be (diff) | |
download | poky-c70816cb9022dfedd78817bb1dfe20219fe2dd90.tar.gz |
linux-wrs: rename to linux-yocto
The existing preferred yocto kernel wasn't named appropriately
and needs to be updated.
In keeping the changes small and isolated, this commit simply
renames the recipe and some internal variables. Future commits
will refactor the code into more usable blocks.
Now that linuy-wrs has been renamed linux-yocto, we need
to rename and update an board configurations and append
files.
Now that linux-wrs has been renamed linux-yocto, we need to
update the SRCREVs to have the new name.
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 (renamed from meta/recipes-kernel/linux-libc-headers/linux-libc-headers-wrs_git.bb) | 4 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto_git.bb (renamed from meta/recipes-kernel/linux/linux-wrs_git.bb) | 73 |
2 files changed, 39 insertions, 38 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-yocto_git.bb index ab25e500ba..6ae6d5f642 100644 --- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-wrs_git.bb +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb | |||
@@ -26,7 +26,7 @@ do_configure() { | |||
26 | oe_runmake allnoconfig ARCH=$ARCH | 26 | oe_runmake allnoconfig ARCH=$ARCH |
27 | } | 27 | } |
28 | 28 | ||
29 | do_wrlinux_checkout() { | 29 | do_kernel_checkout() { |
30 | if [ -d ${WORKDIR}/.git/refs/remotes/origin ]; then | 30 | if [ -d ${WORKDIR}/.git/refs/remotes/origin ]; then |
31 | rm -rf ${S} | 31 | rm -rf ${S} |
32 | mkdir ${S} | 32 | mkdir ${S} |
@@ -38,7 +38,7 @@ do_wrlinux_checkout() { | |||
38 | git checkout -f standard | 38 | git checkout -f standard |
39 | } | 39 | } |
40 | 40 | ||
41 | addtask wrlinux_checkout before do_patch after do_unpack | 41 | addtask kernel_checkout before do_patch after do_unpack |
42 | 42 | ||
43 | do_compile () { | 43 | do_compile () { |
44 | } | 44 | } |
diff --git a/meta/recipes-kernel/linux/linux-wrs_git.bb b/meta/recipes-kernel/linux/linux-yocto_git.bb index 209648b8e7..ef005aefca 100644 --- a/meta/recipes-kernel/linux/linux-wrs_git.bb +++ b/meta/recipes-kernel/linux/linux-yocto_git.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Wind River Kernel" | 1 | DESCRIPTION = "Yocto Kernel" |
2 | SECTION = "kernel" | 2 | SECTION = "kernel" |
3 | LICENSE = "GPL" | 3 | LICENSE = "GPL" |
4 | 4 | ||
@@ -13,16 +13,17 @@ PV = "2.6.34+git${SRCPV}" | |||
13 | SRC_URI = "git://git.pokylinux.org/linux-2.6-windriver.git;protocol=git;fullclone=1;branch=${KBRANCH};name=machine \ | 13 | SRC_URI = "git://git.pokylinux.org/linux-2.6-windriver.git;protocol=git;fullclone=1;branch=${KBRANCH};name=machine \ |
14 | git://git.pokylinux.org/linux-2.6-windriver.git;protocol=git;noclone=1;branch=wrs_meta;name=meta" | 14 | git://git.pokylinux.org/linux-2.6-windriver.git;protocol=git;noclone=1;branch=wrs_meta;name=meta" |
15 | 15 | ||
16 | WRMACHINE = "UNDEFINED" | 16 | # map the poky machine to a 'kernel machine' |
17 | WRMACHINE_qemux86 = "common_pc" | 17 | KMACHINE = "UNDEFINED" |
18 | WRMACHINE_qemux86-64 = "common_pc_64" | 18 | KMACHINE_qemux86 = "common_pc" |
19 | WRMACHINE_qemuppc = "qemu_ppc32" | 19 | KMACHINE_qemux86-64 = "common_pc_64" |
20 | WRMACHINE_qemumips = "mti_malta32_be" | 20 | KMACHINE_qemuppc = "qemu_ppc32" |
21 | WRMACHINE_qemuarm = "arm_versatile_926ejs" | 21 | KMACHINE_qemumips = "mti_malta32_be" |
22 | WRMACHINE_atom-pc = "atom-pc" | 22 | KMACHINE_qemuarm = "arm_versatile_926ejs" |
23 | WRMACHINE_routerstationpro = "routerstationpro" | 23 | KMACHINE_atom-pc = "atom-pc" |
24 | WRMACHINE_mpc8315e-rdb = "fsl-mpc8315e-rdb" | 24 | KMACHINE_routerstationpro = "routerstationpro" |
25 | WRMACHINE_beagleboard = "beagleboard" | 25 | KMACHINE_mpc8315e-rdb = "fsl-mpc8315e-rdb" |
26 | KMACHINE_beagleboard = "beagleboard" | ||
26 | 27 | ||
27 | # Determine which branch to fetch and build. Not all branches are in the | 28 | # Determine which branch to fetch and build. Not all branches are in the |
28 | # upstream repo (but will be locally created after the fetchers run) so | 29 | # upstream repo (but will be locally created after the fetchers run) so |
@@ -36,11 +37,11 @@ WRMACHINE_beagleboard = "beagleboard" | |||
36 | python __anonymous () { | 37 | python __anonymous () { |
37 | import bb, re | 38 | import bb, re |
38 | 39 | ||
39 | bb.data.setVar("KBRANCH", "${WRMACHINE}-${LINUX_KERNEL_TYPE}", d) | 40 | bb.data.setVar("KBRANCH", "${KMACHINE}-${LINUX_KERNEL_TYPE}", d) |
40 | mach = bb.data.getVar("WRMACHINE", d, 1) | 41 | mach = bb.data.getVar("KMACHINE", d, 1) |
41 | if mach == "UNDEFINED": | 42 | if mach == "UNDEFINED": |
42 | bb.data.setVar("KBRANCH", "standard", d) | 43 | bb.data.setVar("KBRANCH", "standard", d) |
43 | bb.data.setVar("WRMACHINE", "${MACHINE}", d) | 44 | bb.data.setVar("KMACHINE", "${MACHINE}", d) |
44 | # track the global configuration on a bootstrapped BSP | 45 | # track the global configuration on a bootstrapped BSP |
45 | bb.data.setVar("SRCREV_machine", "${SRCREV_meta}", d) | 46 | bb.data.setVar("SRCREV_machine", "${SRCREV_meta}", d) |
46 | bb.data.setVar("BOOTSTRAP", "t", d) | 47 | bb.data.setVar("BOOTSTRAP", "t", d) |
@@ -53,7 +54,7 @@ LINUX_VERSION_EXTENSION = "-wr-${LINUX_KERNEL_TYPE}" | |||
53 | PR = "r13" | 54 | PR = "r13" |
54 | 55 | ||
55 | S = "${WORKDIR}/linux" | 56 | S = "${WORKDIR}/linux" |
56 | B = "${WORKDIR}/linux-${WRMACHINE}-${LINUX_KERNEL_TYPE}-build" | 57 | B = "${WORKDIR}/linux-${KMACHINE}-${LINUX_KERNEL_TYPE}-build" |
57 | 58 | ||
58 | # functionality flags | 59 | # functionality flags |
59 | KERNEL_REVISION_CHECKING ?= "t" | 60 | KERNEL_REVISION_CHECKING ?= "t" |
@@ -66,9 +67,9 @@ do_patch() { | |||
66 | fi | 67 | fi |
67 | 68 | ||
68 | # simply ensures that a branch of the right name has been created | 69 | # simply ensures that a branch of the right name has been created |
69 | createme ${ARCH} ${WRMACHINE}-${LINUX_KERNEL_TYPE} ${defconfig} | 70 | createme ${ARCH} ${KMACHINE}-${LINUX_KERNEL_TYPE} ${defconfig} |
70 | if [ $? -ne 0 ]; then | 71 | if [ $? -ne 0 ]; then |
71 | echo "ERROR. Could not create ${WRMACHINE}-${LINUX_KERNEL_TYPE}" | 72 | echo "ERROR. Could not create ${KMACHINE}-${LINUX_KERNEL_TYPE}" |
72 | exit 1 | 73 | exit 1 |
73 | fi | 74 | fi |
74 | 75 | ||
@@ -78,14 +79,14 @@ do_patch() { | |||
78 | fi | 79 | fi |
79 | updateme ${addon_features} ${ARCH} ${WORKDIR} | 80 | updateme ${addon_features} ${ARCH} ${WORKDIR} |
80 | if [ $? -ne 0 ]; then | 81 | if [ $? -ne 0 ]; then |
81 | echo "ERROR. Could not update ${WRMACHINE}-${LINUX_KERNEL_TYPE}" | 82 | echo "ERROR. Could not update ${KMACHINE}-${LINUX_KERNEL_TYPE}" |
82 | exit 1 | 83 | exit 1 |
83 | fi | 84 | fi |
84 | 85 | ||
85 | # executes and modifies the source tree as required | 86 | # executes and modifies the source tree as required |
86 | patchme ${WRMACHINE}-${LINUX_KERNEL_TYPE} | 87 | patchme ${KMACHINE}-${LINUX_KERNEL_TYPE} |
87 | if [ $? -ne 0 ]; then | 88 | if [ $? -ne 0 ]; then |
88 | echo "ERROR. Could not modify ${WRMACHINE}-${LINUX_KERNEL_TYPE}" | 89 | echo "ERROR. Could not modify ${KMACHINE}-${LINUX_KERNEL_TYPE}" |
89 | exit 1 | 90 | exit 1 |
90 | fi | 91 | fi |
91 | } | 92 | } |
@@ -100,9 +101,9 @@ validate_branches() { | |||
100 | if [ -n "${KERNEL_REVISION_CHECKING}" ]; then | 101 | if [ -n "${KERNEL_REVISION_CHECKING}" ]; then |
101 | git show ${target_branch_head} > /dev/null 2>&1 | 102 | git show ${target_branch_head} > /dev/null 2>&1 |
102 | if [ $? -eq 0 ]; then | 103 | if [ $? -eq 0 ]; then |
103 | echo "Forcing branch ${WRMACHINE}-${LINUX_KERNEL_TYPE} to ${target_branch_head}" | 104 | echo "Forcing branch ${KMACHINE}-${LINUX_KERNEL_TYPE} to ${target_branch_head}" |
104 | git branch -m ${WRMACHINE}-${LINUX_KERNEL_TYPE} ${WRMACHINE}-${LINUX_KERNEL_TYPE}-orig | 105 | git branch -m ${KMACHINE}-${LINUX_KERNEL_TYPE} ${KMACHINE}-${LINUX_KERNEL_TYPE}-orig |
105 | git checkout -b ${WRMACHINE}-${LINUX_KERNEL_TYPE} ${target_branch_head} | 106 | git checkout -b ${KMACHINE}-${LINUX_KERNEL_TYPE} ${target_branch_head} |
106 | else | 107 | else |
107 | echo "ERROR ${target_branch_head} is not a valid commit ID." | 108 | echo "ERROR ${target_branch_head} is not a valid commit ID." |
108 | echo "The kernel source tree may be out of sync" | 109 | echo "The kernel source tree may be out of sync" |
@@ -127,9 +128,9 @@ validate_branches() { | |||
127 | fi | 128 | fi |
128 | } | 129 | } |
129 | 130 | ||
130 | do_wrlinux_checkout() { | 131 | do_kernel_checkout() { |
131 | if [ -d ${WORKDIR}/.git/refs/remotes/origin ]; then | 132 | if [ -d ${WORKDIR}/.git/refs/remotes/origin ]; then |
132 | echo "Fixing up git directory for ${WRMACHINE}-${LINUX_KERNEL_TYPE}" | 133 | echo "Fixing up git directory for ${KMACHINE}-${LINUX_KERNEL_TYPE}" |
133 | rm -rf ${S} | 134 | rm -rf ${S} |
134 | mkdir ${S} | 135 | mkdir ${S} |
135 | mv ${WORKDIR}/.git ${S} | 136 | mv ${WORKDIR}/.git ${S} |
@@ -165,17 +166,17 @@ IFS=' | |||
165 | # our initial checkout. So we do it a second time to be sure | 166 | # our initial checkout. So we do it a second time to be sure |
166 | git checkout -f ${KBRANCH} | 167 | git checkout -f ${KBRANCH} |
167 | } | 168 | } |
168 | do_wrlinux_checkout[dirs] = "${S}" | 169 | do_kernel_checkout[dirs] = "${S}" |
169 | 170 | ||
170 | addtask wrlinux_checkout before do_patch after do_unpack | 171 | addtask kernel_checkout before do_patch after do_unpack |
171 | 172 | ||
172 | do_wrlinux_configme() { | 173 | do_kernel_configme() { |
173 | echo "Doing wrlinux configme" | 174 | echo "Doing kernel configme" |
174 | 175 | ||
175 | cd ${S} | 176 | cd ${S} |
176 | configme --reconfig | 177 | configme --reconfig |
177 | if [ $? -ne 0 ]; then | 178 | if [ $? -ne 0 ]; then |
178 | echo "ERROR. Could not configure ${WRMACHINE}-${LINUX_KERNEL_TYPE}" | 179 | echo "ERROR. Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}" |
179 | exit 1 | 180 | exit 1 |
180 | fi | 181 | fi |
181 | 182 | ||
@@ -184,13 +185,13 @@ do_wrlinux_configme() { | |||
184 | echo "CONFIG_LOCALVERSION="\"${LINUX_VERSION_EXTENSION}\" >> ${B}/.config | 185 | echo "CONFIG_LOCALVERSION="\"${LINUX_VERSION_EXTENSION}\" >> ${B}/.config |
185 | } | 186 | } |
186 | 187 | ||
187 | do_wrlinux_configcheck() { | 188 | do_kernel_configcheck() { |
188 | echo "[INFO] validating kernel configuration" | 189 | echo "[INFO] validating kernel configuration" |
189 | cd ${B}/.. | 190 | cd ${B}/.. |
190 | kconf_check ${B}/.config ${B} ${S} ${B} ${LINUX_VERSION} ${WRMACHINE}-${LINUX_KERNEL_TYPE} | 191 | kconf_check ${B}/.config ${B} ${S} ${B} ${LINUX_VERSION} ${KMACHINE}-${LINUX_KERNEL_TYPE} |
191 | } | 192 | } |
192 | 193 | ||
193 | do_wrlinux_link_vmlinux() { | 194 | do_kernel_link_vmlinux() { |
194 | if [ ! -d "${B}/arch/${ARCH}/boot" ]; then | 195 | if [ ! -d "${B}/arch/${ARCH}/boot" ]; then |
195 | mkdir ${B}/arch/${ARCH}/boot | 196 | mkdir ${B}/arch/${ARCH}/boot |
196 | fi | 197 | fi |
@@ -207,9 +208,9 @@ do_install_perf() { | |||
207 | } | 208 | } |
208 | 209 | ||
209 | do_patch[depends] = "kern-tools-native:do_populate_sysroot" | 210 | do_patch[depends] = "kern-tools-native:do_populate_sysroot" |
210 | addtask wrlinux_configme before do_configure after do_patch | 211 | addtask kernel_configme before do_configure after do_patch |
211 | addtask wrlinux_link_vmlinux after do_compile before do_install | 212 | addtask kernel_link_vmlinux after do_compile before do_install |
212 | addtask wrlinux_configcheck after do_configure before do_compile | 213 | addtask kernel_configcheck after do_configure before do_compile |
213 | 214 | ||
214 | inherit kernel | 215 | inherit kernel |
215 | 216 | ||