d320fe56bd
Since we have the version number in a separate file at the root level, we should not need to duplicate this in rte_version.h too. Best approach here is to move the macros for specifying the year/month/etc. parts from the version header file to the build config file - leaving the other utility macros for e.g. printing the version string, where they are. For "make", this is done by having a little bit of awk parse the version file and pass the results through to the preprocessor for the config generation stage. For "meson", this is done by parsing the version and adding it to the standard dpdk_conf object. In both cases, we need to append a large number - in this case "99", previously 16 in original code - to the version number when we want to do version number comparisons. Without this, the release version e.g. 19.05.0 will compare as less than it's RC's e.g. 19.05.0-rc4. With it, the comparison is correct as "19.05.0.99 > 19.05.0-rc4.99". Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org> Acked-by: Thomas Monjalon <thomas@monjalon.net> |
||
---|---|---|
.. | ||
arm | ||
ppc_64 | ||
x86 | ||
common_armv8a_linux | ||
common_base | ||
common_freebsd | ||
common_linux | ||
defconfig_arm64-armv8a-linux-clang | ||
defconfig_arm64-armv8a-linux-gcc | ||
defconfig_arm64-armv8a-linuxapp-clang | ||
defconfig_arm64-armv8a-linuxapp-gcc | ||
defconfig_arm64-bluefield-linux-gcc | ||
defconfig_arm64-bluefield-linuxapp-gcc | ||
defconfig_arm64-dpaa2-linux-gcc | ||
defconfig_arm64-dpaa2-linuxapp-gcc | ||
defconfig_arm64-dpaa-linux-gcc | ||
defconfig_arm64-dpaa-linuxapp-gcc | ||
defconfig_arm64-stingray-linux-gcc | ||
defconfig_arm64-stingray-linuxapp-gcc | ||
defconfig_arm64-thunderx-linux-gcc | ||
defconfig_arm64-thunderx-linuxapp-gcc | ||
defconfig_arm64-xgene1-linux-gcc | ||
defconfig_arm64-xgene1-linuxapp-gcc | ||
defconfig_arm-armv7a-linux-gcc | ||
defconfig_arm-armv7a-linuxapp-gcc | ||
defconfig_i686-native-linux-gcc | ||
defconfig_i686-native-linux-icc | ||
defconfig_i686-native-linuxapp-gcc | ||
defconfig_i686-native-linuxapp-icc | ||
defconfig_ppc_64-power8-linux-gcc | ||
defconfig_ppc_64-power8-linuxapp-gcc | ||
defconfig_x86_64-native-bsdapp-clang | ||
defconfig_x86_64-native-bsdapp-gcc | ||
defconfig_x86_64-native-freebsd-clang | ||
defconfig_x86_64-native-freebsd-gcc | ||
defconfig_x86_64-native-linux-clang | ||
defconfig_x86_64-native-linux-gcc | ||
defconfig_x86_64-native-linux-icc | ||
defconfig_x86_64-native-linuxapp-clang | ||
defconfig_x86_64-native-linuxapp-gcc | ||
defconfig_x86_64-native-linuxapp-icc | ||
defconfig_x86_x32-native-linux-gcc | ||
defconfig_x86_x32-native-linuxapp-gcc | ||
meson.build | ||
rte_config.h |