mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-04-20 19:53:43 +00:00
linux-ti-mainline: add mainline 5.9 using ti-upstream-tools
Signed-off-by: Denys Dmytriyenko <denys@ti.com> Signed-off-by: Dan Murphy <dmurphy@ti.com>
This commit is contained in:
committed by
Dan Murphy
parent
9b10b8144c
commit
0cf0dd9af6
1
recipes-kernel/linux/linux-ti-mainline/defconfig
Normal file
1
recipes-kernel/linux/linux-ti-mainline/defconfig
Normal file
@@ -0,0 +1 @@
|
||||
use-tisdk-config=ti_sdk_omap2_release
|
||||
1
recipes-kernel/linux/linux-ti-mainline/dra7xx/defconfig
Normal file
1
recipes-kernel/linux/linux-ti-mainline/dra7xx/defconfig
Normal file
@@ -0,0 +1 @@
|
||||
use-tisdk-config=ti_sdk_dra7x_release
|
||||
1
recipes-kernel/linux/linux-ti-mainline/k2g/defconfig
Normal file
1
recipes-kernel/linux/linux-ti-mainline/k2g/defconfig
Normal file
@@ -0,0 +1 @@
|
||||
use-tisdk-config=ti_sdk_k2g_release
|
||||
1
recipes-kernel/linux/linux-ti-mainline/k3/defconfig
Normal file
1
recipes-kernel/linux/linux-ti-mainline/k3/defconfig
Normal file
@@ -0,0 +1 @@
|
||||
use-tisdk-config=ti_sdk_arm64_release
|
||||
@@ -0,0 +1 @@
|
||||
use-tisdk-config=ti_sdk_keystone_release
|
||||
@@ -0,0 +1 @@
|
||||
use-tisdk-config=ti_sdk_omapl138_release
|
||||
1
recipes-kernel/linux/linux-ti-mainline/ti33x/defconfig
Normal file
1
recipes-kernel/linux/linux-ti-mainline/ti33x/defconfig
Normal file
@@ -0,0 +1 @@
|
||||
use-tisdk-config=ti_sdk_am3x_release
|
||||
1
recipes-kernel/linux/linux-ti-mainline/ti43x/defconfig
Normal file
1
recipes-kernel/linux/linux-ti-mainline/ti43x/defconfig
Normal file
@@ -0,0 +1 @@
|
||||
use-tisdk-config=ti_sdk_am4x_release
|
||||
70
recipes-kernel/linux/linux-ti-mainline_git.bb
Normal file
70
recipes-kernel/linux/linux-ti-mainline_git.bb
Normal file
@@ -0,0 +1,70 @@
|
||||
SECTION = "kernel"
|
||||
SUMMARY = "Mainline Linux kernel for TI devices (with ti-upstream-tools)"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
||||
|
||||
inherit kernel
|
||||
|
||||
DEFCONFIG_BUILDER = "${WORKDIR}/ti-upstream-tools/config/defconfig_builder.sh"
|
||||
require recipes-kernel/linux/setup-defconfig.inc
|
||||
require recipes-kernel/linux/kernel-rdepends.inc
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
BRANCH = "master"
|
||||
|
||||
# 5.9 Mainline version
|
||||
SRCREV = "bbf5c979011a099af5dc76498918ed7df445635b"
|
||||
PV = "5.9+git${SRCPV}"
|
||||
|
||||
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
|
||||
MACHINE_KERNEL_PR_append = "a"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git"
|
||||
KERNEL_GIT_PROTOCOL = "git"
|
||||
SRC_URI += " \
|
||||
${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH};name=linux \
|
||||
git://git.ti.com/ti-linux-kernel/ti-upstream-tools.git;protocol=${KERNEL_GIT_PROTOCOL};name=ti-upstream-tools;destsuffix=ti-upstream-tools \
|
||||
file://defconfig \
|
||||
"
|
||||
|
||||
SRCREV_ti-upstream-tools = "3f36f66594d7905f7b97bc7870931173fd2466bd"
|
||||
SRCREV_FORMAT = "linux"
|
||||
|
||||
KERNEL_DEVICETREE = ""
|
||||
|
||||
kernel_do_compile_append() {
|
||||
oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
|
||||
oe_runmake -C ${WORKDIR}/ti-upstream-tools LINUX=${S} DTC=${B}/scripts/dtc/dtc O=${B} CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
|
||||
}
|
||||
|
||||
do_install_append() {
|
||||
for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \)`; do
|
||||
dtb="$dtbf"
|
||||
dtb_ext=${dtb##*.}
|
||||
dtb_base_name=`basename $dtb .$dtb_ext`
|
||||
dtb_path=`get_real_dtb_path_in_kernel "$dtb"`
|
||||
install -m 0644 $dtbf ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext
|
||||
done
|
||||
}
|
||||
|
||||
do_deploy_append() {
|
||||
for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \) -printf '%P\n'`; do
|
||||
dtb="$dtbf"
|
||||
dtb_ext=${dtb##*.}
|
||||
dtb_base_name=`basename $dtb .$dtb_ext`
|
||||
dtb_dir=`dirname $dtb`
|
||||
install -d ${DEPLOYDIR}
|
||||
install -m 0644 ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext ${DEPLOYDIR}/$dtb_base_name.$dtb_ext
|
||||
done
|
||||
}
|
||||
|
||||
do_shared_workdir_prepend() {
|
||||
cd ${B}
|
||||
echo >> Module.symvers
|
||||
}
|
||||
|
||||
FILES_${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb"
|
||||
Reference in New Issue
Block a user