Skip to content

Commit 23edfb7

Browse files
author
Pierrick Bouvier
committed
release build for tf-a + tf-rmm
1 parent adbe486 commit 23edfb7

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎build_arm_trusted_firmware.sh‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ build()
2828
intercept-build --append \
2929
make PLAT=qemu_sbsa \
3030
ENABLE_RME=1 \
31-
RMM=../tf-rmm/build/Debug/rmm.img \
31+
RMM=../tf-rmm/build/Release/rmm.img \
3232
LOG_LEVEL=40 \
33-
DEBUG=1 \
3433
all fip -j$(nproc)
3534
sed -i compile_commands.json -e 's/"cc"/"aarch64-linux-gnu-gcc"/'
3635
popd

‎build_edk2.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ build()
3030
export PACKAGES_PATH=$(pwd):$(pwd)/edk2-platforms
3131
# copy bin from TF-A
3232
mkdir -p Platform/Qemu/Sbsa/
33-
cp -f ../arm-trusted-firmware/build/qemu_sbsa/debug/*.bin Platform/Qemu/Sbsa/
33+
cp -f ../arm-trusted-firmware/build/qemu_sbsa/release/*.bin Platform/Qemu/Sbsa/
3434

3535
make -C BaseTools -j $(nproc)
3636
export GCC5_AARCH64_PREFIX=aarch64-linux-gnu-

‎build_tf_rmm.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ build()
2323
pushd $(readlink -f tf-rmm)
2424
env CROSS_COMPILE=aarch64-linux-gnu- \
2525
cmake -DRMM_CONFIG=qemu_sbsa_defcfg \
26-
-DCMAKE_BUILD_TYPE=Debug \
26+
-DCMAKE_BUILD_TYPE=Release \
2727
-DLOG_LEVEL=40 \
2828
-S . -B build
2929
intercept-build --append \

‎gdbinit‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ target remote :1234
33

44
source ./gdb.py
55

6-
add-symbol-file ./arm-trusted-firmware/build/qemu_sbsa/debug/bl1/bl1.elf
6+
add-symbol-file ./arm-trusted-firmware/build/qemu_sbsa/release/bl1/bl1.elf
77
b bl1_main
8-
add-symbol-file ./arm-trusted-firmware/build/qemu_sbsa/debug/bl2/bl2.elf
8+
add-symbol-file ./arm-trusted-firmware/build/qemu_sbsa/release/bl2/bl2.elf
99
b bl2_main
10-
add-symbol-file ./arm-trusted-firmware/build/qemu_sbsa/debug/bl31/bl31.elf
10+
add-symbol-file ./arm-trusted-firmware/build/qemu_sbsa/release/bl31/bl31.elf
1111
b bl31_main
1212

1313
# For rmm, we need to find loaded address (chosen by TF-A) + offset (build)
@@ -17,7 +17,8 @@ b bl31_main
1717
# Check for offset in RMM image:
1818
# ./build_rmm.sh |& grep 'offset of the RMM core'
1919
# INFO: The offset of the RMM core is 393216 (0x60000) bytes from start of packaged bin.
20-
add-symbol-file ./tf-rmm/build/Debug/rmm.elf 0x10000060000
20+
# 0x60000
21+
add-symbol-file ./tf-rmm/build/Release/rmm.elf 0x10000060000
2122
b rmm_main
2223

2324
# EDK2 directly prints add-symbol-file with expected offsets

0 commit comments

Comments
 (0)