summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-12-11 18:13:55 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-11 18:13:55 (GMT)
commitcf6b45d277fa44ec128b1d68d3061f2c1ea78879 (patch)
tree2de83921128be3e77922a738f58b009cf4639997 /mk
parentba6d4f991cf81b932432b4eb32a09b4ba9a6e518 (diff)
fix allmodconfig/allconfig for routerboard targets
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk17
1 files changed, 14 insertions, 3 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 67ec849..f51c921 100644
--- a/mk/build.mk
+++ b/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; \
@@ -236,13 +239,19 @@ 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); \
fi
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)