pkg-generic: substitute colon and space out of PKG_VERSION
authorArnout Vandecappelle <arnout@mind.be>
Wed, 22 Apr 2015 23:08:08 +0000 (01:08 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 25 Apr 2015 08:30:52 +0000 (10:30 +0200)
commitf17222f506fb4dabf2ecb83ce9f6791c48552d6c
treeb4005158db2e580092255dbf1863d5b92c39976b
parentd9ae279e6a0232dc8af9856e229a57148bf222e9
pkg-generic: substitute colon and space out of PKG_VERSION

Using a colon or a space in a make target doesn't work, so they have to
be filtered out of the PKG_VERSION variable just like the / currently
already is.

This will be needed for date-based CVS versions.

Add a helper macro 'sanitize' in pkg-utils.mk to implement this. This
also moves the strip to the inner level for the target branch.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkg-generic.mk
package/pkg-utils.mk