toolchain/crosstool-NG: fix sysroot name
We have to ensure that the sysroot created while building the toolchain will be the one we later search for libraries. So: - hide the sysroot name prompt from the ct-ng menu. - force the sysroot name to be 'sysroot'. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
b4f976f28b
commit
d9124d0da9
@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/config/toolchain.in b/config/toolchain.in
|
||||||
|
--- a/config/toolchain.in
|
||||||
|
+++ b/config/toolchain.in
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
|
||||||
|
config SYSROOT_NAME
|
||||||
|
string
|
||||||
|
- prompt "sysroot directory name"
|
||||||
|
+ prompt "sysroot directory name" if ! BACKEND
|
||||||
|
depends on USE_SYSROOT
|
||||||
|
default "sysroot"
|
||||||
|
help
|
@ -257,6 +257,7 @@ endif
|
|||||||
# And the specials for paths
|
# And the specials for paths
|
||||||
CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_PREFIX_DIR)=.*:\1="$(HOST_DIR)/usr":;
|
CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_PREFIX_DIR)=.*:\1="$(HOST_DIR)/usr":;
|
||||||
CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_LOCAL_TARBALLS_DIR)=.*:\1="$(DL_DIR)":;
|
CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_LOCAL_TARBALLS_DIR)=.*:\1="$(DL_DIR)":;
|
||||||
|
CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_SYSROOT_NAME)=.*:\1="sysroot":;
|
||||||
CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_SYSROOT_DIR_PREFIX)=.*:\1="":;
|
CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_SYSROOT_DIR_PREFIX)=.*:\1="":;
|
||||||
|
|
||||||
#--------------
|
#--------------
|
||||||
|
Loading…
Reference in New Issue
Block a user