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 |
| 9 | XILINX_DEFAULT_KERNEL := "linux-xlnx" |
| 10 | XILINX_DEFAULT_KERNEL_microblaze := "linux-yocto" |
| 11 | XILINX_DEFAULT_KERNEL_zynqmp := "linux-yocto" |
| 12 | PREFERRED_PROVIDER_virtual/kernel ??= "${XILINX_DEFAULT_KERNEL}" |
| 13 | |
| 14 | # U-Boot Configuration |
| 15 | XILINX_DEFAULT_UBOOT := "u-boot-xlnx" |
| 16 | XILINX_DEFAULT_UBOOT_zynqmp := "u-boot" |
| 17 | PREFERRED_PROVIDER_virtual/bootloader ??= "${XILINX_DEFAULT_UBOOT}" |
| 18 | PREFERRED_PROVIDER_virtual/boot-bin ??= "${PREFERRED_PROVIDER_virtual/bootloader}" |
| 19 | |
| 20 | UBOOT_SUFFIX ?= "img" |
| 21 | UBOOT_SUFFIX_zynqmp ?= "bin" |
| 22 | UBOOT_SUFFIX_microblaze ?= "bin" |
| 23 | |
| 24 | UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}" |
| 25 | UBOOT_ELF ?= "u-boot" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 26 | UBOOT_ELF_zynq ?= "u-boot.elf" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 27 | UBOOT_ELF_aarch64 ?= "u-boot.elf" |
| 28 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 29 | #Hardware accelaration |
| 30 | PREFERRED_PROVIDER_virtual/libgles1_mali400 = "libmali-xlnx" |
| 31 | PREFERRED_PROVIDER_virtual/libgles2_mali400 = "libmali-xlnx" |
| 32 | PREFERRED_PROVIDER_virtual/egl_mali400 = "libmali-xlnx" |
| 33 | PREFERRED_PROVIDER_virtual/libgl_mali400 = "mesa-gl" |
| 34 | PREFERRED_PROVIDER_virtual/mesa_mali400 = "mesa-gl" |
| 35 | |
| 36 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 37 | XSERVER ?= " \ |
| 38 | xserver-xorg \ |
| 39 | xf86-input-evdev \ |
| 40 | xf86-input-mouse \ |
| 41 | xf86-input-keyboard \ |
| 42 | xf86-video-fbdev \ |
| 43 | ${XSERVER_EXT} \ |
| 44 | " |
| 45 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 46 | IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}" |
| 47 | |
| 48 | def get_default_image_boot_files(d): |
| 49 | files = [] |
| 50 | |
| 51 | # kernel images |
| 52 | kerneltypes = set((d.getVar("KERNEL_IMAGETYPE") or "").split()) |
| 53 | kerneltypes |= set((d.getVar("KERNEL_IMAGETYPES") or "").split()) |
| 54 | for i in kerneltypes: |
| 55 | files.append(i) |
| 56 | |
| 57 | # u-boot image |
| 58 | if d.getVar("UBOOT_BINARY"): |
| 59 | files.append(d.getVar("UBOOT_BINARY")) |
| 60 | |
| 61 | # device trees (device-tree only), these are first as they are likely desired over the kernel ones |
| 62 | if "device-tree" in (d.getVar("MACHINE_ESSENTIAL_EXTRA_RDEPENDS") or ""): |
| 63 | files.append("devicetree/*.dtb") |
| 64 | |
| 65 | |
| 66 | # device trees (kernel only) |
| 67 | if d.getVar("KERNEL_DEVICETREE"): |
| 68 | dtbs = d.getVar("KERNEL_DEVICETREE").split(" ") |
| 69 | dtbs = [os.path.basename(d) for d in dtbs] |
| 70 | for dtb in dtbs: |
| 71 | files.append(dtb) |
| 72 | |
| 73 | return " ".join(files) |
| 74 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 75 | XSERVER_EXT ?= "" |
| 76 | XSERVER_EXT_zynqmp ?= "xf86-video-armsoc" |
| 77 | |
| 78 | # For MicroBlaze default all microblaze machines to use GDB 7.7.1 (for gdbserver/gdb) |
| 79 | PREFERRED_VERSION_gdb_microblaze = "7.7.1" |
| 80 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 81 | FPGA_MNGR_RECONFIG_ENABLE ?= "${@bb.utils.contains('IMAGE_FEATURES', 'fpga-manager', '1', '0', d)}" |