From e2e4950b2d9334e6380e32cf30c7c7968747ccc0 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 15 Dec 2008 15:28:48 +0000 Subject: toolchain: use same gdb Config.in for internal/external toolchains We used to use different gdb configs for internal and external toolchains because mconf won't source the same file twice. This works, but is kind of sub optimal, as people forget to keep them in sync. Fix it to use the same file for both situations by shuffling around the config options a bit. Should work identical to before (except for the newer gdb versions available for ext). --- toolchain/external-toolchain/Config.in | 81 -------------------------------- toolchain/external-toolchain/Config.in.2 | 77 ++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 81 deletions(-) create mode 100644 toolchain/external-toolchain/Config.in.2 (limited to 'toolchain/external-toolchain') diff --git a/toolchain/external-toolchain/Config.in b/toolchain/external-toolchain/Config.in index 6c957bc9b..71dad0d76 100644 --- a/toolchain/external-toolchain/Config.in +++ b/toolchain/external-toolchain/Config.in @@ -1,9 +1,6 @@ # if BR2_TOOLCHAIN_EXTERNAL -comment "External Toolchain Options" - - config BR2_TOOLCHAIN_EXTERNAL_LIB_C string "The core C library from the external toolchain" default "libc.so.0" @@ -27,82 +24,4 @@ config BR2_TOOLCHAIN_EXTERNAL_STRIP prompt "Strip shared libraries" help Strip shared libraries copied from the external toolchain. - -comment "Common Toolchain Options" - -source "toolchain/gdb/Config.in.2" - -config BR2_TOOLCHAIN_EXTERNAL_PATH - string "External toolchain path" - default "/path/to/staging_dir/usr" - help - Path to where the external toolchain is installed. - -config BR2_TOOLCHAIN_EXTERNAL_PREFIX - string "External toolchain prefix" - default "$(ARCH)-linux" - help - This the the external toolchain prefix. For example: - armeb-unknown-linux-gnu, mipsel-unknown-linux-gnu, etc. - -choice - prompt "Thread library implementation" - default BR2_EXT_PTHREADS_OLD - help - Select the version of libpthreads used in the external toolchain. - - config BR2_EXT_PTHREADS_NONE - bool - prompt "none" - - config BR2_EXT_PTHREADS - bool - prompt "linuxthreads" - - config BR2_EXT_PTHREADS_OLD - bool - prompt "linuxthreads (stable/old)" - - config BR2_EXT_PTHREADS_NATIVE - bool - prompt "Native POSIX Threading (NPTL)" -endchoice - -config BR2_LARGEFILE - bool "Toolchain supports large files (> 2 GB) ?" - depends on !BR2_cris - default y - help - Set this option if the external toolchain supports large - files (> 2 GB) - - -config BR2_INET_IPV6 - bool "Toolchain supports IPv6 ?" - help - Set this option if the external toolchain supports IPv6. - -config BR2_INET_RPC - bool "Toolchain supports RPC ?" - help - Set this option if the external toolchain supports RPC. - -config BR2_SOFT_FLOAT - bool "Toolchain supports soft float ?" - depends on BR2_arm || BR2_armeb || BR2_mips || BR2_mipsel || BR2_powerpc - help - Set this option if the external toolchain supports soft float. - -config BR2_GCC_CROSS_CXX - bool "Toolchain has C++ cross-compiler ?" - help - Set this option if the external toolchain has a C++ - cross-compiler. - -config BR2_TARGET_OPTIMIZATION - string "Target Optimizations" - default "-Os -pipe" - help - Optimizations to use when building for the target host. - endif diff --git a/toolchain/external-toolchain/Config.in.2 b/toolchain/external-toolchain/Config.in.2 new file mode 100644 index 000000000..6d17455b1 --- /dev/null +++ b/toolchain/external-toolchain/Config.in.2 @@ -0,0 +1,77 @@ +# + +if BR2_TOOLCHAIN_EXTERNAL +config BR2_TOOLCHAIN_EXTERNAL_PATH + string "External toolchain path" + default "/path/to/staging_dir/usr" + help + Path to where the external toolchain is installed. + +config BR2_TOOLCHAIN_EXTERNAL_PREFIX + string "External toolchain prefix" + default "$(ARCH)-linux" + help + This the the external toolchain prefix. For example: + armeb-unknown-linux-gnu, mipsel-unknown-linux-gnu, etc. + +choice + prompt "Thread library implementation" + default BR2_EXT_PTHREADS_OLD + help + Select the version of libpthreads used in the external toolchain. + + config BR2_EXT_PTHREADS_NONE + bool + prompt "none" + + config BR2_EXT_PTHREADS + bool + prompt "linuxthreads" + + config BR2_EXT_PTHREADS_OLD + bool + prompt "linuxthreads (stable/old)" + + config BR2_EXT_PTHREADS_NATIVE + bool + prompt "Native POSIX Threading (NPTL)" +endchoice + +config BR2_LARGEFILE + bool "Toolchain supports large files (> 2 GB) ?" + depends on !BR2_cris + default y + help + Set this option if the external toolchain supports large + files (> 2 GB) + + +config BR2_INET_IPV6 + bool "Toolchain supports IPv6 ?" + help + Set this option if the external toolchain supports IPv6. + +config BR2_INET_RPC + bool "Toolchain supports RPC ?" + help + Set this option if the external toolchain supports RPC. + +config BR2_SOFT_FLOAT + bool "Toolchain supports soft float ?" + depends on BR2_arm || BR2_armeb || BR2_mips || BR2_mipsel || BR2_powerpc + help + Set this option if the external toolchain supports soft float. + +config BR2_GCC_CROSS_CXX + bool "Toolchain has C++ cross-compiler ?" + help + Set this option if the external toolchain has a C++ + cross-compiler. + +config BR2_TARGET_OPTIMIZATION + string "Target Optimizations" + default "-Os -pipe" + help + Optimizations to use when building for the target host. + +endif -- cgit v1.2.3