diff --git a/meta-oniro-core/recipes-kernel/linux/linux-intel_%.bbappend b/meta-oniro-core/recipes-kernel/linux/linux-intel_%.bbappend index 04be9ac1587127f0de71ecf343e5e2ddd32a6f14..7d652faa3a23be857af6b7c15e2a5ddda9ff3fee 100644 --- a/meta-oniro-core/recipes-kernel/linux/linux-intel_%.bbappend +++ b/meta-oniro-core/recipes-kernel/linux/linux-intel_%.bbappend @@ -4,4 +4,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/linux:" -SRC_URI += "file://squashfs.cfg" +SRC_URI += "\ + file://squashfs.cfg \ + file://rauc.cfg \ + " diff --git a/meta-oniro-core/recipes-kernel/linux/linux-oniro-tweaks-all.inc b/meta-oniro-core/recipes-kernel/linux/linux-oniro-tweaks-all.inc index 6c59f53c1c20a60b06234f238805a4a4572f4435..85d4cf0e4fa6eccc96edae27bc188ced6b901604 100644 --- a/meta-oniro-core/recipes-kernel/linux/linux-oniro-tweaks-all.inc +++ b/meta-oniro-core/recipes-kernel/linux/linux-oniro-tweaks-all.inc @@ -18,6 +18,7 @@ SRC_URI += "file://hardening_memory.cfg" SRC_URI += "file://hardening_toolchain.cfg" SRC_URI += "file://hardening_usercopy.cfg" SRC_URI += "file://hardening_validation_checks.cfg" +SRC_URI += "file://rauc.cfg" # For the gcc-plugins build of the kernel we need to ensure the right include # path for headers is picked up to use the natively build dependencies. diff --git a/meta-oniro-core/recipes-kernel/linux/linux-raspberrypi_5.10.bb b/meta-oniro-core/recipes-kernel/linux/linux-raspberrypi_5.10.bb index 0adf8cec51445a616827fb13c9f69ec6b677c0ef..817870fe8681367ad89493bc6ba75b9b39a07d62 100644 --- a/meta-oniro-core/recipes-kernel/linux/linux-raspberrypi_5.10.bb +++ b/meta-oniro-core/recipes-kernel/linux/linux-raspberrypi_5.10.bb @@ -10,4 +10,5 @@ require linux-raspberrypi_5.10.inc SRC_URI += "\ file://powersave.cfg \ file://android-drivers.cfg \ + file://rauc.cfg \ " diff --git a/meta-oniro-core/recipes-kernel/linux/linux-seco_%.bbappend b/meta-oniro-core/recipes-kernel/linux/linux-seco_%.bbappend index 04be9ac1587127f0de71ecf343e5e2ddd32a6f14..7d652faa3a23be857af6b7c15e2a5ddda9ff3fee 100644 --- a/meta-oniro-core/recipes-kernel/linux/linux-seco_%.bbappend +++ b/meta-oniro-core/recipes-kernel/linux/linux-seco_%.bbappend @@ -4,4 +4,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/linux:" -SRC_URI += "file://squashfs.cfg" +SRC_URI += "\ + file://squashfs.cfg \ + file://rauc.cfg \ + " diff --git a/meta-oniro-core/recipes-kernel/linux/linux/rauc.cfg b/meta-oniro-core/recipes-kernel/linux/linux/rauc.cfg new file mode 100644 index 0000000000000000000000000000000000000000..6df8e706aa6959d11c19f91f041352c8b1816cf6 --- /dev/null +++ b/meta-oniro-core/recipes-kernel/linux/linux/rauc.cfg @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 +# +# Enable support for RAUC verity bundle format. +# https://rauc.readthedocs.io/en/v1.5.1/integration.html#kernel-configuration +CONFIG_MD=y +CONFIG_BLK_DEV_DM=y +CONFIG_BLK_DEV_LOOP=y +CONFIG_DM_VERITY=y +CONFIG_SQUASHFS=y