Makefile: Correct the rule removing old of-platdata files
authorSimon Glass <sjg@chromium.org>
Wed, 3 Aug 2022 18:08:29 +0000 (12:08 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 10 Aug 2022 17:38:29 +0000 (13:38 -0400)
commitc252fa5cdbb421bbcca750866e5c5f9f6c8c1c34
tree7fa30c95387980e79cf9c9519325a761b1cb21d8
parent2349ecffec5fc91d3c8964725865132c73d68f15
Makefile: Correct the rule removing old of-platdata files

This makes use of makefile variables that don't exist anymore. Fix it and
also remove the object files in that directory.

Also add FORCE as a dependency as required by the if_changed macro.

Fixes 354d2324635 ("Makefile: Remove old of-platdata files before regenerating")
Reported-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
scripts/Makefile.spl