mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 21:57:48 +00:00
debug/gdb: do not expose the ncurses version in the menuconfig
This commit is contained in:
parent
8a50c2d244
commit
64aae637f8
@ -129,29 +129,3 @@ config GDB_VERSION
|
|||||||
default "7.0" if GDB_V_7_0
|
default "7.0" if GDB_V_7_0
|
||||||
default "6.8" if GDB_V_6_8
|
default "6.8" if GDB_V_6_8
|
||||||
default "snapshot" if GDB_V_snapshot
|
default "snapshot" if GDB_V_snapshot
|
||||||
|
|
||||||
if GDB_NATIVE
|
|
||||||
|
|
||||||
comment "Native gdb needs a native ncurses library"
|
|
||||||
|
|
||||||
choice
|
|
||||||
bool
|
|
||||||
prompt "ncurses version"
|
|
||||||
|
|
||||||
config NCURSES_V_5_7
|
|
||||||
bool
|
|
||||||
prompt "5.7"
|
|
||||||
|
|
||||||
config NCURSES_V_5_6
|
|
||||||
bool
|
|
||||||
prompt "5.6 (OBSOLETE)"
|
|
||||||
depends on OBSOLETE
|
|
||||||
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
config NCURSES_VERSION
|
|
||||||
string
|
|
||||||
default "5.7" if NCURSES_V_5_7
|
|
||||||
default "5.6" if NCURSES_V_5_6
|
|
||||||
|
|
||||||
endif # GDB_NATIVE --> ncurses
|
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
# Build script for the gdb debug facility
|
# Build script for the gdb debug facility
|
||||||
|
|
||||||
|
# The version of ncurses to use. Yes, it's hard-coded.
|
||||||
|
# It's used only internally by crosstool-NG, and is
|
||||||
|
# not exposed outside, so we don't care about providing
|
||||||
|
# config options for this.
|
||||||
|
CT_DEBUG_GDB_NCURSES_VERSION="5.7"
|
||||||
|
|
||||||
do_debug_gdb_suffix() {
|
do_debug_gdb_suffix() {
|
||||||
case "${CT_GDB_VERSION}" in
|
case "${CT_GDB_VERSION}" in
|
||||||
snapshot) ;;
|
snapshot) ;;
|
||||||
@ -47,7 +53,7 @@ do_debug_gdb_get() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${do_ncurses}" = "y" ]; then
|
if [ "${do_ncurses}" = "y" ]; then
|
||||||
CT_GetFile "ncurses-${CT_NCURSES_VERSION}" .tar.gz \
|
CT_GetFile "ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}" .tar.gz \
|
||||||
{ftp,http}://ftp.gnu.org/pub/gnu/ncurses \
|
{ftp,http}://ftp.gnu.org/pub/gnu/ncurses \
|
||||||
ftp://invisible-island.net/ncurses
|
ftp://invisible-island.net/ncurses
|
||||||
fi
|
fi
|
||||||
@ -67,8 +73,8 @@ do_debug_gdb_extract() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${do_ncurses}" = "y" ]; then
|
if [ "${do_ncurses}" = "y" ]; then
|
||||||
CT_Extract "ncurses-${CT_NCURSES_VERSION}"
|
CT_Extract "ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}"
|
||||||
CT_Patch "ncurses-${CT_NCURSES_VERSION}"
|
CT_Patch "ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -154,7 +160,7 @@ do_debug_gdb_build() {
|
|||||||
# cross-compiling, and thus will use the ${CT_BUILD}-*
|
# cross-compiling, and thus will use the ${CT_BUILD}-*
|
||||||
# tools instead of searching for the native ones...
|
# tools instead of searching for the native ones...
|
||||||
CT_DoExecLog ALL \
|
CT_DoExecLog ALL \
|
||||||
"${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \
|
"${CT_SRC_DIR}/ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}/configure" \
|
||||||
--build=${CT_REAL_BUILD} \
|
--build=${CT_REAL_BUILD} \
|
||||||
--host=${CT_BUILD} \
|
--host=${CT_BUILD} \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
@ -184,7 +190,7 @@ do_debug_gdb_build() {
|
|||||||
cd "${CT_BUILD_DIR}/build-ncurses"
|
cd "${CT_BUILD_DIR}/build-ncurses"
|
||||||
|
|
||||||
CT_DoExecLog ALL \
|
CT_DoExecLog ALL \
|
||||||
"${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \
|
"${CT_SRC_DIR}/ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}/configure" \
|
||||||
--build=${CT_BUILD} \
|
--build=${CT_BUILD} \
|
||||||
--host=${CT_TARGET} \
|
--host=${CT_TARGET} \
|
||||||
--with-build-cc=${CT_BUILD}-gcc \
|
--with-build-cc=${CT_BUILD}-gcc \
|
||||||
|
Loading…
Reference in New Issue
Block a user