File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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-
Original file line number Diff line number Diff 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 \
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ target remote :1234
33
44source ./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
77b 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
99b 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
1111b 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
2122b rmm_main
2223
2324# EDK2 directly prints add-symbol-file with expected offsets
You can’t perform that action at this time.
0 commit comments