Compile option to avoid using /usr directory, patch by Bastian Blank
authorGlenn L McGrath <bug1@ihug.co.nz>
Sun, 19 Jan 2003 12:55:13 +0000 (12:55 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sun, 19 Jan 2003 12:55:13 +0000 (12:55 -0000)
include/applets.h
sysdeps/linux/Config.in

index 0d8f0b4cb4b04b9333000801c76fabf734fcc34e..504f86a17a4e4e7d219abe4a059651dd40be3714 100644 (file)
   #define APPLET_ODDNAME(a,b,c,d,e) {a,b,c,d},
 #endif
 
+#ifdef CONFIG_INSTALL_NO_USR
+#define _BB_DIR_USR_BIN _BB_DIR_BIN
+#define _BB_DIR_USR_SBIN _BB_DIR_SBIN
+#endif
+
 
 
 #ifdef CONFIG_TEST
index 8648e1489434f7f1726efda17c07e8e6939f73e6..1e1142e068c752dec1949643967c4057b589a226 100644 (file)
@@ -157,6 +157,17 @@ config EXTRA_CFLAGS_OPTIONS
 
 endmenu
 
+menu 'Installation Options'
+
+config CONFIG_INSTALL_NO_USR
+       bool "Don't use /usr"
+       default n
+       help
+         Disable use of /usr. Don't activate this option if you don't know,
+         that you really want this behaviour.
+
+endmenu
+
 source archival/Config.in
 source console-tools/Config.in
 source debianutils/Config.in