diff options
Diffstat (limited to 'meta-selftest/recipes-test/ext-dtb/bbb-dtbs-as-ext.bb')
| -rw-r--r-- | meta-selftest/recipes-test/ext-dtb/bbb-dtbs-as-ext.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-selftest/recipes-test/ext-dtb/bbb-dtbs-as-ext.bb b/meta-selftest/recipes-test/ext-dtb/bbb-dtbs-as-ext.bb new file mode 100644 index 0000000000..5055d03e54 --- /dev/null +++ b/meta-selftest/recipes-test/ext-dtb/bbb-dtbs-as-ext.bb | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | SUMMARY = "Boeaglebone Devicetrees" | ||
| 2 | DESCRIPTION = "Handle the dtc files of the beaglebone-yocto via devicetree.bbclass just for testing purpose" | ||
| 3 | SECTION = "kernel" | ||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
| 6 | |||
| 7 | inherit devicetree | ||
| 8 | |||
| 9 | COMPATIBLE_MACHINE = "^(beaglebone-yocto)$" | ||
| 10 | |||
| 11 | # Take a copy of a small devicetree from the kernel's source directory for handling it externally | ||
| 12 | # Borrowed an example DTB overlay from | ||
| 13 | # https://raw.githubusercontent.com/beagleboard/linux/refs/heads/5.10/arch/arm/boot/dts/overlays/BBORG_RELAY-00A2.dts | ||
| 14 | SRC_URI = "\ | ||
| 15 | file://am335x-bonegreen-ext.dts \ | ||
| 16 | file://BBORG_RELAY-00A2.dts \ | ||
| 17 | " | ||
| 18 | |||
| 19 | # The am335x-bonegreen-ext.dts needs also the ti directories | ||
| 20 | DT_INCLUDE:append = " ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts/ti/omap" | ||
| 21 | |||
| 22 | # Sym-links are handled as extra configuration nodes in FIT images. | ||
| 23 | do_install:append() { | ||
| 24 | ln -sf am335x-bonegreen-ext.dtb "${D}/boot/devicetree/am335x-bonegreen-ext-alias.dtb" | ||
| 25 | } | ||
| 26 | |||
| 27 | do_deploy:append() { | ||
| 28 | ln -sf am335x-bonegreen-ext.dtb "${DEPLOYDIR}/devicetree/am335x-bonegreen-ext-alias.dtb" | ||
| 29 | } | ||
