Change BB_EXTRA_VERSION: now it needs to contain any spaces/parenthesis
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 4 Jul 2017 14:01:12 +0000 (16:01 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 4 Jul 2017 14:01:12 +0000 (16:01 +0200)
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>
Makefile.flags
libbb/messages.c

index 65021de25ffb3d7c2600d2be7fd3f57e4a8622b8..f3c897b0687f035f2649a292b68f888afcbc7f43 100644 (file)
@@ -15,7 +15,7 @@ CPPFLAGS += \
        -include include/autoconf.h \
        -D_GNU_SOURCE -DNDEBUG \
        $(if $(CONFIG_LFS),-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) \
-       -D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP
+       -D"BB_VER=KBUILD_STR($(BB_VER))"
 
 CFLAGS += $(call cc-option,-Wall,)
 CFLAGS += $(call cc-option,-Wshadow,)
index cb0836de88d10d8d1225ca29a8339a856efe4447..27fd14ecccccca367ef96eea792e8a4cb4d8b943 100644 (file)
 
 /* allow version to be extended, via CFLAGS */
 #ifndef BB_EXTRA_VERSION
-#define BB_EXTRA_VERSION BB_BT
+#define BB_EXTRA_VERSION " ("AUTOCONF_TIMESTAMP")"
 #endif
 
-#define BANNER "BusyBox v" BB_VER " (" BB_EXTRA_VERSION ")"
-
-const char bb_banner[] ALIGN1 = BANNER;
+const char bb_banner[] ALIGN1 = "BusyBox v" BB_VER BB_EXTRA_VERSION;
 
 
 const char bb_msg_memory_exhausted[] ALIGN1 = "out of memory";