diff options
Diffstat (limited to 'mk/build.mk')
-rw-r--r-- | mk/build.mk | 12 |
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 |