User Tools

Site Tools


zed_machine_conf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
zed_machine_conf [2019/05/05 16:05]
rpjday [machine-xilinx-overrides.inc]
zed_machine_conf [2019/05/05 16:06]
rpjday [machine-xilinx-default.inc]
Line 94: Line 94:
 </​code>​ </​code>​
 ==== machine-xilinx-default.inc ==== ==== machine-xilinx-default.inc ====
 +
 +<​code>​
 +# Default Xilinx BSP Machine settings
 +
 +MACHINE_FEATURES_BACKFILL_CONSIDERED += "​rtc"​
 +
 +# File System Configuration
 +IMAGE_FSTYPES ?= "​tar.gz cpio cpio.gz.u-boot"​
 +
 +# Kernel Configuration
 +XILINX_DEFAULT_KERNEL := "​linux-xlnx"​
 +XILINX_DEFAULT_KERNEL_microblaze := "​linux-yocto"​
 +XILINX_DEFAULT_KERNEL_zynqmp := "​linux-yocto"​
 +PREFERRED_PROVIDER_virtual/​kernel ??= "​${XILINX_DEFAULT_KERNEL}"​
 +
 +# U-Boot Configuration
 +XILINX_DEFAULT_UBOOT := "​u-boot-xlnx"​
 +XILINX_DEFAULT_UBOOT_zynqmp := "​u-boot"​
 +PREFERRED_PROVIDER_virtual/​bootloader ??= "​${XILINX_DEFAULT_UBOOT}"​
 +PREFERRED_PROVIDER_virtual/​boot-bin ??= "​${PREFERRED_PROVIDER_virtual/​bootloader}"​
 +
 +UBOOT_SUFFIX ?= "​img"​
 +UBOOT_SUFFIX_zynqmp ?= "​bin"​
 +UBOOT_SUFFIX_microblaze ?= "​bin"​
 +
 +UBOOT_BINARY ?= "​u-boot.${UBOOT_SUFFIX}"​
 +UBOOT_ELF ?= "​u-boot"​
 +UBOOT_ELF_aarch64 ?= "​u-boot.elf"​
 +
 +#Hardware accelaration
 +PREFERRED_PROVIDER_virtual/​libgles1_mali400 = "​libmali-xlnx"​
 +PREFERRED_PROVIDER_virtual/​libgles2_mali400 = "​libmali-xlnx"​
 +PREFERRED_PROVIDER_virtual/​egl_mali400 = "​libmali-xlnx"​
 +PREFERRED_PROVIDER_virtual/​libgl_mali400 = "​mesa-gl"​
 +PREFERRED_PROVIDER_virtual/​mesa_mali400 = "​mesa-gl"​
 +
 +
 +XSERVER ?= " \
 +        xserver-xorg \
 +        xf86-input-evdev \
 +        xf86-input-mouse \
 +        xf86-input-keyboard \
 +        xf86-video-fbdev \
 +        ${XSERVER_EXT} \
 +        "
 +
 +IMAGE_BOOT_FILES ?= "​${@get_default_image_boot_files(d)}"​
 +
 +def get_default_image_boot_files(d):​
 +    files = []
 +
 +    # kernel images
 +    kerneltypes = set((d.getVar("​KERNEL_IMAGETYPE"​) or ""​).split())
 +    kerneltypes |= set((d.getVar("​KERNEL_IMAGETYPES"​) or ""​).split())
 +    for i in kerneltypes:​
 +        files.append(i)
 +
 +    # u-boot image
 +    if d.getVar("​UBOOT_BINARY"​):​
 +        files.append(d.getVar("​UBOOT_BINARY"​))
 +
 +    # device trees (device-tree only), these are first as they are likely desired over the kernel ones
 +    if "​device-tree"​ in (d.getVar("​MACHINE_ESSENTIAL_EXTRA_RDEPENDS"​) or ""​):​
 +        files.append("​devicetree/​*.dtb"​)
 +
 +
 +    # device trees (kernel only)
 +    if d.getVar("​KERNEL_DEVICETREE"​):​
 +        dtbs = d.getVar("​KERNEL_DEVICETREE"​).split("​ ")
 +        dtbs = [os.path.basename(d) for d in dtbs]
 +        for dtb in dtbs:
 +            files.append(dtb)
 +
 +    return " "​.join(files)
 +
 +XSERVER_EXT ?= ""​
 +XSERVER_EXT_zynqmp ?= "​xf86-video-armsoc"​
 +
 +# For MicroBlaze default all microblaze machines to use GDB 7.7.1 (for gdbserver/​gdb)
 +PREFERRED_VERSION_gdb_microblaze = "​7.7.1"​
 +</​code>​
zed_machine_conf.txt ยท Last modified: 2019/05/05 16:06 by rpjday