* [PATCH 1/2] kernel-yocto.bbclass: remove do_kernel_link_vmlinux from SRCTREECOVEREDTASKS
@ 2015-12-14 20:04 Andre McCurdy
2015-12-14 20:04 ` [PATCH 2/2] kernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass Andre McCurdy
0 siblings, 1 reply; 5+ messages in thread
From: Andre McCurdy @ 2015-12-14 20:04 UTC (permalink / raw)
To: openembedded-core
The do_kernel_link_vmlinux() task modifies the build directory (not
the source tree) and should not be skipped when externalsrc is being
used.
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
meta/classes/kernel-yocto.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 00d9667..3762d1d 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -1,5 +1,5 @@
# remove tasks that modify the source tree in case externalsrc is inherited
-SRCTREECOVEREDTASKS += "do_kernel_link_vmlinux do_kernel_configme do_validate_branches do_kernel_configcheck do_kernel_checkout do_shared_workdir do_fetch do_unpack do_patch"
+SRCTREECOVEREDTASKS += "do_kernel_configme do_validate_branches do_kernel_configcheck do_kernel_checkout do_shared_workdir do_fetch do_unpack do_patch"
# returns local (absolute) path names for all valid patches in the
# src_uri
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] kernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass
2015-12-14 20:04 [PATCH 1/2] kernel-yocto.bbclass: remove do_kernel_link_vmlinux from SRCTREECOVEREDTASKS Andre McCurdy
@ 2015-12-14 20:04 ` Andre McCurdy
2015-12-14 20:08 ` Mario Domenech Goulart
0 siblings, 1 reply; 5+ messages in thread
From: Andre McCurdy @ 2015-12-14 20:04 UTC (permalink / raw)
To: openembedded-core
Move do_kernel_link_vmlinux() from kernel-yocto.bbclass into
kernel.bbclass so that it's available to any kernel recipe.
Note that the task is not enabled by default in kernel-yocto.bbclass,
so don't enable by default in kernel.bbclass either. To enable, see
the example in linux-yocto.inc, ie:
addtask kernel_link_vmlinux after do_compile before do_install
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
meta/classes/kernel-yocto.bbclass | 12 ------------
meta/classes/kernel.bbclass | 12 ++++++++++++
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 3762d1d..558515e 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -348,18 +348,6 @@ do_validate_branches() {
fi
}
-# Many scripts want to look in arch/$arch/boot for the bootable
-# image. This poses a problem for vmlinux based booting. This
-# task arranges to have vmlinux appear in the normalized directory
-# location.
-do_kernel_link_vmlinux() {
- if [ ! -d "${B}/arch/${ARCH}/boot" ]; then
- mkdir ${B}/arch/${ARCH}/boot
- fi
- cd ${B}/arch/${ARCH}/boot
- ln -sf ../../../vmlinux
-}
-
OE_TERMINAL_EXPORTS += "KBUILD_OUTPUT"
KBUILD_OUTPUT = "${B}"
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 4ce1611..2e60139 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -408,6 +408,18 @@ python split_kernel_packages () {
do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.(bin|fw|cis|dsp)$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
}
+# Many scripts want to look in arch/$arch/boot for the bootable
+# image. This poses a problem for vmlinux based booting. This
+# task arranges to have vmlinux appear in the normalized directory
+# location.
+do_kernel_link_vmlinux() {
+ if [ ! -d "${B}/arch/${ARCH}/boot" ]; then
+ mkdir ${B}/arch/${ARCH}/boot
+ fi
+ cd ${B}/arch/${ARCH}/boot
+ ln -sf ../../../vmlinux
+}
+
do_strip() {
if [ -n "${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}" ]; then
if [ "${KERNEL_IMAGETYPE}" != "vmlinux" ]; then
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH 2/2] kernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass
2015-12-14 20:04 ` [PATCH 2/2] kernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass Andre McCurdy
@ 2015-12-14 20:08 ` Mario Domenech Goulart
2015-12-14 20:28 ` Andre McCurdy
0 siblings, 1 reply; 5+ messages in thread
From: Mario Domenech Goulart @ 2015-12-14 20:08 UTC (permalink / raw)
To: Andre McCurdy; +Cc: openembedded-core
Hello Andre,
On Mon, 14 Dec 2015 12:04:50 -0800 Andre McCurdy <armccurdy@gmail.com> wrote:
> Move do_kernel_link_vmlinux() from kernel-yocto.bbclass into
> kernel.bbclass so that it's available to any kernel recipe.
>
> Note that the task is not enabled by default in kernel-yocto.bbclass,
> so don't enable by default in kernel.bbclass either. To enable, see
> the example in linux-yocto.inc, ie:
>
> addtask kernel_link_vmlinux after do_compile before do_install
>
> Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
> ---
> meta/classes/kernel-yocto.bbclass | 12 ------------
> meta/classes/kernel.bbclass | 12 ++++++++++++
> 2 files changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
> index 3762d1d..558515e 100644
> --- a/meta/classes/kernel-yocto.bbclass
> +++ b/meta/classes/kernel-yocto.bbclass
> @@ -348,18 +348,6 @@ do_validate_branches() {
> fi
> }
>
> -# Many scripts want to look in arch/$arch/boot for the bootable
> -# image. This poses a problem for vmlinux based booting. This
> -# task arranges to have vmlinux appear in the normalized directory
> -# location.
> -do_kernel_link_vmlinux() {
> - if [ ! -d "${B}/arch/${ARCH}/boot" ]; then
> - mkdir ${B}/arch/${ARCH}/boot
> - fi
> - cd ${B}/arch/${ARCH}/boot
> - ln -sf ../../../vmlinux
> -}
> -
> OE_TERMINAL_EXPORTS += "KBUILD_OUTPUT"
> KBUILD_OUTPUT = "${B}"
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 4ce1611..2e60139 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -408,6 +408,18 @@ python split_kernel_packages () {
> do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.(bin|fw|cis|dsp)$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
> }
>
> +# Many scripts want to look in arch/$arch/boot for the bootable
> +# image. This poses a problem for vmlinux based booting. This
> +# task arranges to have vmlinux appear in the normalized directory
> +# location.
> +do_kernel_link_vmlinux() {
> + if [ ! -d "${B}/arch/${ARCH}/boot" ]; then
> + mkdir ${B}/arch/${ARCH}/boot
> + fi
Wouldn't "mkdir -p ${B}/arch/${ARCH}/boot" be better here?
> + cd ${B}/arch/${ARCH}/boot
> + ln -sf ../../../vmlinux
> +}
> +
> do_strip() {
> if [ -n "${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}" ]; then
> if [ "${KERNEL_IMAGETYPE}" != "vmlinux" ]; then
> --
> 1.9.1
--
http://www.ossystems.com.br
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 2/2] kernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass
2015-12-14 20:08 ` Mario Domenech Goulart
@ 2015-12-14 20:28 ` Andre McCurdy
0 siblings, 0 replies; 5+ messages in thread
From: Andre McCurdy @ 2015-12-14 20:28 UTC (permalink / raw)
To: Mario Domenech Goulart; +Cc: OE Core mailing list
Hi Mario,
On Mon, Dec 14, 2015 at 12:08 PM, Mario Domenech Goulart
<mario@ossystems.com.br> wrote:
> Hello Andre,
>
> On Mon, 14 Dec 2015 12:04:50 -0800 Andre McCurdy <armccurdy@gmail.com> wrote:
>
>> Move do_kernel_link_vmlinux() from kernel-yocto.bbclass into
>> kernel.bbclass so that it's available to any kernel recipe.
>>
>> Note that the task is not enabled by default in kernel-yocto.bbclass,
>> so don't enable by default in kernel.bbclass either. To enable, see
>> the example in linux-yocto.inc, ie:
>>
>> addtask kernel_link_vmlinux after do_compile before do_install
>>
>> Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
>> ---
>> meta/classes/kernel-yocto.bbclass | 12 ------------
>> meta/classes/kernel.bbclass | 12 ++++++++++++
>> 2 files changed, 12 insertions(+), 12 deletions(-)
>>
>> diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
>> index 3762d1d..558515e 100644
>> --- a/meta/classes/kernel-yocto.bbclass
>> +++ b/meta/classes/kernel-yocto.bbclass
>> @@ -348,18 +348,6 @@ do_validate_branches() {
>> fi
>> }
>>
>> -# Many scripts want to look in arch/$arch/boot for the bootable
>> -# image. This poses a problem for vmlinux based booting. This
>> -# task arranges to have vmlinux appear in the normalized directory
>> -# location.
>> -do_kernel_link_vmlinux() {
>> - if [ ! -d "${B}/arch/${ARCH}/boot" ]; then
>> - mkdir ${B}/arch/${ARCH}/boot
>> - fi
>> - cd ${B}/arch/${ARCH}/boot
>> - ln -sf ../../../vmlinux
>> -}
>> -
>> OE_TERMINAL_EXPORTS += "KBUILD_OUTPUT"
>> KBUILD_OUTPUT = "${B}"
>>
>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>> index 4ce1611..2e60139 100644
>> --- a/meta/classes/kernel.bbclass
>> +++ b/meta/classes/kernel.bbclass
>> @@ -408,6 +408,18 @@ python split_kernel_packages () {
>> do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.(bin|fw|cis|dsp)$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
>> }
>>
>> +# Many scripts want to look in arch/$arch/boot for the bootable
>> +# image. This poses a problem for vmlinux based booting. This
>> +# task arranges to have vmlinux appear in the normalized directory
>> +# location.
>> +do_kernel_link_vmlinux() {
>> + if [ ! -d "${B}/arch/${ARCH}/boot" ]; then
>> + mkdir ${B}/arch/${ARCH}/boot
>> + fi
>
> Wouldn't "mkdir -p ${B}/arch/${ARCH}/boot" be better here?
This patch is just about moving an existing task, so any clean-up
should be addressed in a separate patch.
Using mkdir -p looks fine to me in this case, but the existing code
has been around for 5 years, so it doesn't seem urgent to change it:
http://git.openembedded.org/openembedded-core/commit/?id=149f2262135ca87608783a8801c9c2d978d8c8ef
>> + cd ${B}/arch/${ARCH}/boot
>> + ln -sf ../../../vmlinux
>> +}
>> +
>> do_strip() {
>> if [ -n "${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}" ]; then
>> if [ "${KERNEL_IMAGETYPE}" != "vmlinux" ]; then
>> --
>> 1.9.1
>
> --
> http://www.ossystems.com.br
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 0/2] move do_kernel_link_vmlinux() into kernel.bbclass
@ 2015-12-23 0:12 Andre McCurdy
2015-12-23 0:12 ` [PATCH 2/2] kernel-yocto.bbclass: " Andre McCurdy
0 siblings, 1 reply; 5+ messages in thread
From: Andre McCurdy @ 2015-12-23 0:12 UTC (permalink / raw)
To: openembedded-core
do_kernel_link_vmlinux(), or something like it, is useful for MIPS,
since MIPS has no support for zImage images:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/mips/Makefile#n400
Moving do_kernel_link_vmlinux() from kernel-yocto.bbclass into
kernel.bbclass makes the task available to non-yocto kernels and so
avoids the need to duplicate or re-implement it in kernel recipes
based on kernel.bbclass.
Andre McCurdy (2):
kernel-yocto.bbclass: remove do_kernel_link_vmlinux from SRCTREECOVEREDTASKS
kernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass
meta/classes/kernel-yocto.bbclass | 14 +-------------
meta/classes/kernel.bbclass | 12 ++++++++++++
2 files changed, 13 insertions(+), 13 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] kernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass
2015-12-23 0:12 [PATCH 0/2] " Andre McCurdy
@ 2015-12-23 0:12 ` Andre McCurdy
0 siblings, 0 replies; 5+ messages in thread
From: Andre McCurdy @ 2015-12-23 0:12 UTC (permalink / raw)
To: openembedded-core
Move do_kernel_link_vmlinux() from kernel-yocto.bbclass into
kernel.bbclass so that it's available to any kernel recipe.
Note that the task is not enabled by default in kernel-yocto.bbclass,
so don't enable by default in kernel.bbclass either. To enable, see
the example in linux-yocto.inc, ie:
addtask kernel_link_vmlinux after do_compile before do_install
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
meta/classes/kernel-yocto.bbclass | 12 ------------
meta/classes/kernel.bbclass | 12 ++++++++++++
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 3762d1d..558515e 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -348,18 +348,6 @@ do_validate_branches() {
fi
}
-# Many scripts want to look in arch/$arch/boot for the bootable
-# image. This poses a problem for vmlinux based booting. This
-# task arranges to have vmlinux appear in the normalized directory
-# location.
-do_kernel_link_vmlinux() {
- if [ ! -d "${B}/arch/${ARCH}/boot" ]; then
- mkdir ${B}/arch/${ARCH}/boot
- fi
- cd ${B}/arch/${ARCH}/boot
- ln -sf ../../../vmlinux
-}
-
OE_TERMINAL_EXPORTS += "KBUILD_OUTPUT"
KBUILD_OUTPUT = "${B}"
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 4ce1611..2e60139 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -408,6 +408,18 @@ python split_kernel_packages () {
do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.(bin|fw|cis|dsp)$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
}
+# Many scripts want to look in arch/$arch/boot for the bootable
+# image. This poses a problem for vmlinux based booting. This
+# task arranges to have vmlinux appear in the normalized directory
+# location.
+do_kernel_link_vmlinux() {
+ if [ ! -d "${B}/arch/${ARCH}/boot" ]; then
+ mkdir ${B}/arch/${ARCH}/boot
+ fi
+ cd ${B}/arch/${ARCH}/boot
+ ln -sf ../../../vmlinux
+}
+
do_strip() {
if [ -n "${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}" ]; then
if [ "${KERNEL_IMAGETYPE}" != "vmlinux" ]; then
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-12-23 0:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-14 20:04 [PATCH 1/2] kernel-yocto.bbclass: remove do_kernel_link_vmlinux from SRCTREECOVEREDTASKS Andre McCurdy
2015-12-14 20:04 ` [PATCH 2/2] kernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass Andre McCurdy
2015-12-14 20:08 ` Mario Domenech Goulart
2015-12-14 20:28 ` Andre McCurdy
-- strict thread matches above, loose matches on Subject: below --
2015-12-23 0:12 [PATCH 0/2] " Andre McCurdy
2015-12-23 0:12 ` [PATCH 2/2] kernel-yocto.bbclass: " Andre McCurdy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox