add setarch/linux32/linux64 applet

This commit is contained in:
Mike Frysinger
2006-02-21 04:26:52 +00:00
parent ea6360e393
commit 0a6b0bfa7a
5 changed files with 78 additions and 0 deletions

View File

@@ -378,6 +378,10 @@
#ifdef CONFIG_FEATURE_INITRD
APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT, _BB_SUID_NEVER)
#endif
#ifdef CONFIG_SETARCH
APPLET_NOUSAGE("linux32", setarch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
APPLET_NOUSAGE("linux64", setarch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
#ifdef CONFIG_LN
APPLET(ln, ln_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
@@ -586,6 +590,9 @@
#ifdef CONFIG_SEQ
APPLET(seq, seq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
#ifdef CONFIG_SETARCH
APPLET(setarch, setarch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
#ifdef CONFIG_SETCONSOLE
APPLET(setconsole, setconsole_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
#endif

View File

@@ -1626,6 +1626,13 @@
"\t\treached.\n" \
"\t-h, -?\tDisplay this help message\n"
#define setarch_trivial_usage \
"<personality> <program> [args ...]"
#define setarch_full_usage \
"Personality may be:\n" \
"\tlinux32\tSet 32bit uname emulation\n" \
"\tlinux64\tSet 64bit uname emulation"
#define ln_trivial_usage \
"[OPTION] TARGET... LINK_NAME|DIRECTORY"
#define ln_full_usage \