Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a8704e72c2 | |||
| 052c6de330 | |||
| 4bd0b91292 | |||
| 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 = "scarthgap"
|
||||||
|
|
||||||
|
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"
|
||||||
9
conf/machine/include/rpi-common.inc
Normal file
9
conf/machine/include/rpi-common.inc
Normal 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"
|
||||||
58
conf/machine/rpi-zero-w.conf
Normal file
58
conf/machine/rpi-zero-w.conf
Normal 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 \
|
||||||
|
"
|
||||||
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 "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