aboutsummaryrefslogtreecommitdiffstats
path: root/dynamic-layers/xilinx/recipes-extended/xen/xen-xilinx.inc
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic-layers/xilinx/recipes-extended/xen/xen-xilinx.inc')
-rw-r--r--dynamic-layers/xilinx/recipes-extended/xen/xen-xilinx.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/dynamic-layers/xilinx/recipes-extended/xen/xen-xilinx.inc b/dynamic-layers/xilinx/recipes-extended/xen/xen-xilinx.inc
new file mode 100644
index 00000000..18215572
--- /dev/null
+++ b/dynamic-layers/xilinx/recipes-extended/xen/xen-xilinx.inc
@@ -0,0 +1,11 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
+
+DEPENDS += "u-boot-mkimage-native"
+DEPENDS += "dtc-native"
+
+XENIMAGE_KERNEL_LOADADDRESS ?= "0x6000000"
+do_deploy:append() {
+ if [ -f ${DEPLOYDIR}/xen-${MACHINE} ]; then
+ uboot-mkimage -A arm64 -T kernel -a ${XENIMAGE_KERNEL_LOADADDRESS} -e ${XENIMAGE_KERNEL_LOADADDRESS} -C none -d ${DEPLOYDIR}/xen-${MACHINE} ${DEPLOYDIR}/xen.ub
+ fi
+}