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)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 3 Oct 2022 15:40:26 +0000 (17:40 +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>
(cherry picked from commit ddeabc75ebe3151ff7da302cb1aae702b3ad7eba)

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