summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-11-19 00:06:40 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-11-19 00:06:40 +0100
commitde0e6feb779c1d4779a41761cf2f32d61f421260 (patch)
tree1760681596312b22342a2d6d95e232b9f017adc4 /mk
parent458b32172bba08600041b57106abbea19ed5dfce (diff)
allow HW variable to start with hardware profile, f.e. make TARGET=x86 HW=ibmx40
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/mk/build.mk b/mk/build.mk
index d7feac37c..e876bd1f5 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -331,6 +331,12 @@ endif
|sed -e "s#^config \(.*\)#\1=y#" \
>> $(TOPDIR)/.defconfig; \
fi
+ @if [ ! -z "$(HW)" ];then \
+ grep -h "^config" target/Config.in.* \
+ |grep -i "$(HW)" \
+ |sed -e "s#^config \(.*\)#\1=y#" \
+ >> $(TOPDIR)/.defconfig; \
+ fi
ifneq (,$(filter %_qemu,${TARGET}))
@echo ADK_LINUX_QEMU=y >> $(TOPDIR)/.defconfig
endif
@@ -402,6 +408,12 @@ endif
|sed -e "s#^config \(.*\)#\1=y#" \
>> $(TOPDIR)/all.config; \
fi
+ @if [ ! -z "$(HW)" ];then \
+ grep -h "^config" target/Config.in.* \
+ |grep -i "$(HW)" \
+ |sed -e "s#^config \(.*\)#\1=y#" \
+ >> $(TOPDIR)/all.config; \
+ fi
ifneq (,$(filter %_qemu,${TARGET}))
@echo ADK_LINUX_QEMU=y >> $(TOPDIR)/all.config
endif