kbuild: make sure we clean up DTB temporary files
PATCH 1/1 kbuild: make sure we clean up DTB temporary files
Various temporary files used when building DTB files were not suffixed with .tmp and therefore were not cleaned up by "make clean".
Signed-off-by Ian Campbell <[email protected]>
Cc Michal Marek <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Rob Herring <[email protected]>
Cc Grant Likely <[email protected]>
--- scripts/Makefile.lib | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
scripts/Makefile.lib +4 -4
@@ -149,7 +149,7 @@ cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \ ld_flags = $(LDFLAGS) $(ldflags-y) -dtc_cpp_flags = -Wp,-MD,$(depfile).pre -nostdinc \ +dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \ -I$(srctree)/arch/$(SRCARCH)/boot/dts \ -I$(srctree)/arch/$(SRCARCH)/boot/dts/include \ -undef -D__DTS__
@@ -265,13 +265,13 @@ quiet_cmd_dtc = DTC $@ cmd_dtc = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \ $(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 \ -i $(srctree)/arch/$(SRCARCH)/boot/dts $(DTC_FLAGS) \ - -d $(depfile).dtc $(dtc-tmp) ; \ - cat $(depfile).pre $(depfile).dtc > $(depfile) + -d $(depfile).dtc.tmp $(dtc-tmp) ; \ + cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) $(obj)/%.dtb: $(src)/%.dts FORCE $(call if_changed_dep,dtc) -dtc-tmp = $(subst $(comma),_,$(dot-target).dts) +dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp) # Bzip2 # ---------------------------------------------------------------------------
Signature · 1 line
1.7.10.4
Quoted 2 lines · Ian Campbell
Various temporary files used when building DTB files were not suffixed with .tmp and therefore were not cleaned up by "make clean".
Reviewed-by Stephen Warren <[email protected]>
Tested-by Stephen Warren <[email protected]>
Grant Likely
AppliedQuoted 6 lines · Stephen Warren
Quoted 2 lines · Ian Campbell
Various temporary files used when building DTB files were not suffixed with .tmp and therefore were not cleaned up by "make clean".
Reviewed-by Stephen Warren <[email protected]>Tested-by Stephen Warren <[email protected]>
Merged, thanks.
g.