version.mk: ensure that %S is always populated with a subtarget identifier, fallback to "generic" if no subtarget exists

SVN-Revision: 33534
This commit is contained in:
Jo-Philipp Wich 2012-09-24 18:26:48 +00:00
parent c7c649126f
commit 1cd6237979

View File

@ -40,4 +40,4 @@ VERSION_SED:=$(SED) 's,%U,$(VERSION_REPO),g' \
-e 's,%d,\L$(subst $(space),_,$(VERSION_DIST)),g' \ -e 's,%d,\L$(subst $(space),_,$(VERSION_DIST)),g' \
-e 's,%R,$(REVISION),g' \ -e 's,%R,$(REVISION),g' \
-e 's,%T,$(BOARD),g' \ -e 's,%T,$(BOARD),g' \
-e 's,%S,$(BOARD)$(if $(SUBTARGET),/$(SUBTARGET)),g' \ -e 's,%S,$(BOARD)/$(if $(SUBTARGET),$(SUBTARGET),generic),g' \