blob: 3d927e76fac362b7d83b957157141de8734ffb27 [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001# Default Xilinx BSP Machine settings
2
3MACHINE_FEATURES_BACKFILL_CONSIDERED += "rtc"
4
5# File System Configuration
6IMAGE_FSTYPES ?= "tar.gz cpio cpio.gz.u-boot"
7
8# Kernel Configuration
9XILINX_DEFAULT_KERNEL := "linux-xlnx"
10XILINX_DEFAULT_KERNEL_microblaze := "linux-yocto"
11XILINX_DEFAULT_KERNEL_zynqmp := "linux-yocto"
12PREFERRED_PROVIDER_virtual/kernel ??= "${XILINX_DEFAULT_KERNEL}"
13
14# U-Boot Configuration
15XILINX_DEFAULT_UBOOT := "u-boot-xlnx"
16XILINX_DEFAULT_UBOOT_zynqmp := "u-boot"
17PREFERRED_PROVIDER_virtual/bootloader ??= "${XILINX_DEFAULT_UBOOT}"
18PREFERRED_PROVIDER_virtual/boot-bin ??= "${PREFERRED_PROVIDER_virtual/bootloader}"
19
20UBOOT_SUFFIX ?= "img"
21UBOOT_SUFFIX_zynqmp ?= "bin"
22UBOOT_SUFFIX_microblaze ?= "bin"
23
24UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}"
25UBOOT_ELF ?= "u-boot"
Brad Bishop26bdd442019-08-16 17:08:17 -040026UBOOT_ELF_zynq ?= "u-boot.elf"
Brad Bishop286d45c2018-10-02 15:21:57 -040027UBOOT_ELF_aarch64 ?= "u-boot.elf"
28
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080029#Hardware accelaration
30PREFERRED_PROVIDER_virtual/libgles1_mali400 = "libmali-xlnx"
31PREFERRED_PROVIDER_virtual/libgles2_mali400 = "libmali-xlnx"
32PREFERRED_PROVIDER_virtual/egl_mali400 = "libmali-xlnx"
33PREFERRED_PROVIDER_virtual/libgl_mali400 = "mesa-gl"
34PREFERRED_PROVIDER_virtual/mesa_mali400 = "mesa-gl"
35
36
Brad Bishop286d45c2018-10-02 15:21:57 -040037XSERVER ?= " \
38 xserver-xorg \
39 xf86-input-evdev \
40 xf86-input-mouse \
41 xf86-input-keyboard \
42 xf86-video-fbdev \
43 ${XSERVER_EXT} \
44 "
45
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080046IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}"
47
48def get_default_image_boot_files(d):
49 files = []
50
51 # kernel images
52 kerneltypes = set((d.getVar("KERNEL_IMAGETYPE") or "").split())
53 kerneltypes |= set((d.getVar("KERNEL_IMAGETYPES") or "").split())
54 for i in kerneltypes:
55 files.append(i)
56
57 # u-boot image
58 if d.getVar("UBOOT_BINARY"):
59 files.append(d.getVar("UBOOT_BINARY"))
60
61 # device trees (device-tree only), these are first as they are likely desired over the kernel ones
62 if "device-tree" in (d.getVar("MACHINE_ESSENTIAL_EXTRA_RDEPENDS") or ""):
63 files.append("devicetree/*.dtb")
64
65
66 # device trees (kernel only)
67 if d.getVar("KERNEL_DEVICETREE"):
68 dtbs = d.getVar("KERNEL_DEVICETREE").split(" ")
69 dtbs = [os.path.basename(d) for d in dtbs]
70 for dtb in dtbs:
71 files.append(dtb)
72
73 return " ".join(files)
74
Brad Bishop286d45c2018-10-02 15:21:57 -040075XSERVER_EXT ?= ""
76XSERVER_EXT_zynqmp ?= "xf86-video-armsoc"
77
78# For MicroBlaze default all microblaze machines to use GDB 7.7.1 (for gdbserver/gdb)
79PREFERRED_VERSION_gdb_microblaze = "7.7.1"
80
Brad Bishop26bdd442019-08-16 17:08:17 -040081FPGA_MNGR_RECONFIG_ENABLE ?= "${@bb.utils.contains('IMAGE_FEATURES', 'fpga-manager', '1', '0', d)}"