defaultenv: Fix dependencies
The defaultenv should be rebuilt once a file in it has changed.
the genenv script always generates the environment file to a temporary
file. Only if it has changed to the last target file the temporary file
is moved over the target file. This means we always have to call genenv,
thus replace "if_changed" with "cmd".
With this dependencies are correctly tracked. New or changed files
result in new image builds whereas unchanged environments do not
unnecessarily result in new images.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 9d9b87e commit 0293f7489686b9838185a38f2eb0125a9a95f5e0
@Sascha Hauer Sascha Hauer authored on 20 Feb 2019
Showing 2 changed files
View
defaultenv/Makefile
View
scripts/Makefile.lib