From ae71ce41063334796b20eb8b834225b2521fedc3 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Thu, 6 Jul 2017 00:13:03 -0700 Subject: Kconfigize choice/menu items Also, add a poor man's upgrade script. Signed-off-by: Alexey Neyman --- scripts/build/internals.sh | 2 +- scripts/build/libc/newlib.sh | 2 +- scripts/upgrade.sed | 27 +++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 scripts/upgrade.sed (limited to 'scripts') diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh index 07029d0a..e407de8b 100644 --- a/scripts/build/internals.sh +++ b/scripts/build/internals.sh @@ -69,7 +69,7 @@ do_finish() { CT_DoExecLog ALL "${CT_TARGET}-strip" ${strip_args} \ "${CT_TARGET}/debug-root/usr/bin/gdbserver${exe_suffix}" fi - if [ "${CT_CC_gcc}" = "y" ]; then + if [ "${CT_CC_GCC}" = "y" ]; then # TBD GCC 3.x/2.x is no longer supported by ctng # We can not use the version in CT_GCC_VERSION because # of the Linaro stuff. So, harvest the version string diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index ff0f45b5..05f98307 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -18,7 +18,7 @@ do_libc_start_files() { CT_DoStep INFO "Installing C library headers & start files" CT_DoExecLog ALL cp -a "${CT_SRC_DIR}/newlib/newlib/libc/include/." \ "${CT_HEADERS_DIR}" - if [ "${CT_ARCH_xtensa}" = "y" ]; then + if [ "${CT_ARCH_XTENSA}" = "y" ]; then CT_DoLog EXTRA "Installing Xtensa headers" CT_DoExecLog ALL cp -r "${CT_SRC_DIR}/newlib/newlib/libc/sys/xtensa/include/." \ "${CT_HEADERS_DIR}" diff --git a/scripts/upgrade.sed b/scripts/upgrade.sed new file mode 100644 index 00000000..2a05192c --- /dev/null +++ b/scripts/upgrade.sed @@ -0,0 +1,27 @@ +# After 1.23.0, generated config options were standardized to upper case +s/\/CT_ARCH_\U\1/g +s/\/CT_BINUTILS_BINUTILS/g +s/\/CT_CC_GCC/g +s/\/CT_COMP_TOOLS_\U\1/g +s/\/CT_DEBUG_\U\1/g +s/\/CT_KERNEL_\U\1/g +s/\/CT_LIBC_\U\1/g + +# Also after 1.23.0, package versions were brought to the same format +s/\/CT_ANDROID_NDK_V_R\U\1/g +s/\/CT_ANDROID_NDK_V_R15B/g +s/\