scripts: ext-toolchain: actually probe libc type on config generation
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 17 Jul 2022 15:53:58 +0000 (17:53 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 24 Jul 2022 17:53:44 +0000 (19:53 +0200)
Currently we never call probe_cc before config generation, this cause
the script to never actually detect the correct libc type.
Call probe_cc before config generation to correctl set the .config file.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
scripts/ext-toolchain.sh

index c9ceb150c1969683e146a5d38edea45a08a77c27..1ef3f42c50a9e4121c54c0bdb0c0ae7b5b3020fe 100755 (executable)
@@ -546,6 +546,7 @@ while [ -n "$1" ]; do
 
                --config)
                        if probe_cc; then
+                               probe_libc
                                print_config "$1"
                                exit $?
                        fi