blob: db9bc26b4010cd5b3a96fcfbc2506d170814eff8 (
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
55
56
|
# Copyright (C) 2022 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:ringneck-haikou = "git://git.theobroma-systems.com/ringneck-linux.git"
SRC_GIT_REPO:puma-haikou = "git://git.theobroma-systems.com/puma-linux.git"
SRC_GIT_REPO_PROTO = ";protocol=https"
SRC_GIT_BRANCH:ringneck-haikou = ";branch=v6.0.2-ringneck"
SRC_GIT_BRANCH:puma-haikou = ";branch=v6.0.2-puma"
COMPATIBLE_MACHINE = "(puma-haikou|ringneck-haikou)"
SRC_URI = " \
${SRC_GIT_REPO}${SRC_GIT_REPO_PROTO}${SRC_GIT_BRANCH} \
${SRC_URI_PATCHES} \
"
SRCREV:ringneck-haikou = "805aa082cec9a41c51e8af36c5092495e37388da"
SRCREV:puma-haikou = "7624b244784bd19b4f5100a94ea3ac2bb1f3624d"
S = "${WORKDIR}/git"
SRC_URI_PATCHES ?= ""
LINUX_VERSION ?= "6.0.2"
DEFCONFIG:ringneck-haikou ?= "ringneck-px30_defconfig"
DEFCONFIG:puma-haikou ?= "puma-rk3399_defconfig"
KERNEL_DEVICETREE:prepend:puma-haikou = "rockchip/rk3399-puma-haikou-video-demo.dtb "
# Borrowed from kernel-yocto.bbclass:do_kernel_metadata()
do_configure:prepend () {
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
}
|