Browse Source

fix allmodconfig/allconfig for routerboard targets

Waldemar Brodkorb 14 years ago
parent
commit
cf6b45d277
1 changed files with 14 additions and 3 deletions
  1. 14 3
      mk/build.mk

+ 14 - 3
mk/build.mk

@@ -225,7 +225,10 @@ $(CONFIG)/mconf:
 
 defconfig:
 	@if [ ! -z "$(TARGET)" ];then \
-		grep "^config" target/Config.in |grep -i "$(TARGET)"|sed -e "s#^config \(.*\)#\1=y#" > $(TOPDIR)/.defconfig; \
+		grep "^config" target/Config.in \
+			|grep -i "$(TARGET)" \
+			|sed -e "s#^config \(.*\)#\1=y#" \
+			 > $(TOPDIR)/.defconfig; \
 		for symbol in ${DEFCONFIG}; do \
 			echo $$symbol >> $(TOPDIR)/.defconfig; \
 		done; \
@@ -235,6 +238,9 @@ ifneq (,$(filter %_qemu,${TARGET}))
 endif
 ifneq (,$(filter %_rescue,${TARGET}))
 	@echo ADK_LINUX_RESCUE=y >> $(TOPDIR)/.defconfig
+endif
+ifneq (,$(filter rb%,${TARGET}))
+	@echo ADK_LINUX_MIKROTIK=y >> $(TOPDIR)/.defconfig
 endif
 	@if [ ! -z "$(TARGET)" ];then \
 		$(CONFIG)/conf -D .defconfig $(CONFIG_CONFIG_IN); \
@@ -242,7 +248,10 @@ endif
 
 modconfig:
 	@if [ ! -z "$(TARGET)" ];then \
-		grep "^config" target/Config.in |grep -i "$(TARGET)"|sed -e "s#^config \(.*\)#\1=y#" > $(TOPDIR)/all.config; \
+		grep "^config" target/Config.in \
+			|grep -i "$(TARGET)" \
+			|sed -e "s#^config \(.*\)#\1=y#" \
+			> $(TOPDIR)/all.config; \
 		for symbol in ${DEFCONFIG}; do \
 			echo $$symbol >> $(TOPDIR)/all.config; \
 		done; \
@@ -266,12 +275,14 @@ modconfig:
 			>> $(TOPDIR)/all.config; \
 	fi
 ifneq (,$(filter %_qemu,${TARGET}))
-
 	@echo ADK_LINUX_QEMU=y >> $(TOPDIR)/all.config
 endif
 ifneq (,$(filter %_rescue,${TARGET}))
 	@echo ADK_LINUX_RESCUE=y >> $(TOPDIR)/all.config
 endif
+ifneq (,$(filter rb%,${TARGET}))
+	@echo ADK_LINUX_MIKROTIK=y >> $(TOPDIR)/all.config
+endif
 
 menuconfig: $(CONFIG)/mconf defconfig
 	@$(CONFIG)/mconf $(CONFIG_CONFIG_IN)