blob: 1367e57abd30146dbac6404813f0fa7d5df92fd8 [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"
Brad Bishopeb610d62019-09-09 14:57:03 -040028UBOOT_ELF_versal ?= "u-boot.elf"
Brad Bishop286d45c2018-10-02 15:21:57 -040029
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080030#Hardware accelaration
31PREFERRED_PROVIDER_virtual/libgles1_mali400 = "libmali-xlnx"
32PREFERRED_PROVIDER_virtual/libgles2_mali400 = "libmali-xlnx"
33PREFERRED_PROVIDER_virtual/egl_mali400 = "libmali-xlnx"
34PREFERRED_PROVIDER_virtual/libgl_mali400 = "mesa-gl"
35PREFERRED_PROVIDER_virtual/mesa_mali400 = "mesa-gl"
36
Brad Bishop754b8fa2019-08-20 09:16:20 -040037# microblaze does not get on with pie for reasons not looked into as yet
38GCCPIE_microblaze = ""
39GLIBCPIE_microblaze = ""
40SECURITY_CFLAGS_microblaze = ""
41SECURITY_LDFLAGS_microblaze = ""
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080042
Brad Bishop286d45c2018-10-02 15:21:57 -040043XSERVER ?= " \
44 xserver-xorg \
45 xf86-input-evdev \
46 xf86-input-mouse \
47 xf86-input-keyboard \
48 xf86-video-fbdev \
49 ${XSERVER_EXT} \
50 "
51
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080052IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}"
53
54def get_default_image_boot_files(d):
55 files = []
56
57 # kernel images
58 kerneltypes = set((d.getVar("KERNEL_IMAGETYPE") or "").split())
59 kerneltypes |= set((d.getVar("KERNEL_IMAGETYPES") or "").split())
60 for i in kerneltypes:
61 files.append(i)
62
63 # u-boot image
64 if d.getVar("UBOOT_BINARY"):
65 files.append(d.getVar("UBOOT_BINARY"))
66
67 # device trees (device-tree only), these are first as they are likely desired over the kernel ones
68 if "device-tree" in (d.getVar("MACHINE_ESSENTIAL_EXTRA_RDEPENDS") or ""):
69 files.append("devicetree/*.dtb")
70
71
72 # device trees (kernel only)
73 if d.getVar("KERNEL_DEVICETREE"):
74 dtbs = d.getVar("KERNEL_DEVICETREE").split(" ")
75 dtbs = [os.path.basename(d) for d in dtbs]
76 for dtb in dtbs:
77 files.append(dtb)
78
79 return " ".join(files)
80
Brad Bishop286d45c2018-10-02 15:21:57 -040081XSERVER_EXT ?= ""
82XSERVER_EXT_zynqmp ?= "xf86-video-armsoc"
83
84# For MicroBlaze default all microblaze machines to use GDB 7.7.1 (for gdbserver/gdb)
85PREFERRED_VERSION_gdb_microblaze = "7.7.1"
86
Brad Bishop26bdd442019-08-16 17:08:17 -040087FPGA_MNGR_RECONFIG_ENABLE ?= "${@bb.utils.contains('IMAGE_FEATURES', 'fpga-manager', '1', '0', d)}"