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 v2 1/5] recipes-kernel/linux: allow the usage of the cip-kernel-config
Date: Thu,  9 Jan 2020 09:52:38 +0100	[thread overview]
Message-ID: <20200109085242.4466-2-Quirin.Gylstorff@siemens.com> (raw)
In-Reply-To: <20200108143358.26177-1-Quirin.Gylstorff@siemens.com>

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

To avoid the duplication of the linux cip kernel configuration
add the option USE_CIP_KERNEL_CONFIG. If this option is set to 1
the KERNEL_DEFCONFIG from the cip project is used. The KERNEL_DEFCONFIG
is contains the explicit path to the defconfig in
gitlab.com/cip-project/cip-kernel-config.git.

SRCREV_cip-kernel-config sets the commit sha for checkout.

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 conf/machine/hihope-rzg2m.conf            |  1 -
 kas.yml                                   |  4 ++--
 recipes-kernel/linux/linux-cip-common.inc | 18 +++++++++++++++---
 3 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/conf/machine/hihope-rzg2m.conf b/conf/machine/hihope-rzg2m.conf
index 8b8849f..863e20d 100644
--- a/conf/machine/hihope-rzg2m.conf
+++ b/conf/machine/hihope-rzg2m.conf
@@ -13,6 +13,5 @@ DISTRO_ARCH = "arm64"
 
 IMAGE_TYPE ?= "wic-img"
 
-KERNEL_DEFCONFIG = "https://gitlab.com/cip-project/cip-kernel/cip-kernel-config/raw/693be1bfb92e6c0ef813cf29431ac49eab0e15be/4.19.y-cip/arm64/renesas_defconfig"
 DTB_FILE = "r8a774a1-hihope-rzg2m-ex.dtb"
 IMAGE_BOOT_FILES = "${KERNEL_IMAGE} ${DTB_FILE}"
diff --git a/kas.yml b/kas.yml
index aa7ddda..3eb6f03 100644
--- a/kas.yml
+++ b/kas.yml
@@ -18,8 +18,8 @@ repos:
   cip-core:
 
   isar:
-    url: https://github.com/ilbers/isar
-    refspec: 20a5e368021d988d8f0dcd1951b395d194a37ebb
+    url: https://github.com/ilbers/isar.git
+    refspec: 619d6d88ac8c745282fd16773d50a466567615b6
     layers:
       meta:
 
diff --git a/recipes-kernel/linux/linux-cip-common.inc b/recipes-kernel/linux/linux-cip-common.inc
index d65cfa3..f8cbf50 100644
--- a/recipes-kernel/linux/linux-cip-common.inc
+++ b/recipes-kernel/linux/linux-cip-common.inc
@@ -9,10 +9,22 @@
 # SPDX-License-Identifier: MIT
 #
 
-require recipes-kernel/linux/linux-custom.inc
+KERNEL_DEFCONFIG ?= "${MACHINE}_defconfig"
+
+def conditional(variable, checkvalue, truevalue, falsevalue, d):
+    if d.getVar(variable) == checkvalue:
+        return truevalue
+    else:
+        return falsevalue
 
-KERNEL_DEFCONFIG = "${MACHINE}_defconfig"
+require recipes-kernel/linux/linux-custom.inc
 
 SRC_URI += " \
     https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git/snapshot/linux-cip-${PV}.tar.gz \
-    file://${KERNEL_DEFCONFIG}"
+"
+
+SRC_URI_append = "${@conditional("USE_CIP_KERNEL_CONFIG","1", \
+" git://gitlab.com/cip-project/cip-kernel/cip-kernel-config.git;protocol=https;destsuffix=cip-kernel-config;name=cip-kernel-config" \
+," file://${KERNEL_DEFCONFIG}",d)}"
+SRCREV_cip-kernel-config ?= "f88ee1e75253104f975263cf4d0bddd557388197"
+
-- 
2.20.1

  parent reply	other threads:[~2020-01-09  8:52 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 ` [cip-dev] [isar-cip-core PATCH 5/5] kas: patch isar for iwg20m with kernel 4.4 Q. Gylstorff
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 ` Q. Gylstorff [this message]
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=20200109085242.4466-2-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.