diff mbox series

[meta-rockchip,v2] linux-torvalds-next: add rauc config

Message ID 20240801030506.8626-1-twoerner@gmail.com
State New
Headers show
Series [meta-rockchip,v2] linux-torvalds-next: add rauc config | expand

Commit Message

Trevor Woerner Aug. 1, 2024, 3:05 a.m. UTC
The kernel needs a couple configuration tweaks in order to work with RAUC, and
the default upstream kernel recipes already have this built-in due to
meta-rauc. The non-upstream, one-off kernel required to support the Radxa Zero
3{e|w} boards (linux-torvalds-next) needs a similar tweak.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
v2 changes:
- use a different, more efficient, way to do the same thing without having to
  repeat (and keep in sync) the cfg itself
---
 .../recipes-kernel/linux/linux-torvalds-next_%.bbappend          | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-torvalds-next_%.bbappend

Comments

Trevor Woerner Aug. 1, 2024, 12:02 p.m. UTC | #1
On Wed 2024-07-31 @ 11:05:06 PM, Trevor Woerner wrote:
> The kernel needs a couple configuration tweaks in order to work with RAUC, and
> the default upstream kernel recipes already have this built-in due to
> meta-rauc. The non-upstream, one-off kernel required to support the Radxa Zero
> 3{e|w} boards (linux-torvalds-next) needs a similar tweak.
> 
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
> v2 changes:
> - use a different, more efficient, way to do the same thing without having to
>   repeat (and keep in sync) the cfg itself
> ---
>  .../recipes-kernel/linux/linux-torvalds-next_%.bbappend          | 1 +
>  1 file changed, 1 insertion(+)
>  create mode 100644 dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-torvalds-next_%.bbappend

Applied to meta-rockchip, master branch, using "require" instead of "include".
Thanks!
Trevor Woerner Aug. 1, 2024, 12:03 p.m. UTC | #2
On Thu 2024-08-01 @ 11:03:12 AM, Quentin Schulz via lists.yoctoproject.org wrote:
> Hi Trevor,
> Considering this bbappend is only added if meta-rauc is present, which
> guarantees the presence of recipes-kernel/linux/linux-yocto_rauc.inc, we
> could have used require here.
> 
> Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>

Sounds good, thanks for the review!
diff mbox series

Patch

diff --git a/dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-torvalds-next_%.bbappend b/dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-torvalds-next_%.bbappend
new file mode 100644
index 000000000000..6c75cb1338e7
--- /dev/null
+++ b/dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-torvalds-next_%.bbappend
@@ -0,0 +1 @@ 
+include ${@ 'recipes-kernel/linux/linux-yocto_rauc.inc' if bb.utils.to_boolean(d.getVar('RK_RAUC_DEMO'), False) else ''}