diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-02-11 16:43:11 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-02-11 16:43:11 +0100 |
commit | 35ebfde979831dbfa5586c66856d5336164fcf87 (patch) | |
tree | d94631dafd53387166f1e6cf8bd858f06b5d53da /rules/dtc.make | |
parent | 22890405e201880469211a20e486683bc4145732 (diff) | |
download | ptxdist-35ebfde979831dbfa5586c66856d5336164fcf87.tar.gz ptxdist-35ebfde979831dbfa5586c66856d5336164fcf87.tar.xz |
dtc: move temporary device tree to statedir
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/dtc.make')
-rw-r--r-- | rules/dtc.make | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rules/dtc.make b/rules/dtc.make index e853307cc..191c691a4 100644 --- a/rules/dtc.make +++ b/rules/dtc.make @@ -25,13 +25,13 @@ 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 + @echo CPP `ptxd_print_path "$(STATEDIR)/$(notdir $<).tmp"` @cpp \ -Wp,-MD,$(STATEDIR)/dtc.dtc.deps \ - -Wp,-MT,$<.tmp \ + -Wp,-MT,$(STATEDIR)/$(notdir $<).tmp \ -nostdinc \ -P \ -I$(dir $<) \ @@ -39,7 +39,7 @@ ptx/dtb = $(notdir $(basename $(strip $(1)))).dtb -I$(KERNEL_DIR)/arch/$(GENERIC_KERNEL_ARCH)/boot/dts/include \ -I$(KERNEL_DIR)/include \ -undef -D__DTS__ -x assembler-with-cpp \ - -o $<.tmp \ + -o $(STATEDIR)/$(notdir $<).tmp \ $< @echo DTC `ptxd_print_path "$@"` @if $(PTXCONF_SYSROOT_HOST)/bin/dtc -h 2>&1 | grep -q "^[[:space:]]-i$$"; then \ @@ -50,7 +50,7 @@ ptx/dtb = $(notdir $(basename $(strip $(1)))).dtb $$dtc_include \ -d $(PTXDIST_TEMPDIR)/dtc.dtc.deps \ -I dts -O dtb -b 0 \ - -o "$@" "$<.tmp" + -o "$@" "$(STATEDIR)/$(notdir $<).tmp" @awk '{ \ printf "%s", $$1 ; \ for (i = 2; i <= NF; i++) { \ |