diff options
Diffstat (limited to 'recipes-kernel/linux/linux-machine-config.inc')
-rw-r--r-- | recipes-kernel/linux/linux-machine-config.inc | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/recipes-kernel/linux/linux-machine-config.inc b/recipes-kernel/linux/linux-machine-config.inc deleted file mode 100644 index f4e7fa54..00000000 --- a/recipes-kernel/linux/linux-machine-config.inc +++ /dev/null @@ -1,45 +0,0 @@ -# -# This include file implements the MACHINE_DEVICETREE and MACHINE_KCONFIG -# variable handling for the Kernel. -# -# e.g. (set in the associated <machine>.conf) -# MACHINE_DEVICETREE := "zc702/zc702-zynq7.dts" -# MACHINE_KCONFIG := "common/rtc.cfg" -# -# This will expand out to: -# SRC_URI_append += "file://zc702/zc702-zynq7.dts file://common/rtc.cfg" -# OOT_KERNEL_DEVICETREE ?= "${WORKDIR}/devicetree/zc702-zynq7.dts" -# -# This include also adds all the 'conf/machine/boards' for all layers (that are -# available) to the FILESEXTRAPATHS. -# - -inherit xilinx-utils - -# If OOT_KERNEL_DEVICETREE is not set, default to the device tree's provided by -# MACHINE_DEVICETREE -OOT_KERNEL_DEVICETREE ?= "${@expand_dir_basepaths_by_extension("MACHINE_DEVICETREE", os.path.join(d.getVar("WORKDIR", True), 'devicetree'), '.dts', d)}" - -# Appends the '<layer>/conf/machine/boards' path to FILESEXTRAPATHS for all -# layers (using the ${BBPATH}) -FILESEXTRAPATHS_append := "${@get_additional_bbpath_filespath('conf/machine/boards', d)}" - -# Using the MACHINE_DEVICETREE and MACHINE_KCONFIG vars, append them to SRC_URI -SRC_URI_append += " \ - ${@paths_affix(d.getVar("MACHINE_DEVICETREE", True) or '', prefix = 'file://')} \ - ${@paths_affix(d.getVar("MACHINE_KCONFIG", True) or '', prefix = 'file://')} \ - " - -# Copy all device tree's into the same directory. This is due to compatibility -# with dtc and the use of DTSI (Device Tree Includes), the version of DTC in -# Yocto does not provide include path support. -do_install_prepend() { - if test -n "${MACHINE_DEVICETREE}"; then - mkdir -p ${WORKDIR}/devicetree - for i in ${MACHINE_DEVICETREE}; do - if test -e ${WORKDIR}/$i; then - cp ${WORKDIR}/$i ${WORKDIR}/devicetree - fi - done - fi -} |