diff --git a/meta-ohos-core/conf/distro/allscenarios-linux.conf b/meta-ohos-core/conf/distro/allscenarios-linux.conf index 5133d3ed0471afd3515aaaf8f1ef46c7c7a4236e..5a000991b823424f875361d324f75404fb1930c1 100644 --- a/meta-ohos-core/conf/distro/allscenarios-linux.conf +++ b/meta-ohos-core/conf/distro/allscenarios-linux.conf @@ -3,6 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 require conf/distro/include/allscenarios.inc +require conf/distro/include/x-wic.inc require conf/distro/poky.conf DISTRO = "allscenarios-linux" diff --git a/meta-ohos-core/conf/distro/include/x-wic.inc b/meta-ohos-core/conf/distro/include/x-wic.inc new file mode 100644 index 0000000000000000000000000000000000000000..3c99d223c1efd36964bd6a14ea8e0ceb7c89f35c --- /dev/null +++ b/meta-ohos-core/conf/distro/include/x-wic.inc @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +# WIC configuration definitions that are meant to be common across the +# supported devices. This configuration is taking into consideration OTA design +# and strategies. + +BOOT_PARTITION_SIZE ?= "512M" +ROOTA_PARTITION_SIZE ?= "1G" +ROOTB_PARTITION_SIZE ?= "${ROOTA_PARTITION_SIZE}" +DEVICEDATA_PARTITION_SIZE ?= "8M" +SYSDATA_PARTITION_SIZE ?= "512M" +APPDATA_PARTITION_SIZE ?= "1G" + +WIC_ROOTA_PARTITION ?= "part / --source rootfs --use-uuid --fstype=ext4 --label x-sys-a --align 4096 --fixed-size ${ROOTA_PARTITION_SIZE} ${WIC_ROOTA_PARTITION_EXTRA_ARGS}" +WIC_ROOTB_PARTITION ?= "part --fstype=ext4 --label x-sys-b --align 4096 --fixed-size ${ROOTB_PARTITION_SIZE} ${WIC_ROOTb_PARTITION_EXTRA_ARGS}" +WIC_DEVICEDATA_PARTITION ?= "part --fstype=ext4 --label x-dev-data --align 4096 --fixed-size ${DEVICEDATA_PARTITION_SIZE} ${WIC_DEVICEDATA_PARTITION_EXTRA_ARGS}" +WIC_SYSDATA_PARTITION ?= "part --fstype=ext4 --label x-sys-data --align 4096 --fixed-size ${SYSDATA_PARTITION_SIZE} ${WIC_SYSDATA_PARTITION_EXTRA_ARGS}" +WIC_APPDATA_PARTITION ?= "part --fstype=ext4 --label x-app-data --align 4096 --fixed-size ${APPDATA_PARTITION_SIZE} ${WIC_APPDATA_PARTITION_EXTRA_ARGS}"