diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-01-06 11:04:07 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-01-06 14:50:48 +0100 |
commit | ce8a9a5ccdd1cf8d98a370f4916397c183456cc9 (patch) | |
tree | e55c5b47694f375a85bfe51dddbb9de38351883c /rules/ptxdist-version.in | |
parent | 70fbff01c7ce191452964e7e5123e61e3f88f466 (diff) | |
download | ptxdist-ce8a9a5ccdd1cf8d98a370f4916397c183456cc9.tar.gz ptxdist-ce8a9a5ccdd1cf8d98a370f4916397c183456cc9.tar.xz |
[ptxdist] adopt config file version handling to cope with dynamic fullversion
In the past ptxdist's fullversion was replaced by configure in these files:
- platforms/ptxdist-version.in.in (PLATFORMCONFIG_VERSION)
- rules/ptxdist-version.in.in (CONFIGFILE_VERSION)
resulting in:
- platforms/ptxdist-version.in
- rules/ptxdist-version.in
However the fullversion is rather dynamic now since it can hold version
information from the version control system. ptxdist refuses to run if
the versions don't match. During development this may change quite
often which is probably too annoying for the developers.
This patch introduces two new version variables:
- PTXDIST_VERSION_CFG_SCM
- PTXDIST_VERSION_CFG_FULL
The _SCM variable holds "-git" if ptxdist isn't release. For released
versions _SCM is empty.
PTXDIST_VERSION_CFG_FULL contains '$year.$month.$bugfix$scm'
(scm is PTXDIST_VERSION_CFG_SCM), for example:
'2010.01.0-git' for modifies i.e. dirty '2010.01.0' release.
Further we don't no longer modify the "*/ptxdist-version.in.in", we use
the kconfig 'option env="VAR"' to get the correct version from the
environment.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/ptxdist-version.in')
-rw-r--r-- | rules/ptxdist-version.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rules/ptxdist-version.in b/rules/ptxdist-version.in new file mode 100644 index 000000000..4c4c77577 --- /dev/null +++ b/rules/ptxdist-version.in @@ -0,0 +1,9 @@ +## SECTION=ptxdist_version + +config CONFIGFILE_VERSION_DEFAULT + string + option env="PTXDIST_VERSION_CFG_FULL" + +config CONFIGFILE_VERSION + string + default CONFIGFILE_VERSION_DEFAULT |