2021-12-17 20:30:04 +01:00
|
|
|
# We have a conf and classes directory, add to BBPATH
|
|
|
|
BBPATH .= ":${LAYERDIR}"
|
|
|
|
|
|
|
|
# We have recipes-* directories, add to BBFILES
|
2023-07-09 18:28:04 +02:00
|
|
|
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
|
|
|
|
${LAYERDIR}/recipes-*/*/*.bbappend"
|
2021-12-17 20:30:04 +01:00
|
|
|
|
2023-07-07 10:48:28 +02:00
|
|
|
BBFILE_COLLECTIONS += "meta-rpi-diya"
|
|
|
|
BBFILE_PATTERN_meta-rpi-diya = "^${LAYERDIR}/"
|
|
|
|
BBFILE_PRIORITY_meta-rpi-diya = "11"
|
2021-12-17 20:30:04 +01:00
|
|
|
|
2023-07-07 10:48:28 +02:00
|
|
|
LAYERDEPENDS_meta-rpi-diya = "core raspberrypi"
|
|
|
|
LAYERSERIES_COMPAT_meta-rpi-diya = "mickledore"
|
2021-12-17 20:30:04 +01:00
|
|
|
|
|
|
|
PACKAGE_CLASSES = "package_ipk"
|
|
|
|
INHERIT += "rm_work"
|
|
|
|
|
2023-07-10 09:32:40 +02:00
|
|
|
EXTRA_IMAGE_FEATURES ?= " ssh-server-dropbear read-only-rootfs "
|
2021-12-17 20:30:04 +01:00
|
|
|
# ssh-server-dropbear
|
2023-07-26 13:16:50 +02:00
|
|
|
DISTRO_FEATURES:append := " vc4-gfx opengl wayland "
|
2023-07-23 14:00:38 +02:00
|
|
|
DISTRO_FEATURES:remove = " x11 vulkan "
|
2023-07-27 09:10:01 +02:00
|
|
|
TOOLCHAIN_TARGET_TASK:append = " libgles3-mesa-dev wayland-native wayland-protocols-native "
|
2021-12-17 20:30:04 +01:00
|
|
|
# DISTRO_FEATURES:append := " vc4-gfx opengl directfb "
|
2023-07-07 11:14:16 +02:00
|
|
|
MACHINE ?= "raspberrypi0-2w-64"
|
2021-12-17 20:30:04 +01:00
|
|
|
|
|
|
|
WKS_FILE="rpi.wks.in"
|
|
|
|
ROOT_HOME = "/root"
|
|
|
|
|
|
|
|
#MACHINE = "raspberrypi3-64"
|
|
|
|
#MACHINE = "raspberrypi2"
|
|
|
|
|
2022-01-29 16:31:50 +01:00
|
|
|
#RPI_USE_U_BOOT:raspberrypi = "0"
|
|
|
|
RPI_USE_U_BOOT = "0"
|
2021-12-17 20:30:04 +01:00
|
|
|
RPI_USE_wS_28_DPI_LCD = "1"
|
|
|
|
# enable usb boot in uboot
|
2023-07-08 15:54:05 +02:00
|
|
|
ENABLE_DWC2_PERIPHERAL = "1"
|
|
|
|
ENABLE_DWC2_HOST = "1"
|
2021-12-17 20:30:04 +01:00
|
|
|
ENABLE_USB_U_BOOT = "0"
|
2023-07-09 14:45:38 +02:00
|
|
|
ENABLE_UART = "0"
|
2021-12-17 20:30:04 +01:00
|
|
|
DISABLE_SPLASH = "1"
|
|
|
|
VIDEO_CAMERA = "1"
|
|
|
|
DISABLE_RPI_BOOT_LOGO = "1"
|
|
|
|
ENABLE_SPI_BUS = "0"
|
|
|
|
ENABLE_I2C = "0"
|
2023-07-09 19:04:06 +02:00
|
|
|
KERNEL_MODULE_AUTOLOAD:rpi += " i2c-dev "
|
2021-12-17 20:30:04 +01:00
|
|
|
|
2023-07-09 18:28:04 +02:00
|
|
|
VC4DTBO = "vc4-kms-v3d,noaudio"
|
2021-12-17 20:30:04 +01:00
|
|
|
|
2023-07-08 19:30:27 +02:00
|
|
|
KERNEL_DEVICETREE:append = " overlays/vc4-kms-dpi-generic.dtbo overlays/dpi24.dtbo "
|
2021-12-17 20:30:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
RPI_EXTRA_CONFIG += "${@['','\n\
|
2023-07-09 22:00:04 +02:00
|
|
|
dtoverlay=vc4-kms-dpi-generic \n\
|
|
|
|
dtparam=hactive=480,hfp=26,hsync=16,hbp=10 \n\
|
|
|
|
dtparam=vactive=640,vfp=25,vsync=10,vbp=15 \n\
|
|
|
|
dtparam=clock-frequency=32000000 \n\
|
|
|
|
dtparam=hsync-invert,vsync-invert,pixclk-invert \n\
|
|
|
|
dtparam=rgb666-padhi,rotate=270 \n\
|
2021-12-17 20:30:04 +01:00
|
|
|
dtoverlay=waveshare-28dpi-3b-4b \n\
|
|
|
|
dtoverlay=waveshare-28dpi-3b \n\
|
2023-07-07 10:48:28 +02:00
|
|
|
dtoverlay=waveshare-28dpi-4b \n']['${RPI_USE_wS_28_DPI_LCD}' == '1']}"
|
2021-12-17 20:30:04 +01:00
|
|
|
|
|
|
|
RPI_EXTRA_CONFIG += '\n\
|
2023-07-09 18:38:30 +02:00
|
|
|
# enable ads1115 sensor for battery monitoring \n\
|
2023-07-09 18:31:26 +02:00
|
|
|
dtoverlay=ads1115-i2c-gpio,cha_enable,cha_cfg=4,cha_datarate=7,cha_gain=1 \n\
|
2023-07-08 15:54:05 +02:00
|
|
|
#start_x=1 # essential \n\
|
|
|
|
#gpu_mem=128 # at least, or maybe more if you wish \n\
|
|
|
|
#disable_camera_led=1 # optional \n\
|
2023-07-07 20:08:48 +02:00
|
|
|
'
|
|
|
|
|
|
|
|
# extra kernel CMDLINE_RNDIS option
|
2023-07-09 22:00:04 +02:00
|
|
|
# CMDLINE_RNDIS += " video=DPI-1:480x640,rotate=90 "
|
2023-07-07 20:08:48 +02:00
|
|
|
# accept license for wifi and bluetooth firmware
|
|
|
|
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"
|