custom configuration for Raspberry Pi Zero W

This commit is contained in:
Grzegorz Kowalski 2024-03-08 01:37:02 +01:00
parent d99b54306f
commit 1a724a14c3
5 changed files with 45 additions and 0 deletions

20
conf/layer.conf Normal file
View File

@ -0,0 +1,20 @@
# 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 += "helium-rpi"
BBFILE_PATTERN_helium-rpi = "^${LAYERDIR}/"
BBFILE_PRIORITY_helium-rpi = "6"
# This should only be incremented on significant changes that will
# cause compatibility issues with other layers
LAYERVERSION_helium-rpi = "2"
LAYERDEPENDS_helium-rpi = "core raspberrypi helium"
LAYERSERIES_COMPAT_helium-rpi = "mickledore"
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"

View File

@ -0,0 +1,6 @@
# Raspberry Pi Helium common configuration
ENABLE_UART = "1"
ENABLE_I2C = "1"
ENABLE_SPI_BUS = "1"
ENABLE_W1 = "1"

View File

@ -0,0 +1,8 @@
#@TYPE: Machine
#@NAME: RaspberryPi Zero WiFi Development Board
require conf/machine/include/rpi-common.inc
require conf/machine/raspberrypi0-wifi.conf
KBUILD_DEFCONFIG:rpi-zero-w = "bcmrpi_defconfig"
RPI_KERNEL_DEVICETREE = "bcm2708-rpi-zero-w.dtb"

View File

@ -0,0 +1,5 @@
# Enable UART output from bootcode.bin
do_configure() {
sed -i -e "s/BOOT_UART=0/BOOT_UART=1/" ${S}/bootcode.bin
}

View File

@ -0,0 +1,6 @@
SUMMARY = "Helium image for Raspberry Pi"
LICENSE = "MIT"
require recipes-core/images/helium-image-default.bb
DEPENDS += "rpi-bootfiles"