summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/virtualization-layer/recipes-extended/xen/xen-mkimage-rpi4.bb
blob: b857cb19f22763dbc2a9ef4448035218f03baf90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
DESCRIPTION = "Xen hypervisor u-boot image"
LICENSE = "GPL-2.0-only"
SECTION = "console/tools"

LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"



ALLOW_EMPTY:${PN} = "1"
FILES:${PN} = ""
S = "${WORKDIR}"

DEPENDS = "u-boot-mkimage-native "

# Only for aarch64
COMPATIBLE_MACHINE = "(-)"
COMPATIBLE_MACHINE:aarch64 = "(.*)"

PACKAGE_ARCH = "${MACHINE_ARCH}"

do_configure[noexec] = "1"
do_deploy[noexec] = "1"

do_compile[depends] += "xen:do_deploy"

# Uboot compatible image
do_compile () {
        uboot-mkimage -A arm64 -C none -T kernel -a 0x48080000 -e 0x48080000 -n "XEN" -d ${DEPLOY_DIR_IMAGE}/xen-${MACHINE} ${DEPLOY_DIR_IMAGE}/xen-${MACHINE}.uImage
}