mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-04-20 19:53:43 +00:00
It was suggested to move the reproducibility patches out of ti-kernel.inc and into the respective recipes. Taking this time to also rework all of the pieces that go into the SRC_URI and create a standardization for how all of the kernel recipes are done. Create KERNEL_GIT_URI, KERNEL_GIT_PROTOCOL, KERNEL_GIT_BRANCH, KERNEL_DEFCONFIG, and KERNEL_REPRODUCIBILITY_PATCHES. The default for the above new variables is to the git.ti.com repository and how we manage the kernel settings. The other kernel recipes that do something other than how TI does it can simply override the variables. This change will make it easier to perform the upstream testing that we do on a nightly basis. Additionally, it will simplify the auto generation of the patches to move the mainline (stable kernel) recipes since the required patches will be all done in the same recipe. Signed-off-by: Ryan Eatmon <reatmon@ti.com>
29 lines
798 B
PHP
29 lines
798 B
PHP
# Add DTC FLAGS -@ when KERNEL_DTB_OVERLAY_SUPPORT is enabled
|
|
|
|
def get_extra_dtc_args(d):
|
|
if d.getVar('KERNEL_DTB_OVERLAY_SUPPORT') == "1":
|
|
return "DTC_FLAGS=-@"
|
|
else:
|
|
return ""
|
|
|
|
EXTRA_DTC_ARGS += "${@get_extra_dtc_args(d)}"
|
|
|
|
# Tell the kernel class to install the DTBs in the same directory structure as
|
|
# the kernel.
|
|
KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb"
|
|
KERNEL_DTBVENDORED = "1"
|
|
|
|
KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git"
|
|
KERNEL_GIT_PROTOCOL ?= "https"
|
|
KERNEL_GIT_BRANCH ?= "branch=${BRANCH}"
|
|
|
|
KERNEL_DEFCONFIG ?= "file://defconfig"
|
|
|
|
KERNEL_REPRODUCIBILITY_PATCHES ?= ""
|
|
|
|
SRC_URI = " \
|
|
${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};${KERNEL_GIT_BRANCH} \
|
|
${KERNEL_DEFCONFIG} \
|
|
${KERNEL_REPRODUCIBILITY_PATCHES} \
|
|
"
|