blob: 2ffd5b21f56a9e729971cd655127d700f39b9fac [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
Brad Bishop754b8fa2019-08-20 09:16:20 -040036# microblaze does not get on with pie for reasons not looked into as yet
37GCCPIE_microblaze = ""
38GLIBCPIE_microblaze = ""
39SECURITY_CFLAGS_microblaze = ""
40SECURITY_LDFLAGS_microblaze = ""
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080041
Brad Bishop286d45c2018-10-02 15:21:57 -040042XSERVER ?= " \
43 xserver-xorg \
44 xf86-input-evdev \
45 xf86-input-mouse \
46 xf86-input-keyboard \
47 xf86-video-fbdev \
48 ${XSERVER_EXT} \
49 "
50
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080051IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}"
52
53def get_default_image_boot_files(d):
54 files = []
55
56 # kernel images
57 kerneltypes = set((d.getVar("KERNEL_IMAGETYPE") or "").split())
58 kerneltypes |= set((d.getVar("KERNEL_IMAGETYPES") or "").split())
59 for i in kerneltypes:
60 files.append(i)
61
62 # u-boot image
63 if d.getVar("UBOOT_BINARY"):
64 files.append(d.getVar("UBOOT_BINARY"))
65
66 # device trees (device-tree only), these are first as they are likely desired over the kernel ones
67 if "device-tree" in (d.getVar("MACHINE_ESSENTIAL_EXTRA_RDEPENDS") or ""):
68 files.append("devicetree/*.dtb")
69
70
71 # device trees (kernel only)
72 if d.getVar("KERNEL_DEVICETREE"):
73 dtbs = d.getVar("KERNEL_DEVICETREE").split(" ")
74 dtbs = [os.path.basename(d) for d in dtbs]
75 for dtb in dtbs:
76 files.append(dtb)
77
78 return " ".join(files)
79
Brad Bishop286d45c2018-10-02 15:21:57 -040080XSERVER_EXT ?= ""
81XSERVER_EXT_zynqmp ?= "xf86-video-armsoc"
82
83# For MicroBlaze default all microblaze machines to use GDB 7.7.1 (for gdbserver/gdb)
84PREFERRED_VERSION_gdb_microblaze = "7.7.1"
85
Brad Bishop26bdd442019-08-16 17:08:17 -040086FPGA_MNGR_RECONFIG_ENABLE ?= "${@bb.utils.contains('IMAGE_FEATURES', 'fpga-manager', '1', '0', d)}"