All of lore.kernel.org
 help / color / mirror / Atom feed
From: Quirin.Gylstorff@siemens.com (Q. Gylstorff)
To: cip-dev@lists.cip-project.org
Subject: [cip-dev] [isar-cip-core PATCH 5/5] kas: patch isar for iwg20m with kernel 4.4
Date: Wed,  8 Jan 2020 15:33:58 +0100	[thread overview]
Message-ID: <20200108143358.26177-6-Quirin.Gylstorff@siemens.com> (raw)
In-Reply-To: <20200108143358.26177-1-Quirin.Gylstorff@siemens.com>

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

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 ...d-path-to-image-for-arm-kernels-4.12.patch | 37 +++++++++++++++++++
 kas.yml                                       |  5 +++
 2 files changed, 42 insertions(+)
 create mode 100644 isar-patches/0001-linux-custom-add-path-to-image-for-arm-kernels-4.12.patch

diff --git a/isar-patches/0001-linux-custom-add-path-to-image-for-arm-kernels-4.12.patch b/isar-patches/0001-linux-custom-add-path-to-image-for-arm-kernels-4.12.patch
new file mode 100644
index 0000000..3e4e13e
--- /dev/null
+++ b/isar-patches/0001-linux-custom-add-path-to-image-for-arm-kernels-4.12.patch
@@ -0,0 +1,37 @@
+From 4961476f3affabd2bfb8f12ccc86c0abc6a66200 Mon Sep 17 00:00:00 2001
+From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
+Date: Wed, 8 Jan 2020 14:43:01 +0100
+Subject: [PATCH] linux-custom: add path to image for arm* kernels < 4.12
+To: isar-users at googlegroups.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
+
diff --git a/kas.yml b/kas.yml
index 3eb6f03..a157dc9 100644
--- a/kas.yml
+++ b/kas.yml
@@ -22,6 +22,11 @@ repos:
     refspec: 619d6d88ac8c745282fd16773d50a466567615b6
     layers:
       meta:
+    patches:
+      build-arm-with-4.4:
+        path: isar-patches/0001-linux-custom-add-path-to-image-for-arm-kernels-4.12.patch
+        repo: cip-core
+
 
 bblayers_conf_header:
   standard: |
-- 
2.20.1

  parent reply	other threads:[~2020-01-08 14:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-08 14:33 [cip-dev] [isar-cip-core PATCH 0/5] Use cip-kernel-config for images Q. Gylstorff
2020-01-08 14:33 ` [cip-dev] [isar-cip-core PATCH 1/5] recipes-kernel/linux: allow the usage of the cip-kernel-config Q. Gylstorff
2020-01-08 14:33 ` [cip-dev] [isar-cip-core PATCH 2/5] Use renesas-config for hihope-rzg2m Q. Gylstorff
2020-01-08 14:33 ` [cip-dev] [isar-cip-core PATCH 3/5] Use renesas_shmobile_defconfig for iwg20m Q. Gylstorff
2020-01-08 14:33 ` [cip-dev] [isar-cip-core PATCH 4/5] Use siemens_ipc227e_defconfig for simatic-ipc227e Q. Gylstorff
2020-01-08 14:33 ` Q. Gylstorff [this message]
2020-01-09  8:52 ` [cip-dev] [isar-cip-core PATCH v2 0/5] Use cip-kernel-config for images Q. Gylstorff
2020-01-13 12:46   ` Jan Kiszka
2020-01-09  8:52 ` [cip-dev] [isar-cip-core PATCH v2 1/5] recipes-kernel/linux: allow the usage of the cip-kernel-config Q. Gylstorff
2020-01-09  8:52 ` [cip-dev] [isar-cip-core PATCH v2 2/5] Use renesas-config for hihope-rzg2m Q. Gylstorff
2020-01-09  8:52 ` [cip-dev] [isar-cip-core PATCH v2 3/5] Use renesas_shmobile_defconfig for iwg20m Q. Gylstorff
2020-01-09  8:52 ` [cip-dev] [isar-cip-core PATCH v2 4/5] Use siemens_ipc227e_defconfig for simatic-ipc227e Q. Gylstorff
2020-01-09  8:52 ` [cip-dev] [isar-cip-core PATCH v2 5/5] kas: patch isar for iwg20m with kernel 4.4 Q. Gylstorff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200108143358.26177-6-Quirin.Gylstorff@siemens.com \
    --to=quirin.gylstorff@siemens.com \
    --cc=cip-dev@lists.cip-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.