public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Subject: [PATCH v3 10/14] linux-custom: Add support for RISC-V
Date: Wed, 29 Jan 2020 11:30:02 +0100	[thread overview]
Message-ID: <0db5ee3e915101b03f9b9cffda9e894221aeba93.1580293806.git.jan.kiszka@siemens.com> (raw)
In-Reply-To: <cover.1580293806.git.jan.kiszka@siemens.com>
In-Reply-To: <cover.1580293806.git.jan.kiszka@siemens.com>

From: Jan Kiszka <jan.kiszka@siemens.com>

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/recipes-kernel/linux/files/debian/isar/install.tmpl | 10 +++++-----
 meta/recipes-kernel/linux/linux-custom.inc               |  2 ++
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
index 568fb815..8a8aa8f2 100644
--- a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
+++ b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
@@ -22,9 +22,9 @@ do_install() {
     kimage="$(${MAKE} O=${O} -s --no-print-directory image_name)"
     krel="$(${MAKE} O=${O} -s --no-print-directory kernelrelease)"
     case "${ARCH}" in
-        mips|powerpc) kimage_path="boot/vmlinux-${krel}"    ;;
-                  um) kimage_path="usr/bin/vmlinux-${krel}" ;;
-                   *) kimage_path="boot/vmlinuz-${krel}"    ;;
+        mips|powerpc|riscv) kimage_path="boot/vmlinux-${krel}"    ;;
+                        um) kimage_path="usr/bin/vmlinux-${krel}" ;;
+                         *) kimage_path="boot/vmlinuz-${krel}"    ;;
     esac
 
     print_settings
@@ -56,8 +56,8 @@ install_image() {
     install -m 755 -d ${deb_img_dir}/$(dirname ${kimage_path})
     cp ${O}/${kimage} ${deb_img_dir}/${kimage_path}
 
-    # Make sure arm64 kernels are decompressed
-    if [ "${ARCH}" = "arm64" ]; then
+    # Make sure arm64 and riscv kernels are decompressed
+    if [ "${ARCH}" = "arm64" -o "${ARCH}" = "riscv" ]; then
         mv ${deb_img_dir}/${kimage_path} ${deb_img_dir}/${kimage_path}.gz
         gunzip -f ${deb_img_dir}/${kimage_path}.gz
     fi
diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc
index d31da3bb..753becff 100644
--- a/meta/recipes-kernel/linux/linux-custom.inc
+++ b/meta/recipes-kernel/linux/linux-custom.inc
@@ -97,6 +97,8 @@ def get_kernel_arch(d):
         kernel_arch = "arm"
     elif distro_arch == "mipsel":
         kernel_arch = "mips"
+    elif distro_arch == "riscv64":
+        kernel_arch = "riscv"
     else:
         kernel_arch = ""
     return kernel_arch
-- 
2.16.4


  parent reply	other threads:[~2020-01-29 10:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-29 10:29 [PATCH v3 00/14] RISC-V support Jan Kiszka
2020-01-29 10:29 ` [PATCH v3 01/14] meta-isar: Clean up qemu multiconfigs Jan Kiszka
2020-01-29 10:29 ` [PATCH v3 02/14] meta: Decouple kernel copy-out from KERNEL_FILE Jan Kiszka
2020-01-29 10:29 ` [PATCH v3 03/14] meta: Add debian-sid-ports distro config Jan Kiszka
2020-01-29 10:29 ` [PATCH v3 04/14] meta: Add RISC-V architecture Jan Kiszka
2020-01-29 10:29 ` [PATCH v3 05/14] meta: Allow cross-compilation for RISC-V Jan Kiszka
2020-01-29 10:29 ` [PATCH v3 06/14] start_vm: Add RISC-V 64-bit support Jan Kiszka
2020-01-29 10:29 ` [PATCH v3 07/14] meta-isar: Add qemuriscv64 virtual target Jan Kiszka
2020-01-29 10:30 ` [PATCH v3 08/14] u-boot-script: Account for variations of kernel files and boot commands Jan Kiszka
2020-01-29 10:30 ` [PATCH v3 09/14] linux-custom: Tune strip rule to cover vmlinux images as well Jan Kiszka
2020-01-29 10:30 ` Jan Kiszka [this message]
2020-01-29 10:30 ` [PATCH v3 11/14] linux-modules: Add support for RISC-V Jan Kiszka
2020-01-29 10:30 ` [PATCH v3 12/14] linux-mainline: Avoid failing UBIFS test when defconfig does not support it Jan Kiszka
2020-01-29 10:30 ` [PATCH v3 13/14] linux-mainline: Update to 5.4.10 Jan Kiszka
2020-01-29 10:30 ` [PATCH v3 14/14] meta-isar: Add HiFive Unleashed board as physical RISC-V target Jan Kiszka
2020-02-12 20:19 ` [PATCH v3 00/14] RISC-V support Baurzhan Ismagulov

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=0db5ee3e915101b03f9b9cffda9e894221aeba93.1580293806.git.jan.kiszka@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=isar-users@googlegroups.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox