image: fix device profile specific COMPILE targets
authorMichael Pratt <mcpratt@pm.me>
Tue, 22 Nov 2022 00:37:39 +0000 (00:37 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 19 Dec 2022 12:27:35 +0000 (12:27 +0000)
commit1bff0752bd5e7feb0f311224a09b3bf217a9aeb3
tree2814f3624caca228376f7b2673de4eeb92a713da
parent93ae4353cdf651ef0b5d8a4d40a6c29d8d3f655b
image: fix device profile specific COMPILE targets

Commit a01d23e75 ("image: always rebuild kernel loaders")
is a step in the right direction, but exposed some issues
and regressions in the makefile.

Some of the files made by device specific COMPILE targets
start with an "append" command (i.e. >> instead of > redirection)
and if the file already exists, the target file is the
input to itself before the first recipe-specified input.

Fixes: a01d23e75 ("image: always rebuild kernel loaders")
Fixes: a7fb589e8 ("image: always rebuild kernel loaders")
Signed-off-by: Michael Pratt <mcpratt@pm.me>
include/image.mk