public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] linux-custom: add path to image for arm* kernels < 4.12
@ 2020-01-08 13:57 Q. Gylstorff
  2020-01-10 18:49 ` Jan Kiszka
  0 siblings, 1 reply; 5+ messages in thread
From: Q. Gylstorff @ 2020-01-08 13:57 UTC (permalink / raw)
  To: isar-users; +Cc: Quirin Gylstorff

From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

ARM/ARM64 Kernel with a version < 4.12 do not contain the path to
the kernel image in image_name. This was added with commits:
152e6744ebfc8fa6cc9fff4ba36271f5f1ba2821 for arm and
06995804b5762f016c7a80503406da853a8f3785 for arm64.

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 meta/recipes-kernel/linux/files/debian/isar/install.tmpl | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
index 67b7ce3..ac347aa 100644
--- a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
+++ b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
@@ -56,7 +56,12 @@ EOF
 
 install_image() {
     install -m 755 -d ${deb_img_dir}/$(dirname ${kimage_path})
-    cp ${O}/${kimage} ${deb_img_dir}/${kimage_path}
+    # ARM/ARM64 kernels < 4.12 do not include the path to the kernel
+    if [ -e ${O}/${kimage} ]; then
+        cp ${O}/${kimage} ${deb_img_dir}/${kimage_path}
+    else
+        cp ${O}/arch/$ARCH/boot/${kimage} ${deb_img_dir}/${kimage_path}
+    fi
 
     # Make sure arm64 kernels are decompressed
     if [ "${ARCH}" = "arm64" ]; then
-- 
2.20.1


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

* Re: [PATCH] linux-custom: add path to image for arm* kernels < 4.12
  2020-01-08 13:57 [PATCH] linux-custom: add path to image for arm* kernels < 4.12 Q. Gylstorff
@ 2020-01-10 18:49 ` Jan Kiszka
  2020-01-13  9:01   ` Gylstorff Quirin
  2020-01-14 15:29   ` [PATCH v2] " Q. Gylstorff
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Kiszka @ 2020-01-10 18:49 UTC (permalink / raw)
  To: [ext] Q. Gylstorff, isar-users

On 08.01.20 14:57, [ext] Q. Gylstorff wrote:
> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> 
> ARM/ARM64 Kernel with a version < 4.12 do not contain the path to
> the kernel image in image_name. This was added with commits:
> 152e6744ebfc8fa6cc9fff4ba36271f5f1ba2821 for arm and
> 06995804b5762f016c7a80503406da853a8f3785 for arm64.
> 
> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> ---
>   meta/recipes-kernel/linux/files/debian/isar/install.tmpl | 7 ++++++-
>   1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
> index 67b7ce3..ac347aa 100644
> --- a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
> +++ b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
> @@ -56,7 +56,12 @@ EOF
>   
>   install_image() {
>       install -m 755 -d ${deb_img_dir}/$(dirname ${kimage_path})
> -    cp ${O}/${kimage} ${deb_img_dir}/${kimage_path}
> +    # ARM/ARM64 kernels < 4.12 do not include the path to the kernel
> +    if [ -e ${O}/${kimage} ]; then
> +        cp ${O}/${kimage} ${deb_img_dir}/${kimage_path}
> +    else
> +        cp ${O}/arch/$ARCH/boot/${kimage} ${deb_img_dir}/${kimage_path}
> +    fi

Maybe better expand (i.e. redefine) kimage when ${O}/${kimage} doesn't 
exist, rather than duplicating the copy operation.

Jan

>   
>       # Make sure arm64 kernels are decompressed
>       if [ "${ARCH}" = "arm64" ]; then
> 

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

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

* Re: [PATCH] linux-custom: add path to image for arm* kernels < 4.12
  2020-01-10 18:49 ` Jan Kiszka
@ 2020-01-13  9:01   ` Gylstorff Quirin
  2020-01-14 15:29   ` [PATCH v2] " Q. Gylstorff
  1 sibling, 0 replies; 5+ messages in thread
From: Gylstorff Quirin @ 2020-01-13  9:01 UTC (permalink / raw)
  To: Jan Kiszka, isar-users



On 1/10/20 7:49 PM, Jan Kiszka wrote:
> On 08.01.20 14:57, [ext] Q. Gylstorff wrote:
>> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>>
>> ARM/ARM64 Kernel with a version < 4.12 do not contain the path to
>> the kernel image in image_name. This was added with commits:
>> 152e6744ebfc8fa6cc9fff4ba36271f5f1ba2821 for arm and
>> 06995804b5762f016c7a80503406da853a8f3785 for arm64.
>>
>> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>> ---
>>   meta/recipes-kernel/linux/files/debian/isar/install.tmpl | 7 ++++++-
>>   1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl 
>> b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
>> index 67b7ce3..ac347aa 100644
>> --- a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
>> +++ b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
>> @@ -56,7 +56,12 @@ EOF
>>   install_image() {
>>       install -m 755 -d ${deb_img_dir}/$(dirname ${kimage_path})
>> -    cp ${O}/${kimage} ${deb_img_dir}/${kimage_path}
>> +    # ARM/ARM64 kernels < 4.12 do not include the path to the kernel
>> +    if [ -e ${O}/${kimage} ]; then
>> +        cp ${O}/${kimage} ${deb_img_dir}/${kimage_path}
>> +    else
>> +        cp ${O}/arch/$ARCH/boot/${kimage} ${deb_img_dir}/${kimage_path}
>> +    fi
> 
> Maybe better expand (i.e. redefine) kimage when ${O}/${kimage} doesn't 
> exist, rather than duplicating the copy operation.

I tried to stay near the 4.11 implementation of 
linux/scripts/package/builddeb[0] line 145. But I will change it to a 
redefinition.
> 
> Jan
> 
>>       # Make sure arm64 kernels are decompressed
>>       if [ "${ARCH}" = "arm64" ]; then
>>
> 

[0]: 
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/scripts/package/builddeb?id=152b695d74376bfe55cd2a6265ccc75b0d39dd19


Quirin

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

* [PATCH v2] linux-custom: add path to image for arm* kernels < 4.12
  2020-01-10 18:49 ` Jan Kiszka
  2020-01-13  9:01   ` Gylstorff Quirin
@ 2020-01-14 15:29   ` Q. Gylstorff
  2020-02-07 16:28     ` Baurzhan Ismagulov
  1 sibling, 1 reply; 5+ messages in thread
From: Q. Gylstorff @ 2020-01-14 15:29 UTC (permalink / raw)
  To: isar-users; +Cc: Quirin Gylstorff, Jan Kiszka

From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

ARM/ARM64 Kernel with a version < 4.12 do not contain the path to
the kernel image in image_name. This was added with commits:
152e6744ebfc8fa6cc9fff4ba36271f5f1ba2821 for arm and
06995804b5762f016c7a80503406da853a8f3785 for arm64.

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 meta/recipes-kernel/linux/files/debian/isar/install.tmpl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
index 568fb81..ab8eb0b 100644
--- a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
+++ b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
@@ -20,6 +20,10 @@ do_install() {
     . ${O}/.config
 
     kimage="$(${MAKE} O=${O} -s --no-print-directory image_name)"
+    # ARM/ARM64 kernels < 4.12 do not include the path to the kernel
+    if [ ! -e ${O}/${kimage} ]; then
+        kimage="arch/${ARCH}/boot/${kimage}"
+    fi
     krel="$(${MAKE} O=${O} -s --no-print-directory kernelrelease)"
     case "${ARCH}" in
         mips|powerpc) kimage_path="boot/vmlinux-${krel}"    ;;
-- 
2.20.1


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

* Re: [PATCH v2] linux-custom: add path to image for arm* kernels < 4.12
  2020-01-14 15:29   ` [PATCH v2] " Q. Gylstorff
@ 2020-02-07 16:28     ` Baurzhan Ismagulov
  0 siblings, 0 replies; 5+ messages in thread
From: Baurzhan Ismagulov @ 2020-02-07 16:28 UTC (permalink / raw)
  To: isar-users

On Tue, Jan 14, 2020 at 04:29:42PM +0100, Q. Gylstorff wrote:
> ARM/ARM64 Kernel with a version < 4.12 do not contain the path to
> the kernel image in image_name. This was added with commits:
> 152e6744ebfc8fa6cc9fff4ba36271f5f1ba2821 for arm and
> 06995804b5762f016c7a80503406da853a8f3785 for arm64.

Applied to next, thanks.

With kind regards,
Baurzhan.

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

end of thread, other threads:[~2020-02-07 16:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-08 13:57 [PATCH] linux-custom: add path to image for arm* kernels < 4.12 Q. Gylstorff
2020-01-10 18:49 ` Jan Kiszka
2020-01-13  9:01   ` Gylstorff Quirin
2020-01-14 15:29   ` [PATCH v2] " Q. Gylstorff
2020-02-07 16:28     ` Baurzhan Ismagulov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox