[PATCH v2 3/6] Makefile: Depend only on required of-platdata files

Simon Glass sjg at chromium.org
Fri Mar 26 04:18:21 CET 2021


When OF_PLATDATA_INST is enabled, we need dt-uclass.c and dt-device.c for
the build to work. When OF_PLATDATA_INST is not enabled, we only need
dt-plat.c

Update the Makefile rules to indicate this.

At present all files are generated and compiled regardless of which are
actually needed.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 scripts/Makefile.spl | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list