remove __DATE__ and __TIME__, make builds reproducible. 92/head
authorOleksij Rempel <linux@rempel-privat.de>
Fri, 16 Sep 2016 07:17:23 +0000 (09:17 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Fri, 16 Sep 2016 07:22:20 +0000 (09:22 +0200)
__DATE__ and __TIME__ are mostly useless information.
Even more, it makes builds not reprodusable which is evil.

Read more about reproducible builds here:
https://reproducible-builds.org/

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/magpie_fw_dev/target/inc/k2/k2/rom_cfg.h
target_firmware/magpie_fw_dev/target/inc/magpie/magpie/rom_cfg.h
target_firmware/magpie_fw_dev/target/init/init.c

index f5b88f4fcef6ff4c1120f50a4213611435f143d2..3ff173a9d10d77d0ed6df7d8169afb74d39164ce 100755 (executable)
 #define ATH_VER_MINOR_NUMBER        "0"
 #define ATH_VER_BUILD_NUMBER        "3"
 
-#define ATH_VER_DATES               __DATE__" "__TIME__
-
 #define ATH_VERSION_STR             "["ATH_VER_RELEASE_CODE       "."  \
        ATH_VER_PLATFORM_NUMBER "."                                     \
        ATH_VER_MAJOR_NUMBER    "."                                     \
        ATH_VER_MINOR_NUMBER    "."                                     \
-       ATH_VER_BUILD_NUMBER    "] "                                    \
-       ATH_VER_DATES
+       ATH_VER_BUILD_NUMBER    "]"
 
 /* ROM Code Version (16 bit)
  * Bit 15   : 0 means ASIC, 1 means FPGA
index a326e6d245d86e3cf28b67ab08cedf210fdc8d99..fae63fdcfa746e8bc847da1439ae23d81828a3d7 100755 (executable)
 #define ATH_VER_MINOR_NUMBER        "0"
 #define ATH_VER_BUILD_NUMBER        "3"
 
-#define ATH_VER_DATES               __DATE__" "__TIME__
-
 #define ATH_VERSION_STR             "["ATH_VER_RELEASE_CODE       "." \
                                     ATH_VER_PLATFORM_NUMBER "." \
                                     ATH_VER_MAJOR_NUMBER    "." \
                                     ATH_VER_MINOR_NUMBER    "." \
-                                    ATH_VER_BUILD_NUMBER    "] " \
-                                    ATH_VER_DATES
+                                    ATH_VER_BUILD_NUMBER    "]"
 
 /* ROM Code Version (16 bit)
  * Bit 15   : 0 means ASIC, 1 means FPGA
index 87a7cabb5d28442f798d0babba2aaabe03b6cc8b..3855b34d7484093ee9b371539683f08f4747fde2 100755 (executable)
@@ -65,8 +65,6 @@ uint32_t idle_cnt = 0;
 int (* save_cmnos_printf)(const char * fmt, ...);
 #endif
 
-#define ATH_DATE_STRING     __DATE__" "__TIME__
-
 static void idle_task();
 
 #if defined(PROJECT_MAGPIE)