Fix spurious rebuilds from dumped vars

Commit f49f452f2 greatly tidied up the file, which is nice, but also
introduced some whitespace around the first argument to vars-prereq.
In Make, this causes chaos!

In particular, we ended up checking whether a variable called
something like "$(last-   gen  -vars-loaded)" was defined. It isn't,
but $(last-gen-vars-loaded) is.

Call strip in the vars-prereq function to get rid of the whitespace at
the "entry point" for all this machinery.
This commit is contained in:
Rupert Swarbrick 2022-04-13 22:16:56 +01:00 committed by hcallahan-lowrisc
parent 9e0e0cd014
commit 903d895750

View file

@ -215,7 +215,7 @@ FORCE:
# might print a message to the console explaining why we're rebuilding TGT).
#
# Call it as $(call vars-prereq,X,TGT,VS)
vars-prereq = $(if $(call vars-differ,$(1),$(2),$(3)),FORCE,)
vars-prereq = $(if $(call vars-differ,$(call strip,$(1)),$(2),$(3)),FORCE,)
###############################################################################
# Get a list of tests and seeds