Skip to content

Commit

Permalink
rules.mk: make PKG_CONFIG_DEPENDS properly track string values
Browse files Browse the repository at this point in the history
The confvar macro is adjusted to not only consider if a variable has a
value or not, but also the value itself. Instead of creating a string of
'y' and 'n' characters, all variable names and values are concatenated
and hashed.

Signed-off-by: Matthias Schiffer <[email protected]>
  • Loading branch information
neocturne committed Feb 27, 2017
1 parent d49ddcd commit 5ef0854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ empty:=
space:= $(empty) $(empty)
comma:=,
merge=$(subst $(space),,$(1))
confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n)))
confvar=$(shell echo '$(foreach v,$(1),$(v)=$(subst ','\'',$($(v))))' | $(STAGING_DIR_HOST)/bin/mkhash md5)
strip_last=$(patsubst %.$(lastword $(subst .,$(space),$(1))),%,$(1))

paren_left = (
Expand Down

0 comments on commit 5ef0854

Please sign in to comment.