From patchwork Thu Jan 9 08:52:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quirin Gylstorff X-Patchwork-Id: 11325255 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8DC5D139A for ; Thu, 9 Jan 2020 08:53:32 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 75AFA2067D for ; Thu, 9 Jan 2020 08:53:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 75AFA2067D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=siemens.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=cip-dev-bounces@lists.cip-project.org Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3784F203CC; Thu, 9 Jan 2020 08:53:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mjcYvYRTSK5H; Thu, 9 Jan 2020 08:53:31 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id 3C3BD203FA; Thu, 9 Jan 2020 08:53:31 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 34DC6C18DC; Thu, 9 Jan 2020 08:53:31 +0000 (UTC) X-Original-To: cip-dev@lists.cip-project.org Delivered-To: cip-dev@lists.linuxfoundation.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 9C214C0881 for ; Thu, 9 Jan 2020 08:53:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 861C6855F6 for ; Thu, 9 Jan 2020 08:53:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7DCCinK0R6CQ for ; Thu, 9 Jan 2020 08:53:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 421F885570 for ; Thu, 9 Jan 2020 08:53:28 +0000 (UTC) Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id 0098rPKQ024433 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 9 Jan 2020 09:53:25 +0100 Received: from md2dvrtc.ad001.siemens.net ([139.25.69.120]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 0098rPPD010496; Thu, 9 Jan 2020 09:53:25 +0100 From: "Q. Gylstorff" To: cip-dev@lists.cip-project.org Date: Thu, 9 Jan 2020 09:52:38 +0100 Message-Id: <20200109085242.4466-2-Quirin.Gylstorff@siemens.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200108143358.26177-1-Quirin.Gylstorff@siemens.com> References: <20200108143358.26177-1-Quirin.Gylstorff@siemens.com> MIME-Version: 1.0 Cc: Quirin Gylstorff Subject: [cip-dev] [isar-cip-core PATCH v2 1/5] recipes-kernel/linux: allow the usage of the cip-kernel-config X-BeenThere: cip-dev@lists.cip-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cip-dev-bounces@lists.cip-project.org Sender: "cip-dev" From: Quirin Gylstorff 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 --- 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" +