blob: f2533be704194dcdcff39c823c1057b547f9067c [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
Andrew Geissler84ad7c52020-06-27 00:00:16 -05009PREFERRED_PROVIDER_virtual/kernel ??= "linux-xlnx"
Brad Bishop286d45c2018-10-02 15:21:57 -040010
11# U-Boot Configuration
Andrew Geissler84ad7c52020-06-27 00:00:16 -050012PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-xlnx"
Brad Bishop286d45c2018-10-02 15:21:57 -040013PREFERRED_PROVIDER_virtual/boot-bin ??= "${PREFERRED_PROVIDER_virtual/bootloader}"
14
Andrew Geissler84ad7c52020-06-27 00:00:16 -050015do_image_wic[depends] += "${@' '.join('%s:do_deploy' % r for r in (d.getVar('WIC_DEPENDS') or "").split())}"
16
Brad Bishop286d45c2018-10-02 15:21:57 -040017UBOOT_SUFFIX ?= "img"
Brad Bishop286d45c2018-10-02 15:21:57 -040018UBOOT_SUFFIX_microblaze ?= "bin"
19
20UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}"
21UBOOT_ELF ?= "u-boot"
22UBOOT_ELF_aarch64 ?= "u-boot.elf"
23
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080024#Hardware accelaration
25PREFERRED_PROVIDER_virtual/libgles1_mali400 = "libmali-xlnx"
26PREFERRED_PROVIDER_virtual/libgles2_mali400 = "libmali-xlnx"
27PREFERRED_PROVIDER_virtual/egl_mali400 = "libmali-xlnx"
28PREFERRED_PROVIDER_virtual/libgl_mali400 = "mesa-gl"
29PREFERRED_PROVIDER_virtual/mesa_mali400 = "mesa-gl"
30
Brad Bishop754b8fa2019-08-20 09:16:20 -040031# microblaze does not get on with pie for reasons not looked into as yet
32GCCPIE_microblaze = ""
33GLIBCPIE_microblaze = ""
34SECURITY_CFLAGS_microblaze = ""
35SECURITY_LDFLAGS_microblaze = ""
Andrew Geissler84ad7c52020-06-27 00:00:16 -050036# Microblaze does not support gnu hash style
37LINKER_HASH_STYLE_microblaze = "sysv"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080038
Brad Bishop286d45c2018-10-02 15:21:57 -040039XSERVER ?= " \
40 xserver-xorg \
41 xf86-input-evdev \
42 xf86-input-mouse \
43 xf86-input-keyboard \
44 xf86-video-fbdev \
45 ${XSERVER_EXT} \
46 "
47
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080048IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}"
49
50def get_default_image_boot_files(d):
51 files = []
52
53 # kernel images
54 kerneltypes = set((d.getVar("KERNEL_IMAGETYPE") or "").split())
55 kerneltypes |= set((d.getVar("KERNEL_IMAGETYPES") or "").split())
56 for i in kerneltypes:
57 files.append(i)
58
59 # u-boot image
60 if d.getVar("UBOOT_BINARY"):
61 files.append(d.getVar("UBOOT_BINARY"))
62
63 # device trees (device-tree only), these are first as they are likely desired over the kernel ones
64 if "device-tree" in (d.getVar("MACHINE_ESSENTIAL_EXTRA_RDEPENDS") or ""):
65 files.append("devicetree/*.dtb")
66
67
68 # device trees (kernel only)
69 if d.getVar("KERNEL_DEVICETREE"):
70 dtbs = d.getVar("KERNEL_DEVICETREE").split(" ")
71 dtbs = [os.path.basename(d) for d in dtbs]
72 for dtb in dtbs:
73 files.append(dtb)
74
75 return " ".join(files)
76
Brad Bishop286d45c2018-10-02 15:21:57 -040077XSERVER_EXT ?= ""
Brad Bishop286d45c2018-10-02 15:21:57 -040078
Brad Bishop26bdd442019-08-16 17:08:17 -040079FPGA_MNGR_RECONFIG_ENABLE ?= "${@bb.utils.contains('IMAGE_FEATURES', 'fpga-manager', '1', '0', d)}"