From 4bc9d04b0e4c500eaf7985ec2f6c96afec1974e5 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <andrei.gherzan@huawei.com> Date: Thu, 27 May 2021 11:54:51 +0100 Subject: [PATCH] allscenarios-linux.conf: Define common parts of the partition table This configuration exposes variables for 'part' wic entries. These are to be used in our wic configurations so that they all share the same base setup. Initial sizes are also defined here. Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> --- .../conf/distro/allscenarios-linux.conf | 1 + meta-ohos-core/conf/distro/include/x-wic.inc | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 meta-ohos-core/conf/distro/include/x-wic.inc diff --git a/meta-ohos-core/conf/distro/allscenarios-linux.conf b/meta-ohos-core/conf/distro/allscenarios-linux.conf index 5133d3ed..5a000991 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 00000000..3c99d223 --- /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}" -- GitLab