Compare commits

..

4 Commits

5 changed files with 98 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 = "scarthgap"
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"

View File

@ -0,0 +1,9 @@
# Raspberry Pi Helium common configuration
ENABLE_UART = "1"
ENABLE_I2C = "1"
ENABLE_SPI_BUS = "1"
ENABLE_W1 = "1"
# don't install ALL kernel modules, let the machine pick what it needs
MACHINE_EXTRA_RRECOMMENDS:remove = "kernel-modules"

View File

@ -0,0 +1,58 @@
#@TYPE: Machine
#@NAME: Raspberry Pi Zero W Development Board
# Helium specific
MACHINE_FRIENDLY_NAME = "Raspberry Pi Zero W"
MACHINE_NUM_CORES = "1"
require conf/machine/include/rpi-common.inc
require conf/machine/raspberrypi0-wifi.conf
KBUILD_DEFCONFIG:rpi-zero-w = "bcmrpi_defconfig"
RPI_KERNEL_DEVICETREE = "broadcom/bcm2708-rpi-zero-w.dtb"
# Kernel modules needed by machine and its interfaces
# This list will probably change as I expect some of those will be needed
# by multiple RPis
MACHINE_EXTRA_RRECOMMENDS += " \
kernel-module-ipv6 \
kernel-module-brcmfmac-wcc \
kernel-module-brcmfmac \
kernel-module-brcmutil \
kernel-module-hci-uart \
kernel-module-sha256-generic \
kernel-module-libsha256 \
kernel-module-btbcm \
kernel-module-cfg80211 \
kernel-module-bcm2835-codec \
kernel-module-bluetooth \
kernel-module-spidev \
kernel-module-bcm2835-v4l2 \
kernel-module-bcm2835-isp \
kernel-module-v4l2-mem2mem \
kernel-module-bcm2835-mmal-vchiq \
kernel-module-videobuf2-vmalloc \
kernel-module-videobuf2-dma-contig \
kernel-module-videobuf2-memops \
kernel-module-videobuf2-v4l2 \
kernel-module-videobuf2-common \
kernel-module-videodev \
kernel-module-raspberrypi-hwmon \
kernel-module-raspberrypi-gpiomem \
kernel-module-ecdh-generic \
kernel-module-ecc \
kernel-module-spi-bcm2835 \
kernel-module-rfkill \
kernel-module-libaes \
kernel-module-vc-sm-cma \
kernel-module-mc \
kernel-module-snd-bcm2835 \
kernel-module-w1-gpio \
kernel-module-wire \
kernel-module-cn \
kernel-module-uio-pdrv-genirq \
kernel-module-fixed \
kernel-module-uio \
kernel-module-i2c-bcm2708 \
kernel-module-i2c-dev \
"

View File

@ -0,0 +1,5 @@
# Enable UART output from bootcode.bin
do_configure() {
sed -i "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"