Commit 5ccaa512 authored by Rui Miguel Silva's avatar Rui Miguel Silva
Browse files

arm-image/wks: corstone500: introduce corstone500



Introduce support recipe for corstone500 and jointly the wks
file to create the full package that will concatenate all SW
components for that platform to run in FVP or in the MPS3
FPGA.

Signed-off-by: Rui Silva's avatarRui Miguel Silva <rui.silva@arm.com>
Signed-off-by: default avatarRui Miguel Silva <rui.silva@linaro.org>
parent 0ffba649
SUMARY = "Corstone500 platform Image"
DESCRIPTION = "This is the main image which is the container of all the binaries \
generated for the Corstone500 platform."
LICENSE = "MIT"
inherit core-image
inherit image-buildinfo
inherit wic_nopt
# deleting the /usr/lib/opkg/alternatives folder
# because we do not need alternative commands to what
# busybox offers. This saves around 1MB flash
remove_alternative_files () {
rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg
}
ROOTFS_POSTPROCESS_COMMAND += "remove_alternative_files;"
# package management is not supported in corstone500
IMAGE_FEATURES:remove = "package-management"
IMAGE_FEATURES += "debug-tweaks"
IMAGE_FSTYPES += "squashfs wic wic.nopt"
#
# images inheriting image.bbclass are forced to have do_populate_sysroot
# dependency from the recipes listed under EXTRA_IMAGEDEPENDS initramfs image
# doesn't need to use sysroot data provided by EXTRA_IMAGEDEPENDS recipes The
# code below sets the right dependency of do_image_complete task This prevents
# dependency loops
#
python () {
if d.getVar('IMAGE_BASENAME') == "corstone500-image":
d.setVarFlag('do_image_complete', 'depends', 'corstone500-image:do_image')
}
# WIC partitioning for corstone500
# Layout and maximum sizes (to be defined):
#
# Rawcopy of the FIP binary
part --source rawcopy --sourceparams="file=fip.bin" --no-table --align 1 --fixed-size 1
# Rawcopy of the kernel binary
part --source rawcopy --sourceparams="file=zImage" --no-table --fixed-size 12
# Rawcopy of the rootfs
part --source rawcopy --sourceparams="file=${IMGDEPLOYDIR}/corstone500-image-corstone500.squashfs" --no-table
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment