解决方法
构建日期包含在版本中,请参阅init version.c:
const char linux_banner[] = "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
和UTS_VERSION在include / linux / compile.h中定义:
/* This file is auto generated,version 1 */ /* PREEMPT */ #define UTS_MACHINE "arm" #define UTS_VERSION "#1 PREEMPT Mon Jun 29 10:49:17 CEST 2009" #define LINUX_COMPILE_TIME "10:49:17" #define LINUX_COMPILE_BY "cynove" #define LINUX_COMPILE_HOST "jp" #define LINUX_COMPILE_DOMAIN "evonyc" #define LINUX_COMPILER "gcc version 4.3.2 (crosstool-NG-1.4.0) "
compile.h由scripts / mkcompile_h生成,您可以在其中找到以下行:
UTS_VERSION="$UTS_VERSION $CONFIG_FLAGS `LC_ALL=C LANG=C date`"
通过从前一行中删除日期,您应该能够摆脱构建时依赖性.