summaryrefslogtreecommitdiffstats
path: root/scripts/kernel
Commit message (Collapse)AuthorAgeFilesLines
* setlocalversion: not all git version support the '-c' optionMichael Olbrich2014-07-311-2/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* setlocalversion: use a fixed abbrev length for the version stringptxdist-2014.07.0Michael Olbrich2014-07-031-2/+2
| | | | | | Otherwise, this depends on the local settings. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* setlocalversion: replace echo -n with printfAndreas Bießmann2012-01-041-1/+1
| | | | | | | | | | | | | | | | | | | On some systems the 'echo -n "$v"' lead to corrupted $PTXDIST_VERSION_FULL cause the builtin echo is used which does not know about -n switch. Instead of just removing the -n switch use printf as the rest of this script do. Before this patch my version looks like this: ---8<--- $ ptxdist --version -n 2011.12.0-00047-g9849e20 --->8--- Signed-off-by: Andreas Bießmann <andreas@biessmann.de> cc: Michael Olbrich <m.olbrich@pengutronix.de> cc: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [setlocalversion] hopefully fix version generation for releasesptxdist-2010.05.0Marc Kleine-Budde2010-05-031-1/+1
| | | | | | Without this patch the version is "ptxdist-2010.05.0" not "2010.05.0". Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [setlocalversion] fix version generation for releasesMarc Kleine-Budde2010-05-031-2/+7
| | | | | | | Without this patch, the version of the release will be printed as: ptxdist-2010.05.0-00000-2010.05.0 Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [setlocalversion] if tree contains no tags print compatible versionMarc Kleine-Budde2010-04-211-2/+2
| | | | | | ...in the form of: ????.??.?-?-g2e69f58-dirty Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] rework version generationMarc Kleine-Budde2010-04-021-20/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch aims to fix some problems of the version handling of ptxdist which were introducted with switching to timed releases: a) The version is specified in "configure.ac", the "local version" ("00003-gbf29f16") is generated by "setlocalversion". "setlocalversion" generates it's ouput relative to the latest tag. This leads to strange version strings, after creating a tag, and forgetting to run "./autogen.sh && ./configure && make". b) The ptxdist created with a "make dist", even if a not tagged version, always thinks it's a release. c) BSPs working with "master" need a migrate after each release. Because the compatibility checker uses year and month. The problems are^Wshould be fixed with these changes: a) "setlocalversion" now generates the whole full version, e.g.: "2010.04.0-00003-gbf29f16". "configure.ac" uses "m4_esyscmd" to figure out the current version while running "configure". (Yes, "configure"). b) A file ".tarball-version" is added to the tarball to track the version while creating the tarball (same goes for the installation). "setlocalversion" will use the version information from ".tarball-version" c) If both ptxdist and config file are not using a release, i.e. their versions an "appendix", we say it's compatibe, too. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [setlocalversion] import scripts/setlocalversion from the linux kernelMarc Kleine-Budde2010-01-061-0/+82
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>