diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-11 19:56:37 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-11 19:56:37 +0100 |
commit | fdd9e91504e5f1d8eb1c15d3d8727d0fc6766bc2 (patch) | |
tree | 718fc7d70811e1c0a9ceedd4a50bdedc8980bd88 /mk/build.mk | |
parent | d3d8cf19495d491bee483f9d1973a61ebf0db7ca (diff) | |
parent | b706a572926dd8ac76de3928bd1290ee880944f8 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'mk/build.mk')
-rw-r--r-- | mk/build.mk | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/mk/build.mk b/mk/build.mk index 67ec849cb..2d1d4e035 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -224,8 +224,17 @@ $(CONFIG)/mconf: @$(MAKE) -C $(CONFIG) defconfig: +ifeq (${OStype},Linux) + @echo ADK_HOST_LINUX=y > $(TOPDIR)/.defconfig +endif +ifeq (${OStype},FreeBSD) + @echo ADK_HOST_FREEBSD=y > $(TOPDIR)/.defconfig +endif @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 +245,17 @@ endif ifneq (,$(filter %_rescue,${TARGET})) @echo ADK_LINUX_RESCUE=y >> $(TOPDIR)/.defconfig endif - @if [ ! -z "$(TARGET)" ];then \ - $(CONFIG)/conf -D .defconfig $(CONFIG_CONFIG_IN); \ - fi +ifneq (,$(filter rb%,${TARGET})) + @echo ADK_LINUX_MIKROTIK=y >> $(TOPDIR)/.defconfig +endif + @$(CONFIG)/conf -D .defconfig $(CONFIG_CONFIG_IN) 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 +279,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) |