diff --git a/tools/Makefile b/tools/Makefile
index 619c9f2acbd08e85408ae5eb311be8ea0b6da3c2..623f9086f390005ad2804f2bcc724f13e84b2972 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -23,6 +23,12 @@
 
 TOOLSUBDIRS =
 
+#
+# Include this after HOSTOS HOSTARCH check
+# so that we can act intelligently.
+#
+include $(TOPDIR)/config.mk
+
 #
 # toolchains targeting win32 generate .exe files
 #
@@ -32,12 +38,6 @@ else
 SFX =
 endif
 
-#
-# Include this after HOSTOS HOSTARCH check
-# so that we can act intelligently.
-#
-include $(TOPDIR)/config.mk
-
 # Enable all the config-independent tools
 ifneq ($(HOST_TOOLS_ALL),)
 CONFIG_LCD_LOGO = y