summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-03-23 03:13:16 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2015-03-23 03:13:16 -0500
commit6cebe0b4795fd2d4f3b00b026286fe05c8366e67 (patch)
tree3181a4049f4be685b6d357620d68ff1937a888a0 /mk
parentefcca41dedb193f95ec581320d08a3e56b47d0ca (diff)
allow to select CPU flavour for toolchain building via env
Add a more generic way to define CPU flavours for Toolchain building. Add Cortex-A8 definition. Move Thumb symbol around.
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 8ae803fab..2d88f6061 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -449,6 +449,13 @@ endif
|sed -e "s#^config \(.*\)#\1=y#" \
>> $(ADK_TOPDIR)/.defconfig; \
fi
+ @if [ ! -z "$(ADK_TARGET_CPU)" ];then \
+ cpu=$$(echo "$(ADK_TARGET_CPU)" |sed -e "s/-/_/g"); \
+ grep -h "^config" target/config/Config.in.tc \
+ |grep -i "$$cpu$$" \
+ |sed -e "s#^config \(.*\)#\1=y#" \
+ >> $(ADK_TOPDIR)/.defconfig; \
+ fi
@if [ ! -z "$(ADK_TARGET_SYSTEM)" ];then \
system=$$(echo "$(ADK_TARGET_SYSTEM)" |sed -e "s/-/_/g"); \
grep -h "^config" target/*/Config.in.systems \