From 8b61ebbd9a264e08bceb71987020acc496937f4c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 14 May 2016 05:25:11 +0000 Subject: [PATCH] litecross: rm stale kernel header src/obj dirs before making new ones --- litecross/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litecross/Makefile b/litecross/Makefile index 485eae1..beb9e0d 100644 --- a/litecross/Makefile +++ b/litecross/Makefile @@ -166,6 +166,7 @@ all: kernel-headers install: install-kernel-headers kernel-headers: | obj_kernel_headers src_kernel_headers: | $(LINUX_SRCDIR) + rm -rf $@.tmp $@ mkdir -p $@.tmp/arch/$(LINUX_ARCH) cp -R $(LINUX_SRCDIR)/arch/$(LINUX_ARCH)/include $@.tmp/arch/$(LINUX_ARCH) cp -R $(LINUX_SRCDIR)/arch/$(LINUX_ARCH)/Makefile $@.tmp/arch/$(LINUX_ARCH) @@ -174,7 +175,7 @@ src_kernel_headers: | $(LINUX_SRCDIR) cp -R $(LINUX_SRCDIR)/Makefile $@.tmp mv $@.tmp $@ obj_kernel_headers: | src_kernel_headers - rm -rf $@.tmp + rm -rf $@.tmp $@ cd src_kernel_headers && $(MAKE) ARCH=$(LINUX_ARCH) INSTALL_HDR_PATH=$(PWD)/$@.tmp headers_install mv $@.tmp $@ install-kernel-headers: | obj_kernel_headers