build: support adding version code to file names (FS#323)
authorJo-Philipp Wich <jo@mein.io>
Mon, 5 Dec 2016 15:44:13 +0000 (16:44 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 9 Dec 2016 16:16:43 +0000 (17:16 +0100)
commit9791fb2ac25fca2fb64a2d1ccbb5e7721a9165ec
treee52d46f77ab04cf252a6a6cc1d1eba733a6355df
parentee5a6c10410b25adc6d400780953388035135fed
build: support adding version code to file names (FS#323)

Now that the VERSION_NUMBER variable holds the human friendly name and not
the commit ID anymore, we need to support adding the revision ID as well.

Introduce a new config variable CONFIG_VERSION_CODE_FILENAMES which, if set,
causes the resulting file names to contain a commit ID designation as printed
by scripts/getver.sh.

Also sanitize the input variables to ensure that the resulting strings are
lowercased and no not contain spaces.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
include/image.mk
package/base-files/image-config.in