Newer
Older
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
# short-description: Create a qemu machine 'pcbios' direct disk image
# long-description: Based on qemux86-directdisk.wks but with support for common
# partitions.
#
# Disk layout:
# - ------ ------- ------- ---------------------------------
# | | | | | extended |
# | | | | | --------- --------- --------- |
# | | boot | sys-a | sys-b | | devdata | sysdata | appdata | |
# | | | | | --------- --------- --------- |
# - ------ ------- ------- ---------------------------------
# ^ ^
# | |
# 0 |
# 4096KiB
bootloader --source bootimg-pcbios --timeout=0 --append="oprofile.timer=1 rootfstype=${ROOT_FSTYPE}"
part --source bootimg-pcbios --label ${BOOT_PARTITION_LABEL} --align 4096 --fixed-size ${BOOT_PARTITION_SIZE} --active --offset 4096
${WIC_ROOTA_PARTITION}
${WIC_ROOTB_PARTITION}
${WIC_DEVDATA_PARTITION}
${WIC_SYSDATA_PARTITION}
${WIC_APPDATA_PARTITION}