arm-trusted-firmware/docs/diagrams/generate_xlat_images.sh
Antonio Nino Diaz 6feb9e8854 Add documentation of the xlat tables library V2
The documentation describes the design of the translation tables
library version 2 used by the ARM Trusted Firmware.

The diagram file has been created with Dia version 0.97.2. This tool
can be obtained from: https://wiki.gnome.org/Apps/Dia/Download

Inkscape has been used to generate the *.png file from the *.dia file
to work around a bug in the generation of *.png files in some versions
of Dia.

Change-Id: Ie67d9998d4ae881b2c060200a318ad3ac2fa5e91
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2017-08-08 16:49:47 +01:00

27 lines
471 B
Bash
Executable File

#! /bin/bash
#
# This script generates the image file used in the ARM Trusted Firmware
# Translation Tables Library V2 Design document from the 'xlat_align.dia' file.
#
set -e
# Usage: generate_image <dia_filename> <layers> <image_filename>
function generate_image
{
dia \
--show-layers=$2 \
--filter=svg \
--export=$3 \
$1
}
generate_image \
xlat_align.dia \
bg,translations \
xlat_align.svg
inkscape -z xlat_align.svg -e xlat_align.png -d 45