Skip to content

Commit

Permalink
linux-balena-bootloader: Add new recipe
Browse files Browse the repository at this point in the history
This is a minimalistic Linux kernel that can be used as a bootloader.

Change-type: patch
Signed-off-by: Alex Gonzalez <[email protected]>
Signed-off-by: Michal Toman <[email protected]>
  • Loading branch information
alexgg authored and mtoman committed Sep 26, 2023
1 parent b8f13a0 commit 7039833
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CONFIG_KEXEC=y
CONFIG_KEXEC_FILE=y
CONFIG_PM_SLEEP_SMP=y
CONFIG_PM_SLEEP=y
CONFIG_SUSPEND=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
LINUX_VERSION ?= "6.1.47"
LINUX_RPI_BRANCH ?= "pi5_61"
LINUX_RPI_KMETA_BRANCH ?= "yocto-6.1"

SRCREV_machine = "20e78d1110a8cd06f4170dc18bcaba10d7af8d2e"
SRCREV_meta = "f845a7f37d7114230d6609e2bd630070f2f6cd9b"

KMETA = "kernel-meta"

SRC_URI = " \
git://[email protected]/balena-os/linux-2712.git;name=machine;branch=${LINUX_RPI_BRANCH};protocol=ssh \
git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=${LINUX_RPI_KMETA_BRANCH};destsuffix=${KMETA} \
"
SRC_URI:append = " file://rpi-kexec.cfg"
SRC_URI:remove = "file://initramfs-image-bundle.cfg"

require recipes-kernel/linux/linux-raspberrypi.inc

KERNEL_DTC_FLAGS += "-@ -H epapr"

INITRAMFS_IMAGE = "balena-image-bootloader-initramfs"

KERNEL_PACKAGE_NAME = "balena-bootloader"

KERNEL_DEVICETREE = "${RPI_KERNEL_DEVICETREE}"

PROVIDES = "virtual/balena-bootloader"

0 comments on commit 7039833

Please sign in to comment.