From f2ba45e339a8adc589704217409684f7f6d1d214 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Sun, 19 Jan 2003 12:55:13 +0000 Subject: [PATCH] Compile option to avoid using /usr directory, patch by Bastian Blank --- include/applets.h | 5 +++++ sysdeps/linux/Config.in | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/include/applets.h b/include/applets.h index 0d8f0b4cb..504f86a17 100644 --- a/include/applets.h +++ b/include/applets.h @@ -41,6 +41,11 @@ #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 diff --git a/sysdeps/linux/Config.in b/sysdeps/linux/Config.in index 8648e1489..1e1142e06 100644 --- a/sysdeps/linux/Config.in +++ b/sysdeps/linux/Config.in @@ -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 -- 2.25.1