mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-06-06 10:50:37 +00:00
linux-ti-staging: extract common rdepends, pass defconfig_builder.sh via variable
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
b5cb0c8f45
commit
9b10b8144c
@@ -0,0 +1,40 @@
|
||||
# Pull in the devicetree files into the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree"
|
||||
|
||||
# Add run-time dependency for PM firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti33x = " amx3-cm3"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti43x = " amx3-cm3"
|
||||
|
||||
# Add run-time dependency for VPE VPDMA firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_dra7xx = " vpdma-fw"
|
||||
|
||||
# Add run-time dependency for Goodix firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_dra7xx = " goodix-fw"
|
||||
|
||||
# Install boot-monitor skern file into /boot dir of rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_keystone = " boot-monitor"
|
||||
|
||||
# Install ti-sci-fw into /boot dir of rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_k2g = " ti-sci-fw"
|
||||
|
||||
# Add run-time dependency for SerDes firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_keystone = " serdes-fw"
|
||||
|
||||
# Add run-time dependency for QMSS PDSP firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_keystone = " qmss-pdsp-fw"
|
||||
|
||||
# Add run-time dependency for NETCP PA firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_k2hk = " netcp-pa-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_k2e = " netcp-pa-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_k2l = " netcp-pa-fw"
|
||||
|
||||
# Add run-time dependency for PRU Ethernet firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am57xx-evm = " prueth-fw prusw-fw pruhsr-fw pruprp-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am57xx-hs-evm = " prueth-fw prusw-fw pruhsr-fw pruprp-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti43x = " prueth-fw pruhsr-fw pruprp-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti33x = " prueth-fw pruhsr-fw pruprp-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am65xx = " prueth-fw-am65x"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am65xx-evm = " prueth-fw-am65x-sr2"
|
||||
|
||||
# Add run-time dependency for Cadence MHDP firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j7 = " cadence-mhdp-fw"
|
||||
@@ -1,59 +1,20 @@
|
||||
SECTION = "kernel"
|
||||
DESCRIPTION = "Linux kernel for TI devices"
|
||||
SUMMARY = "Linux kernel for TI devices"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
|
||||
|
||||
inherit kernel
|
||||
|
||||
DEFCONFIG_BUILDER = "${S}/ti_config_fragments/defconfig_builder.sh"
|
||||
require recipes-kernel/linux/setup-defconfig.inc
|
||||
require recipes-kernel/linux/cmem.inc
|
||||
require recipes-kernel/linux/ti-uio.inc
|
||||
require recipes-kernel/linux/bundle-devicetree.inc
|
||||
require recipes-kernel/linux/kernel-rdepends.inc
|
||||
|
||||
# Look in the generic major.minor directory for files
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.4:"
|
||||
|
||||
# Pull in the devicetree files into the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree"
|
||||
|
||||
# Add run-time dependency for PM firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti33x = " amx3-cm3"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti43x = " amx3-cm3"
|
||||
|
||||
# Add run-time dependency for VPE VPDMA firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_dra7xx = " vpdma-fw"
|
||||
|
||||
# Add run-time dependency for Goodix firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_dra7xx = " goodix-fw"
|
||||
|
||||
# Install boot-monitor skern file into /boot dir of rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_keystone = " boot-monitor"
|
||||
|
||||
# Install ti-sci-fw into /boot dir of rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_k2g = " ti-sci-fw"
|
||||
|
||||
# Add run-time dependency for SerDes firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_keystone = " serdes-fw"
|
||||
|
||||
# Add run-time dependency for QMSS PDSP firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_keystone = " qmss-pdsp-fw"
|
||||
|
||||
# Add run-time dependency for NETCP PA firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_k2hk = " netcp-pa-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_k2e = " netcp-pa-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_k2l = " netcp-pa-fw"
|
||||
|
||||
# Add run-time dependency for PRU Ethernet firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am57xx-evm = " prueth-fw prusw-fw pruhsr-fw pruprp-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am57xx-hs-evm = " prueth-fw prusw-fw pruhsr-fw pruprp-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti43x = " prueth-fw pruhsr-fw pruprp-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti33x = " prueth-fw pruhsr-fw pruprp-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am65xx = " prueth-fw-am65x"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am65xx-evm = " prueth-fw-am65x-sr2"
|
||||
|
||||
# Add run-time dependency for Cadence MHDP firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j7 = " cadence-mhdp-fw"
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
@@ -28,7 +28,7 @@ do_configure() {
|
||||
config=`cat ${B}/.config | grep use-tisdk-config | cut -d= -f2`
|
||||
if [ -n "$config" ]
|
||||
then
|
||||
${S}/ti_config_fragments/defconfig_builder.sh -w ${S} -t $config
|
||||
${DEFCONFIG_BUILDER} -w ${S} -t $config
|
||||
oe_runmake -C ${S} O=${B} "$config"_defconfig
|
||||
else
|
||||
# First, check if pointing to a combined config with config fragments
|
||||
|
||||
Reference in New Issue
Block a user