From: Oleksij Rempel Date: Fri, 16 Sep 2016 07:17:23 +0000 (+0200) Subject: remove __DATE__ and __TIME__, make builds reproducible. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=90e55d1c333c48c5bd46cf1b32924f7341f2a00b;p=open-ath9k-htc-firmware.git remove __DATE__ and __TIME__, make builds reproducible. __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 --- diff --git a/target_firmware/magpie_fw_dev/target/inc/k2/k2/rom_cfg.h b/target_firmware/magpie_fw_dev/target/inc/k2/k2/rom_cfg.h index f5b88f4..3ff173a 100755 --- a/target_firmware/magpie_fw_dev/target/inc/k2/k2/rom_cfg.h +++ b/target_firmware/magpie_fw_dev/target/inc/k2/k2/rom_cfg.h @@ -62,14 +62,11 @@ #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 diff --git a/target_firmware/magpie_fw_dev/target/inc/magpie/magpie/rom_cfg.h b/target_firmware/magpie_fw_dev/target/inc/magpie/magpie/rom_cfg.h index a326e6d..fae63fd 100755 --- a/target_firmware/magpie_fw_dev/target/inc/magpie/magpie/rom_cfg.h +++ b/target_firmware/magpie_fw_dev/target/inc/magpie/magpie/rom_cfg.h @@ -62,14 +62,11 @@ #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 diff --git a/target_firmware/magpie_fw_dev/target/init/init.c b/target_firmware/magpie_fw_dev/target/init/init.c index 87a7cab..3855b34 100755 --- a/target_firmware/magpie_fw_dev/target/init/init.c +++ b/target_firmware/magpie_fw_dev/target/init/init.c @@ -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)