@@ -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}"
@@ -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:
@@ -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"
+