diff options
author | Lionel Landwerlin <llandwerlin@gmail.com> | 2010-09-19 01:21:15 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-09-20 16:24:54 +0200 |
commit | 763822e874fd8d39b591feaa9639f76183897fb7 (patch) | |
tree | 8821b09933eeff0ce61bdb79008256e666fcb6e7 | |
parent | 785fef108ebd940aeabe7e5c2d6d5f54f98e6146 (diff) | |
download | buildroot-novena-763822e874fd8d39b591feaa9639f76183897fb7.tar.gz buildroot-novena-763822e874fd8d39b591feaa9639f76183897fb7.zip |
Fix <PKG_NAME>_VERSION variable setup
Commit 993e51bc22f508fbaf39c5c49fd0595fc5c56013 introduced a problem
to compute <PKG_NAME>_VERSION variable when PKG_NAME start with
'HOST_'.
Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r-- | package/Makefile.package.in | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/package/Makefile.package.in b/package/Makefile.package.in index 58a9a51dc..377df65c0 100644 --- a/package/Makefile.package.in +++ b/package/Makefile.package.in @@ -337,22 +337,22 @@ define GENTARGETS_INNER $(2)_TYPE = $(5) $(2)_NAME = $(1) +# Keep the package version that may contain forward slashes in the _DL_VERSION +# variable, then replace all forward slashes ('/') by underscores ('_') to +# sanitize the package version that is used in paths, directory and file names. +# Forward slashes may appear in the package's version when pointing to a +# version control system branch or tag, for example remotes/origin/1_10_stable. +$(2)_DL_VERSION = $($(2)_VERSION) ifndef $(2)_VERSION ifdef $(3)_VERSION $(2)_VERSION = $($(3)_VERSION) else $(2)_VERSION = undefined endif +else + $(2)_VERSION = $(subst /,_,$($(2)_VERSION)) endif -# Keep the package version that may contain forward slashes in the _DL_VERSION -# variable, then replace all forward slashes ('/') by underscores ('_') to -# sanitize the package version that is used in paths, directory and file names. -# Forward slashes may appear in the package's version when pointing to a -# version control system branch or tag, for example remotes/origin/1_10_stable. -$(2)_DL_VERSION = $($(2)_VERSION) -$(2)_VERSION = $(subst /,_,$($(2)_VERSION)) - $(2)_BASE_NAME = $(1)-$$($(2)_VERSION) $(2)_DL_DIR = $$(DL_DIR)/$$($(2)_BASE_NAME) $(2)_DIR = $$(BUILD_DIR)/$$($(2)_BASE_NAME) |