blob: d3e3119db0e5a1252ccbdbc2f6aada9527e04965 (
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
|
# 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 = "git://git.theobroma-systems.com/ringneck-linux.git"
SRC_GIT_REPO_PROTO = ";protocol=https"
SRC_GIT_BRANCH = ";branch=v6.0.2-ringneck"
SRC_URI = " \
${SRC_GIT_REPO}${SRC_GIT_REPO_PROTO}${SRC_GIT_BRANCH} \
${SRC_URI_PATCHES} \
"
SRCREV = "de748a4593915b3566233e6724bac9ecb4418e38"
S = "${WORKDIR}/git"
SRC_URI_PATCHES ?= ""
LINUX_VERSION ?= "6.0.2"
DEFCONFIG ?= "ringneck-px30_defconfig"
# 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
}
|