All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] kernel-uimage: change target image to vmlinux
@ 2016-04-13 18:17 Ruslan Bilovol
  2016-04-13 21:56 ` Marek Vasut
  0 siblings, 1 reply; 2+ messages in thread
From: Ruslan Bilovol @ 2016-04-13 18:17 UTC (permalink / raw)
  To: openembedded-core; +Cc: marex, xe-linux-external

Commit e69525: "kernel: Build uImage only when really
needed" hardcoded target kernel image to zImage for
case if uImage is generated by OpenEmbedded buildsystem.

However not all kernel architectures support zImage
target, for example AArch64 doesn't, so building of
kernel is failing on this step.

So instead of building zImage target that may not
exist for many architectures, build vmlinux target
that exists for all architectures.

Since kernel-uboot.bbclass uses vmlinux anyway for
creating image, there is no side effect on this change.

Signed-off-by: Ruslan Bilovol <rbilovol@cisco.com>
---
 meta/classes/kernel-uimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/kernel-uimage.bbclass b/meta/classes/kernel-uimage.bbclass
index f73965b..de7ca38 100644
--- a/meta/classes/kernel-uimage.bbclass
+++ b/meta/classes/kernel-uimage.bbclass
@@ -13,7 +13,7 @@ python __anonymous () {
 	# KEEPUIMAGE == yes. Otherwise, we pack compressed vmlinux into
 	# the uImage .
 	if d.getVar("KEEPUIMAGE", True) != 'yes':
-            d.setVar("KERNEL_IMAGETYPE_FOR_MAKE", "zImage")
+            d.setVar("KERNEL_IMAGETYPE_FOR_MAKE", "vmlinux")
 }
 
 do_uboot_mkimage() {
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] kernel-uimage: change target image to vmlinux
  2016-04-13 18:17 [PATCH v2] kernel-uimage: change target image to vmlinux Ruslan Bilovol
@ 2016-04-13 21:56 ` Marek Vasut
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2016-04-13 21:56 UTC (permalink / raw)
  To: Ruslan Bilovol, openembedded-core; +Cc: xe-linux-external

On 04/13/2016 08:17 PM, Ruslan Bilovol wrote:
> Commit e69525: "kernel: Build uImage only when really
> needed" hardcoded target kernel image to zImage for
> case if uImage is generated by OpenEmbedded buildsystem.
> 
> However not all kernel architectures support zImage
> target, for example AArch64 doesn't, so building of
> kernel is failing on this step.
> 
> So instead of building zImage target that may not
> exist for many architectures, build vmlinux target
> that exists for all architectures.
> 
> Since kernel-uboot.bbclass uses vmlinux anyway for
> creating image, there is no side effect on this change.
> 
> Signed-off-by: Ruslan Bilovol <rbilovol@cisco.com>

To me, this looks sensible:

Reviewed-by: Marek Vasut <marex@denx.de>

If someone depends on this uImage bbclass generating also zImage,
there will be a failure and that should be fixed therein.

> ---
>  meta/classes/kernel-uimage.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/classes/kernel-uimage.bbclass b/meta/classes/kernel-uimage.bbclass
> index f73965b..de7ca38 100644
> --- a/meta/classes/kernel-uimage.bbclass
> +++ b/meta/classes/kernel-uimage.bbclass
> @@ -13,7 +13,7 @@ python __anonymous () {
>  	# KEEPUIMAGE == yes. Otherwise, we pack compressed vmlinux into
>  	# the uImage .
>  	if d.getVar("KEEPUIMAGE", True) != 'yes':
> -            d.setVar("KERNEL_IMAGETYPE_FOR_MAKE", "zImage")
> +            d.setVar("KERNEL_IMAGETYPE_FOR_MAKE", "vmlinux")
>  }
>  
>  do_uboot_mkimage() {
> 


-- 
Best regards,
Marek Vasut


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-13 22:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-13 18:17 [PATCH v2] kernel-uimage: change target image to vmlinux Ruslan Bilovol
2016-04-13 21:56 ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.