From: Yann E. MORIN Date: Sun, 31 Oct 2010 16:35:12 +0000 (+0100) Subject: Makefile: compute the version string for all to use X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8258df279ab3e87ae1e9e63074ac93c8f3cf73c1;p=buildroot.git Makefile: compute the version string for all to use Some packages use the buildroot version string (to set their own version string). Computing the version string globally will makes it easy for them to use it instead of re-computing it in every packages. Signed-off-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- diff --git a/Makefile b/Makefile index 8d53778b30..d6a76282d3 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,10 @@ CONFIG_CONFIG_IN=Config.in CONFIG=package/config DATE:=$(shell date +%Y%m%d) +# Compute the full local version string so packages can use it as-is +# Need to export it, so it can be got from environment in children (eg. mconf) +export BR2_VERSION_FULL:=$(BR2_VERSION)$(shell $(TOPDIR)/scripts/setlocalversion) + noconfig_targets:=menuconfig nconfig gconfig xconfig config oldconfig randconfig \ defconfig %_defconfig savedefconfig allyesconfig allnoconfig silentoldconfig release \ randpackageconfig allyespackageconfig allnopackageconfig \