build system: fix "make install" to skip /usr when configured so
authorJoachim Nilsson <troglobit@vmlinux.org>
Sun, 5 Dec 2010 22:05:38 +0000 (23:05 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 5 Dec 2010 22:05:38 +0000 (23:05 +0100)
Fix regression in BusyBox 1.18.0 where the NO_USR config option no longer
bites for "make install".  The busybox.mkll script stumbles without these
lines and as a result *always* creates /usr/ symlinks.

Signed-off-by: Joachim Nilsson <troglobit@vmlinux.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/applets.src.h

index 9dd5b6d..5058feb 100644 (file)
@@ -56,6 +56,11 @@ s     - suid type:
 # define APPLET_NOFORK(name,main,l,s,name2)  { #name, #main, l, s, 1, 1 },
 #endif
 
+#if ENABLE_INSTALL_NO_USR
+# define _BB_DIR_USR_BIN _BB_DIR_BIN
+# define _BB_DIR_USR_SBIN _BB_DIR_SBIN
+#endif
+
 
 INSERT
 IF_TEST(APPLET_NOFORK([,  test, _BB_DIR_USR_BIN, _BB_SUID_DROP, test))