Hello together,
I'm not able to commit to https://git.linaro.org/uefi/uefi-tools.git but maybe some of you.
Due to the common function set_cross_compile, the tools are already able to use variables like $CROSS_COMPILE_64 to specify another toolchain, than the system default one.
It would be great to make more options available from outside the tools e.g. set debug option for ATF. Becaus I can specify uefi to compile with debug flag on, but not for ATF. There is a BUILD_ATF variable in platform.config, but I don't want to manipulate the file everytime I toggle between debug and release. I added ATF_DEBUG as flag to my local scripts and read it like that:
diff --git a/atf-build.sh b/atf-build.sh
index 43906ac..192870a 100755
--- a/atf-build.sh
+++ b/atf-build.sh
@@ -99,6 +99,9 @@ function build_platform
#
# Debug extraction handling
#
+ if [ $ATF_DEBUG == 1 ]; then
+ BUILD_ATF=debug
+ fi
case "$BUILD_ATF" in
debug*)
DEBUG=1
With uefi-build.sh it is possible to use the -b option to specify the build type. But also here it would be nice to have a EDK_DEBUG flag, which is used if there is no option specified.
Best Regards,
gitfineon