custom configuration for Raspberry Pi Zero W
This commit is contained in:
parent
d99b54306f
commit
1a724a14c3
20
conf/layer.conf
Normal file
20
conf/layer.conf
Normal 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"
|
||||
6
conf/machine/include/rpi-common.inc
Normal file
6
conf/machine/include/rpi-common.inc
Normal file
@ -0,0 +1,6 @@
|
||||
# Raspberry Pi Helium common configuration
|
||||
|
||||
ENABLE_UART = "1"
|
||||
ENABLE_I2C = "1"
|
||||
ENABLE_SPI_BUS = "1"
|
||||
ENABLE_W1 = "1"
|
||||
8
conf/machine/rpi-zero-w.conf
Normal file
8
conf/machine/rpi-zero-w.conf
Normal 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"
|
||||
5
recipes-bsp/bootfiles/rpi-bootfiles.bbappend
Normal file
5
recipes-bsp/bootfiles/rpi-bootfiles.bbappend
Normal 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
|
||||
}
|
||||
6
recipes-core/images/helium-image-rpi.bb
Normal file
6
recipes-core/images/helium-image-rpi.bb
Normal file
@ -0,0 +1,6 @@
|
||||
SUMMARY = "Helium image for Raspberry Pi"
|
||||
LICENSE = "MIT"
|
||||
|
||||
require recipes-core/images/helium-image-default.bb
|
||||
DEPENDS += "rpi-bootfiles"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user