summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-07-30 21:31:21 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-07-30 21:31:21 +0200
commit560f12ce3630b72b84591618d4e0c2f29244d715 (patch)
tree6b40742d809ecb210dd3f4b030824b3789d6a643
parent5710baada6b5a58c2eb1d8c2177392fd9654bc2a (diff)
allow to preselect binutils, gcc and gdb version
-rw-r--r--mk/build.mk42
1 files changed, 38 insertions, 4 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 6157157d7..88767b15c 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -468,10 +468,44 @@ defconfig: .menu $(CONFIG)/conf
echo "ADK_TARGET_LIB_MUSL_GIT=y" >> $(ADK_TOPDIR)/.defconfig; \
fi; \
else \
- grep "^config" target/config/Config.in.libc \
- |grep -i "$$libcversion$$" \
- |sed -e "s#^config \(.*\)#\1=y#" \
- >> $(ADK_TOPDIR)/.defconfig; \
+ grep "^config" target/config/Config.in.libc \
+ |grep -i "$$libcversion$$" \
+ |sed -e "s#^config \(.*\)#\1=y#" \
+ >> $(ADK_TOPDIR)/.defconfig; \
+ fi; \
+ fi
+ @if [ ! -z "$(ADK_TOOLCHAIN_BINUTILS_VERSION)" ];then \
+ binutilsversion=$$(echo "$(ADK_TOOLCHAIN_BINUTILS_VERSION)"|sed -e "s/\./_/g"); \
+ if [ "$$binutilsversion" = "git" ];then \
+ echo "ADK_TOOLCHAIN_BINUTILS_GIT=y" >> $(ADK_TOPDIR)/.defconfig; \
+ else \
+ grep "^config" target/config/Config.in.binutils \
+ |grep -i "$$binutilsversion$$" \
+ |sed -e "s#^config \(.*\)#\1=y#" \
+ >> $(ADK_TOPDIR)/.defconfig; \
+ fi; \
+ fi
+ @if [ ! -z "$(ADK_TOOLCHAIN_GCC_VERSION)" ];then \
+ echo "ADK_BUILD_COMPILER_GCC=y" >> $(ADK_TOPDIR)/.defconfig; \
+ gccversion=$$(echo "$(ADK_TOOLCHAIN_GCC_VERSION)"|sed -e "s/\./_/g"); \
+ if [ "$$gccversion" = "git" ];then \
+ echo "ADK_TOOLCHAIN_GCC_GIT=y" >> $(ADK_TOPDIR)/.defconfig; \
+ else \
+ grep "^config" target/config/Config.in.compiler \
+ |grep -i "$$gccversion$$" \
+ |sed -e "s#^config \(.*\)#\1=y#" \
+ >> $(ADK_TOPDIR)/.defconfig; \
+ fi; \
+ fi
+ @if [ ! -z "$(ADK_TOOLCHAIN_GDB_VERSION)" ];then \
+ gdbversion=$$(echo "$(ADK_TOOLCHAIN_GDB_VERSION)"|sed -e "s/\./_/g"); \
+ if [ "$$gdbversion" = "git" ];then \
+ echo "ADK_TOOLCHAIN_GDB_GIT=y" >> $(ADK_TOPDIR)/.defconfig; \
+ else \
+ grep "^config" target/config/Config.in.gdb \
+ |grep -i "$$gdbversion$$" \
+ |sed -e "s#^config \(.*\)#\1=y#" \
+ >> $(ADK_TOPDIR)/.defconfig; \
fi; \
fi
@if [ ! -z "$(ADK_APPLIANCE)" ];then \