blob: 5375cbdc99cf877211f88b41f03692dee1ed36f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright (C) 2023 Quentin Schulz <quentin.schulz@theobroma-systems.com>
# Released under the MIT license (see COPYING.MIT for the terms)
SUMMARY = "Theobroma Systems Vendor Linux kernel"
LICENSE = "GPL-2.0-only"
SECTION = "kernel"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
inherit kernel
SRC_GIT_REPO:jaguar = "git://git.theobroma-systems.com/jaguar-linux.git"
SRC_GIT_REPO_PROTO = ";protocol=https"
SRC_GIT_BRANCH:jaguar = ";branch=linux-5.10-gen-rkr4.1-jaguar"
COMPATIBLE_MACHINE = "(jaguar)"
SRC_URI = " \
${SRC_GIT_REPO}${SRC_GIT_REPO_PROTO}${SRC_GIT_BRANCH} \
${SRC_URI_PATCHES} \
"
SRCREV:jaguar = "a68cba5c49103c73efda209185f38c08b6d23dce"
S = "${WORKDIR}/git"
SRC_URI_PATCHES ?= ""
LINUX_VERSION ?= "5.10.160"
DEFCONFIG:jaguar ?= "jaguar-rk3588_defconfig"
CONFIGURE_FILES = "${DEFCONFIG}"
# Borrowed from kernel-yocto.bbclass:do_kernel_metadata()
do_configure:prepend () {
set +e
if [ -n "${DEFCONFIG}" ]; then
if [ -f "${S}/arch/${ARCH}/configs/${DEFCONFIG}" ]; then
if [ -f "${WORKDIR}/defconfig" ]; then
# If the two defconfig's are different, warn that we overwrote the
# one already placed in WORKDIR
cmp "${WORKDIR}/defconfig" "${S}/arch/${ARCH}/configs/${DEFCONFIG}"
if [ $? -ne 0 ]; then
bbdebug 1 "detected SRC_URI or unpatched defconfig in WORKDIR. ${DEFCONFIG} copied over it"
fi
cp -f ${S}/arch/${ARCH}/configs/${DEFCONFIG} ${WORKDIR}/defconfig
else
cp -f ${S}/arch/${ARCH}/configs/${DEFCONFIG} ${WORKDIR}/defconfig
fi
fi
fi
set -e
}
|