aboutsummaryrefslogtreecommitdiffstats
path: root/plat
diff options
context:
space:
mode:
Diffstat (limited to 'plat')
-rw-r--r--plat/meson/gxl/platform.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/plat/meson/gxl/platform.mk b/plat/meson/gxl/platform.mk
index de6192926..ea4aead72 100644
--- a/plat/meson/gxl/platform.mk
+++ b/plat/meson/gxl/platform.mk
@@ -6,6 +6,9 @@
include lib/xlat_tables_v2/xlat_tables.mk
+DOIMAGEPATH ?= tools/meson
+DOIMAGETOOL ?= ${DOIMAGEPATH}/doimage
+
PLAT_INCLUDES := -Iinclude/drivers/meson/ \
-Iinclude/drivers/meson/gxl \
-Iplat/meson/gxl/include
@@ -76,3 +79,16 @@ endif
ifeq (${ARCH},aarch32)
$(error Error: AArch32 not supported on gxl)
endif
+
+all: ${BUILD_PLAT}/bl31.img
+distclean realclean clean: cleanimage
+
+cleanimage:
+ ${Q}${MAKE} -C ${DOIMAGEPATH} clean
+
+${DOIMAGETOOL}:
+ ${Q}${MAKE} -C ${DOIMAGEPATH}
+
+${BUILD_PLAT}/bl31.img: ${BUILD_PLAT}/bl31.bin ${DOIMAGETOOL}
+ ${DOIMAGETOOL} ${BUILD_PLAT}/bl31.bin ${BUILD_PLAT}/bl31.img
+