blob: 153a47fba4e43879ae8720e472583a480e99961b [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"
26UBOOT_ELF_aarch64 ?= "u-boot.elf"
27
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080028#Hardware accelaration
29PREFERRED_PROVIDER_virtual/libgles1_mali400 = "libmali-xlnx"
30PREFERRED_PROVIDER_virtual/libgles2_mali400 = "libmali-xlnx"
31PREFERRED_PROVIDER_virtual/egl_mali400 = "libmali-xlnx"
32PREFERRED_PROVIDER_virtual/libgl_mali400 = "mesa-gl"
33PREFERRED_PROVIDER_virtual/mesa_mali400 = "mesa-gl"
34
35
Brad Bishop286d45c2018-10-02 15:21:57 -040036XSERVER ?= " \
37 xserver-xorg \
38 xf86-input-evdev \
39 xf86-input-mouse \
40 xf86-input-keyboard \
41 xf86-video-fbdev \
42 ${XSERVER_EXT} \
43 "
44
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080045IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}"
46
47def get_default_image_boot_files(d):
48 files = []
49
50 # kernel images
51 kerneltypes = set((d.getVar("KERNEL_IMAGETYPE") or "").split())
52 kerneltypes |= set((d.getVar("KERNEL_IMAGETYPES") or "").split())
53 for i in kerneltypes:
54 files.append(i)
55
56 # u-boot image
57 if d.getVar("UBOOT_BINARY"):
58 files.append(d.getVar("UBOOT_BINARY"))
59
60 # device trees (device-tree only), these are first as they are likely desired over the kernel ones
61 if "device-tree" in (d.getVar("MACHINE_ESSENTIAL_EXTRA_RDEPENDS") or ""):
62 files.append("devicetree/*.dtb")
63
64
65 # device trees (kernel only)
66 if d.getVar("KERNEL_DEVICETREE"):
67 dtbs = d.getVar("KERNEL_DEVICETREE").split(" ")
68 dtbs = [os.path.basename(d) for d in dtbs]
69 for dtb in dtbs:
70 files.append(dtb)
71
72 return " ".join(files)
73
Brad Bishop286d45c2018-10-02 15:21:57 -040074XSERVER_EXT ?= ""
75XSERVER_EXT_zynqmp ?= "xf86-video-armsoc"
76
77# For MicroBlaze default all microblaze machines to use GDB 7.7.1 (for gdbserver/gdb)
78PREFERRED_VERSION_gdb_microblaze = "7.7.1"
79