Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | # Default Xilinx BSP Machine settings |
| 2 | |
| 3 | MACHINE_FEATURES_BACKFILL_CONSIDERED += "rtc" |
| 4 | |
| 5 | # File System Configuration |
| 6 | IMAGE_FSTYPES ?= "tar.gz cpio cpio.gz.u-boot" |
| 7 | |
| 8 | # Kernel Configuration |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 9 | PREFERRED_PROVIDER_virtual/kernel ??= "linux-xlnx" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 10 | |
| 11 | # U-Boot Configuration |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 12 | PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-xlnx" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 13 | PREFERRED_PROVIDER_virtual/boot-bin ??= "${PREFERRED_PROVIDER_virtual/bootloader}" |
| 14 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 15 | do_image_wic[depends] += "${@' '.join('%s:do_deploy' % r for r in (d.getVar('WIC_DEPENDS') or "").split())}" |
| 16 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 17 | UBOOT_SUFFIX ?= "img" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 18 | UBOOT_SUFFIX_microblaze ?= "bin" |
| 19 | |
| 20 | UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}" |
| 21 | UBOOT_ELF ?= "u-boot" |
| 22 | UBOOT_ELF_aarch64 ?= "u-boot.elf" |
| 23 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 24 | #Hardware accelaration |
| 25 | PREFERRED_PROVIDER_virtual/libgles1_mali400 = "libmali-xlnx" |
| 26 | PREFERRED_PROVIDER_virtual/libgles2_mali400 = "libmali-xlnx" |
| 27 | PREFERRED_PROVIDER_virtual/egl_mali400 = "libmali-xlnx" |
| 28 | PREFERRED_PROVIDER_virtual/libgl_mali400 = "mesa-gl" |
| 29 | PREFERRED_PROVIDER_virtual/mesa_mali400 = "mesa-gl" |
| 30 | |
Brad Bishop | 754b8fa | 2019-08-20 09:16:20 -0400 | [diff] [blame] | 31 | # microblaze does not get on with pie for reasons not looked into as yet |
| 32 | GCCPIE_microblaze = "" |
| 33 | GLIBCPIE_microblaze = "" |
| 34 | SECURITY_CFLAGS_microblaze = "" |
| 35 | SECURITY_LDFLAGS_microblaze = "" |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 36 | # Microblaze does not support gnu hash style |
| 37 | LINKER_HASH_STYLE_microblaze = "sysv" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 38 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 39 | XSERVER ?= " \ |
| 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 Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 48 | IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}" |
| 49 | |
| 50 | def 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 Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 77 | XSERVER_EXT ?= "" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 78 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 79 | FPGA_MNGR_RECONFIG_ENABLE ?= "${@bb.utils.contains('IMAGE_FEATURES', 'fpga-manager', '1', '0', d)}" |