Browse Source

Fix build without .config

Matthias Schiffer 11 years ago
parent
commit
01a574faab
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -63,7 +63,6 @@ include $(TOPDIR)/include/host.mk
 include rules.mk
 include $(INCLUDE_DIR)/depends.mk
 include $(INCLUDE_DIR)/subdir.mk
-include $(INCLUDE_DIR)/kernel.mk
 
 include package/Makefile
 include tools/Makefile
@@ -137,6 +136,8 @@ download: .config FORCE
 
 toolchain: $(toolchain/stamp-install) $(tools/stamp-install)
 
+include $(INCLUDE_DIR)/kernel.mk
+
 kernel: FORCE
 	$(NO_TRACE_MAKE) -C $(TOPDIR)/target/linux/$(BOARD) -f $(GLUONDIR)/include/Makefile.target $(LINUX_DIR)/.image TARGET_BUILD=1
 	$(NO_TRACE_MAKE) -C $(TOPDIR)/target/linux/$(BOARD) -f $(GLUONDIR)/include/Makefile.target $(LINUX_DIR)/.modules TARGET_BUILD=1