Skip to content

Commit

Permalink
add kernel config for RAUC stream mode to raspberypi4-64 and qemuarm64 (
Browse files Browse the repository at this point in the history
  • Loading branch information
OlavHerbst authored Apr 27, 2023
1 parent 2cb3f0b commit abcd4e4
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
6 changes: 6 additions & 0 deletions meta-leda-bsp/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ BBPATH .= ":${LAYERDIR}"
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILES_DYNAMIC += "\
rauc:${LAYERDIR}/dynamic-layers/linux-yocto/*.bb \
rauc:${LAYERDIR}/dynamic-layers/linux-yocto/*.bbappend \
raspberrypi:${LAYERDIR}/dynamic-layers/raspberrypi/*.bb \
raspberrypi:${LAYERDIR}/dynamic-layers/raspberrypi/*.bbappend"

BBFILE_COLLECTIONS += "meta-leda-bsp"
BBFILE_PATTERN_meta-leda-bsp := "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-leda-bsp = "7"
Expand Down
15 changes: 15 additions & 0 deletions meta-leda-bsp/dynamic-layers/linux-yocto/files/leda-bsp-rauc.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# /********************************************************************************
# * Copyright (c) 2023 Contributors to the Eclipse Foundation
# *
# * See the NOTICE file(s) distributed with this work for additional
# * information regarding copyright ownership.
# *
# * This program and the accompanying materials are made available under the
# * terms of the Apache License 2.0 which is available at
# * https://www.apache.org/licenses/LICENSE-2.0
# *
# * SPDX-License-Identifier: Apache-2.0
# ********************************************************************************/

# Optimization for qemuarm64
CONFIG_CRYPTO_SHA256_ARM64=y
16 changes: 16 additions & 0 deletions meta-leda-bsp/dynamic-layers/linux-yocto/linux-yocto_%.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# /********************************************************************************
# * Copyright (c) 2023 Contributors to the Eclipse Foundation
# *
# * See the NOTICE file(s) distributed with this work for additional
# * information regarding copyright ownership.
# *
# * This program and the accompanying materials are made available under the
# * terms of the Apache License 2.0 which is available at
# * https://www.apache.org/licenses/LICENSE-2.0
# *
# * SPDX-License-Identifier: Apache-2.0
# ********************************************************************************/

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI:append:qemuarm64 = " file://leda-bsp-rauc.cfg"
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

inherit rauc-integration

SRC_URI:append:rauc-integration = " file://leda-bsp-rauc.cfg"
SRC_URI:append:rauc-integration = " file://leda-bsp-raspberrypi-rauc.cfg"

0 comments on commit abcd4e4

Please sign in to comment.