diff options
author | Remi Pommarel <repk@triplefau.lt> | 2019-03-30 15:58:45 +0100 |
---|---|---|
committer | Remi Pommarel <repk@triplefau.lt> | 2019-04-02 16:33:59 +0200 |
commit | 9f52e88636fd5b87682e923fb570f7aeaf662bd3 (patch) | |
tree | 09de299f36702d0f0eee2ce2c4cf7a9ed5db6888 /plat | |
parent | 327ad2990ad4a1efc6e317a70c87d19e40c567a8 (diff) | |
download | platform_external_arm-trusted-firmware-9f52e88636fd5b87682e923fb570f7aeaf662bd3.tar.gz platform_external_arm-trusted-firmware-9f52e88636fd5b87682e923fb570f7aeaf662bd3.tar.bz2 platform_external_arm-trusted-firmware-9f52e88636fd5b87682e923fb570f7aeaf662bd3.zip |
meson/gxl: Add tool to create bl31 bootable images
GXL platforms need to have a specific header at the beginning of bl31
image to be able to boot. This adds a tool to create that and calls it at
build time.
Signed-off-by: Remi Pommarel <repk@triplefau.lt>
Diffstat (limited to 'plat')
-rw-r--r-- | plat/meson/gxl/platform.mk | 16 |
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 + |