fix out-of-source-tree build
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 12 Aug 2007 20:59:07 +0000 (20:59 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 12 Aug 2007 20:59:07 +0000 (20:59 -0000)
Makefile
applets/usage.c

index f6991ac4cec754557bb9e9744f734b6a114c60aa..e97330a577a46d7280e640fc02d985d29bf07263 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -760,7 +760,7 @@ PHONY += prepare-all
 # 2) Create the include2 directory, used for the second asm symlink
 prepare3: .kernelrelease
 ifneq ($(KBUILD_SRC),)
-       @echo '  Using $(srctree) as source for kernel'
+       @echo '  Using $(srctree) as source for busybox'
        $(Q)if [ -f $(srctree)/.config ]; then \
                echo "  $(srctree) is not clean, please run 'make mrproper'";\
                echo "  in the '$(srctree)' directory.";\
index c128b52f86cd4cbc736927fcd0ca138597e46ccc..4955839fc03951d7a02309b94f7cba52d876bcaf 100644 (file)
@@ -1,7 +1,9 @@
 /* vi: set sw=4 ts=4: */
 #include <unistd.h>
 
-#include "autoconf.h"
+/* Just #include "autoconf.h" doesn't work for builds in separate
+ * object directory */
+#include "../include/autoconf.h"
 
 static const char usage_messages[] = ""
 #define MAKE_USAGE