diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-02-11 16:34:43 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-02-11 16:34:47 +0100 |
commit | 22890405e201880469211a20e486683bc4145732 (patch) | |
tree | 0c7a7642ca83cd9debcf5d077a1f987877702b91 /rules/dtc.make | |
parent | d3208e807185ec4f8b71cdc178e42cc89c3315f0 (diff) | |
download | ptxdist-22890405e201880469211a20e486683bc4145732.tar.gz ptxdist-22890405e201880469211a20e486683bc4145732.tar.xz |
dtc: abort when trying to generate a dtb without dts
When generating a dtb, the corresponding dts is taken from the make
dependencies. Misconfiguration can result in an empty dts path.
In that case print an error and abort.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/dtc.make')
-rw-r--r-- | rules/dtc.make | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rules/dtc.make b/rules/dtc.make index 1fddcb752..e853307cc 100644 --- a/rules/dtc.make +++ b/rules/dtc.make @@ -26,6 +26,9 @@ ptx/dtb = $(notdir $(basename $(strip $(1)))).dtb %.dtb: @$(call targetinfo) @echo CPP `ptxd_print_path "$<.tmp"` + @if [ -z "$(strip $<)" ]; then \ + ptxd_bailout "Device-tree for `ptxd_print_path '$@'` undefined!"; \ + fi @cpp \ -Wp,-MD,$(STATEDIR)/dtc.dtc.deps \ -Wp,-MT,$<.tmp \ |