add first working meta-layer
This commit is contained in:
44
conf/layer.conf
Normal file
44
conf/layer.conf
Normal file
@ -0,0 +1,44 @@
|
||||
# We have a conf and classes directory, add to BBPATH
|
||||
BBPATH .= ":${LAYERDIR}"
|
||||
|
||||
# We have recipes-* directories, add to BBFILES
|
||||
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
|
||||
${LAYERDIR}/recipes-*/*/*.bbappend"
|
||||
|
||||
BBFILE_COLLECTIONS += "meta-opi-diya"
|
||||
BBFILE_PATTERN_meta-opi-diya = "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_meta-opi-diya = "11"
|
||||
|
||||
LAYERDEPENDS_meta-opi-diya = " core "
|
||||
LAYERSERIES_COMPAT_meta-opi-diya = "kirkstone"
|
||||
|
||||
PACKAGE_CLASSES = "package_ipk"
|
||||
|
||||
INITRAMFS_IMAGE="core-image-recovery"
|
||||
INITRAMFS_IMAGE_BUNDLE="0"
|
||||
INITRAMFS_MAXSIZE="200000"
|
||||
INHERIT += "rm_work"
|
||||
|
||||
EXTRA_IMAGE_FEATURES ?= " ssh-server-dropbear read-only-rootfs "
|
||||
# ssh-server-dropbear
|
||||
DISTRO_FEATURES:append := " opengl wayland "
|
||||
DISTRO_FEATURES:remove = " x11 vulkan "
|
||||
TOOLCHAIN_TARGET_TASK:append = " libgles3-mesa-dev "
|
||||
# DISTRO_FEATURES:append := " vc4-gfx opengl directfb "
|
||||
MACHINE ?= "orange-pi-zero2w"
|
||||
|
||||
WKS_FILE="opi.wks.in"
|
||||
ROOT_HOME = "/root"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-xunlong"
|
||||
PREFERRED_VERSION_linux-xunlong = "6.1.31"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-xunlong"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-xunlong"
|
||||
|
||||
#
|
||||
|
||||
# extra kernel CMDLINE_RNDIS option
|
||||
# CMDLINE_RNDIS += " video=DPI-1:480x640,rotate=90 "
|
||||
# accept license for wifi and bluetooth firmware
|
||||
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"
|
9
conf/machine/include/sun50i-h616.inc
Normal file
9
conf/machine/include/sun50i-h616.inc
Normal file
@ -0,0 +1,9 @@
|
||||
require conf/machine/include/sunxi64.inc
|
||||
|
||||
DEFAULTTUNE ?= "cortexa53-crypto"
|
||||
require conf/machine/include/arm/armv8a/tune-cortexa53.inc
|
||||
|
||||
MACHINEOVERRIDES =. "sun50i:"
|
||||
|
||||
SOC_FAMILY = "sun50i-h616"
|
||||
|
15
conf/machine/include/sunxi-mali-driver.inc
Normal file
15
conf/machine/include/sunxi-mali-driver.inc
Normal file
@ -0,0 +1,15 @@
|
||||
PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl"
|
||||
PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl"
|
||||
PREFERRED_PROVIDER_virtual/libgles1 ?= "sunxi-mali"
|
||||
PREFERRED_PROVIDER_virtual/libgles2 ?= "sunxi-mali"
|
||||
PREFERRED_PROVIDER_virtual/egl ?= "sunxi-mali"
|
||||
|
||||
PACKAGECONFIG:remove:pn-xserver-xorg = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glamor', '', d)}"
|
||||
|
||||
XSERVER += "sunxi-mali \
|
||||
sunxi-mali-dev"
|
||||
|
||||
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "\
|
||||
kernel-module-mali \
|
||||
kernel-module-mali-drm \
|
||||
"
|
27
conf/machine/include/sunxi64.inc
Normal file
27
conf/machine/include/sunxi64.inc
Normal file
@ -0,0 +1,27 @@
|
||||
SOC_FAMILY ??= ""
|
||||
include conf/machine/include/soc-family.inc
|
||||
|
||||
MACHINEOVERRIDES =. "sunxi:sunxi64:"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
|
||||
PREFERRED_PROVIDER_u-boot ?= "u-boot"
|
||||
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
|
||||
|
||||
KERNEL_IMAGETYPE ?= "Image"
|
||||
|
||||
# IMAGE_CLASSES += "sdcard_image-sunxi"
|
||||
IMAGE_FSTYPES += "ext4 tar.gz wic.bz2 wic.bmap"
|
||||
# sunxi-sdimg
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
|
||||
|
||||
UBOOT_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}"
|
||||
|
||||
UBOOT_ENTRYPOINT ?= "0x40008000"
|
||||
UBOOT_LOADADDRESS ?= "0x400080OB00"
|
||||
|
||||
#UBOOT_BINARY ?= "u-boot.itb"
|
||||
SPL_BINARY ?= "spl/sunxi-spl.bin"
|
||||
|
||||
SERIAL_CONSOLE ?= "115200 ttyS0"
|
||||
MACHINE_FEATURES ?= "alsa apm keyboard rtc serial screen usbgadget usbhost vfat"
|
45
conf/machine/orange-pi-zero2w.conf
Normal file
45
conf/machine/orange-pi-zero2w.conf
Normal file
@ -0,0 +1,45 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: orange-pi-zero-2
|
||||
#@DESCRIPTION: Machine configuration for the orange-pi-zero-2, based on Allwinner H616 CPU
|
||||
|
||||
require conf/machine/include/sun50i-h616.inc
|
||||
|
||||
KERNEL_DEVICETREE = "allwinner/sun50i-h616-orangepi-zero2w.dtb \
|
||||
allwinner/overlay/sun50i-h616-disable-leds.dtbo \
|
||||
allwinner/overlay/sun50i-h616-disable-uart0.dtbo \
|
||||
allwinner/overlay/sun50i-h616-gpu.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ir.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-i2c1.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-i2c2.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-i2c3.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-i2c4.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-pwm12.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-pwm34.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-uart2.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-uart5.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-i2c0.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-i2c1.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-i2c2.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-pwm1.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-pwm2.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-pwm3.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-pwm4.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-uart2.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-uart3.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-uart4.dtbo \
|
||||
allwinner/overlay/sun50i-h616-spi0-spidev.dtbo \
|
||||
allwinner/overlay/sun50i-h616-spi1-cs0-cs1-spidev.dtbo \
|
||||
allwinner/overlay/sun50i-h616-spi1-cs0-spidev.dtbo \
|
||||
allwinner/overlay/sun50i-h616-spi1-cs1-spidev.dtbo \
|
||||
allwinner/overlay/sun50i-h616-usb0-host.dtbo \
|
||||
allwinner/overlay/sun50i-h616-zero2w-disable-led.dtbo \
|
||||
"
|
||||
UBOOT_MACHINE = "orangepi_zero2w_defconfig"
|
||||
|
||||
SPL_BINARY = "u-boot-sunxi-with-spl.bin"
|
||||
|
||||
# as for now neither graphics nor audio is supported
|
||||
MACHINE_FEATURES:remove = "alsa x11"
|
||||
MACHINE_FEATURES:append = "bluetooth wifi"
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS = "uwe5622-firmware"
|
Reference in New Issue
Block a user