diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-04 16:01:12 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-04 16:01:12 +0200 |
commit | d1f222c3b00839b289f5d04a69b3c704101d17b2 (patch) | |
tree | 270c0b02be3b374cc36f799c7962d772a3b2e764 | |
parent | d4e4fdb5ce5ccc067b3d35d877f7a7d978869517 (diff) | |
download | busybox-w32-d1f222c3b00839b289f5d04a69b3c704101d17b2.tar.gz busybox-w32-d1f222c3b00839b289f5d04a69b3c704101d17b2.tar.bz2 busybox-w32-d1f222c3b00839b289f5d04a69b3c704101d17b2.zip |
Change BB_EXTRA_VERSION: now it needs to contain any spaces/parenthesis
Before this change, BB_EXTRA_VERSION of "" resulted in:
"BusyBox v1.28.0.git () multi-call binary"
message, after the fix it is:
"BusyBox v1.28.0.git multi-call binary"
While at it, eliminate BB_BT and BANNER single-use macros.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | Makefile.flags | 2 | ||||
-rw-r--r-- | libbb/messages.c | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/Makefile.flags b/Makefile.flags index 65021de25..f3c897b06 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -15,7 +15,7 @@ CPPFLAGS += \ | |||
15 | -include include/autoconf.h \ | 15 | -include include/autoconf.h \ |
16 | -D_GNU_SOURCE -DNDEBUG \ | 16 | -D_GNU_SOURCE -DNDEBUG \ |
17 | $(if $(CONFIG_LFS),-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) \ | 17 | $(if $(CONFIG_LFS),-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) \ |
18 | -D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP | 18 | -D"BB_VER=KBUILD_STR($(BB_VER))" |
19 | 19 | ||
20 | CFLAGS += $(call cc-option,-Wall,) | 20 | CFLAGS += $(call cc-option,-Wall,) |
21 | CFLAGS += $(call cc-option,-Wshadow,) | 21 | CFLAGS += $(call cc-option,-Wshadow,) |
diff --git a/libbb/messages.c b/libbb/messages.c index cb0836de8..27fd14ecc 100644 --- a/libbb/messages.c +++ b/libbb/messages.c | |||
@@ -14,12 +14,10 @@ | |||
14 | 14 | ||
15 | /* allow version to be extended, via CFLAGS */ | 15 | /* allow version to be extended, via CFLAGS */ |
16 | #ifndef BB_EXTRA_VERSION | 16 | #ifndef BB_EXTRA_VERSION |
17 | #define BB_EXTRA_VERSION BB_BT | 17 | #define BB_EXTRA_VERSION " ("AUTOCONF_TIMESTAMP")" |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | #define BANNER "BusyBox v" BB_VER " (" BB_EXTRA_VERSION ")" | 20 | const char bb_banner[] ALIGN1 = "BusyBox v" BB_VER BB_EXTRA_VERSION; |
21 | |||
22 | const char bb_banner[] ALIGN1 = BANNER; | ||
23 | 21 | ||
24 | 22 | ||
25 | const char bb_msg_memory_exhausted[] ALIGN1 = "out of memory"; | 23 | const char bb_msg_memory_exhausted[] ALIGN1 = "out of memory"; |