image: fix device profile specific COMPILE targets
authorMichael Pratt <mcpratt@pm.me>
Tue, 22 Nov 2022 00:37:39 +0000 (00:37 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 21 Dec 2022 23:14:30 +0000 (00:14 +0100)
commitda79da3ac18995885e3fe0e540ce300ad6d768be
tree9df00b45efd22d868c8471517b11627adbaee16a
parent9aa95bbebb07554ccf6f611ead081f85e1f8b902
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>
(cherry picked from commit 1bff0752bd5e7feb0f311224a09b3bf217a9aeb3)
include/image.mk