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 | |
Brad Bishop | 754b8fa | 2019-08-20 09:16:20 -0400 | [diff] [blame^] | 36 | # microblaze does not get on with pie for reasons not looked into as yet |
| 37 | GCCPIE_microblaze = "" |
| 38 | GLIBCPIE_microblaze = "" |
| 39 | SECURITY_CFLAGS_microblaze = "" |
| 40 | SECURITY_LDFLAGS_microblaze = "" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 41 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 42 | XSERVER ?= " \ |
| 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 Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 51 | IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}" |
| 52 | |
| 53 | def 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 Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 80 | XSERVER_EXT ?= "" |
| 81 | XSERVER_EXT_zynqmp ?= "xf86-video-armsoc" |
| 82 | |
| 83 | # For MicroBlaze default all microblaze machines to use GDB 7.7.1 (for gdbserver/gdb) |
| 84 | PREFERRED_VERSION_gdb_microblaze = "7.7.1" |
| 85 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 86 | FPGA_MNGR_RECONFIG_ENABLE ?= "${@bb.utils.contains('IMAGE_FEATURES', 'fpga-manager', '1', '0', d)}" |