From 20f3191aeb592dd889eeaf96a31526297de95306 Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 22 Feb 2022 04:13:45 +0000 Subject: meta-ti: create a sub-layer meta-ti-bsp from existing content Extra sub-layers will be created next and relevant content moved across them. Signed-off-by: Denys Dmytriyenko Signed-off-by: Ryan Eatmon --- meta-ti-bsp/conf/machine/include/ti33x.inc | 70 ++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 meta-ti-bsp/conf/machine/include/ti33x.inc (limited to 'meta-ti-bsp/conf/machine/include/ti33x.inc') diff --git a/meta-ti-bsp/conf/machine/include/ti33x.inc b/meta-ti-bsp/conf/machine/include/ti33x.inc new file mode 100644 index 00000000..afb80fd6 --- /dev/null +++ b/meta-ti-bsp/conf/machine/include/ti33x.inc @@ -0,0 +1,70 @@ +require conf/machine/include/ti-soc.inc +SOC_FAMILY:append = ":ti33x" + +DEFAULTTUNE ?= "armv7athf-neon" +require conf/machine/include/arm/armv7a/tune-cortexa8.inc + +PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" + +# For built-in LCD, add xf86-input-tslib +XSERVER = "xserver-xorg \ + xf86-input-evdev \ + xf86-input-mouse \ + xf86-video-fbdev \ + xf86-input-keyboard" + +# Default to external video, change to smallscreen for built-in LCD +MACHINE_GUI_CLASS = "bigscreen" + +# Increase this everytime you change something in the kernel +MACHINE_KERNEL_PR = "r22" + +# Default providers, may need to override for specific machines +PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging" +PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging" +PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging" + +KERNEL_IMAGETYPE = "zImage" + +KERNEL_DEVICETREE = " \ + am335x-evm.dtb am335x-evmsk.dtb \ + am335x-icev2.dtb \ + am335x-pocketbeagle.dtb am335x-bone.dtb am335x-boneblue.dtb \ + am335x-bonegreen.dtb am335x-bonegreen-wireless.dtb \ + am335x-boneblack.dtb am335x-boneblack-wireless.dtb \ + am335x-sancloud-bbe.dtb \ +" + +KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am335x-icev2-pru-excl-uio.dtb', '', d)}" + +UBOOT_ARCH = "arm" +UBOOT_MACHINE = "am335x_evm_config" + +UBOOT_ENTRYPOINT = "0x80008000" +UBOOT_LOADADDRESS = "0x80008000" + +# Generate an extlinux.conf file +UBOOT_EXTLINUX = "1" +UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}" +UBOOT_EXTLINUX_BOOT_FILES = " \ + extlinux.conf;extlinux/extlinux.conf \ + ${KERNEL_IMAGETYPE} \ + ${KERNEL_DEVICETREE} \ +" + +SPL_BINARY = "MLO" +UBOOT_SUFFIX = "img" + +# Use the expected value of the ubifs filesystem's volume name in the kernel +# and u-boot. +UBI_VOLNAME = "rootfs" + +EXTRA_IMAGEDEPENDS += "virtual/bootloader" + +# List common SoC features, may need to add touchscreen for specific machines +MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu" + +IMAGE_FSTYPES += "tar.xz wic.xz" +WKS_FILE ?= "sdimage-2part.wks" +IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}" +do_image_wic[depends] += "virtual/bootloader:do_deploy" -- cgit v1.2.3-54-g00ecf