| To: | linux-mips@linux-mips.org, ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH 05/15] MIPS: Netlogic: keep .dtb/.dtb.S until make clean |
| From: | "Jayachandran C" <jchandra@broadcom.com> |
| Date: | Wed, 31 Oct 2012 18:31:31 +0530 |
| Cc: | "Jayachandran C" <jchandra@broadcom.com> |
| In-reply-to: | <cover.1351688140.git.jchandra@broadcom.com> |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| References: | <cover.1351688140.git.jchandra@broadcom.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
Provide a .SECONDARY entry for these intermediate files. Otherwise make deletes them, and these files are regenerated for every rebuild. Signed-off-by: Jayachandran C <jchandra@broadcom.com> --- arch/mips/netlogic/dts/Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/mips/netlogic/dts/Makefile b/arch/mips/netlogic/dts/Makefile index 67ae3fe2..40502ff 100644 --- a/arch/mips/netlogic/dts/Makefile +++ b/arch/mips/netlogic/dts/Makefile @@ -1,4 +1,14 @@ -obj-$(CONFIG_DT_XLP_EVP) := xlp_evp.dtb.o +DTS_FILE = xlp_evp.dts +DTB_FILE = $(patsubst %.dts, %.dtb, $(DTS_FILE)) -$(obj)/%.dtb: $(obj)/%.dts - $(call if_changed,dtc) +# built-in dtb +obj-$(CONFIG_DT_XLP_EVP) := $(DTB_FILE).o + +$(obj)/%.dtb: $(src)/%.dts + $(call if_changed_dep,dtc) + +# Keep intermediate files .dtb and .dtb.S, delete them only at make clean +KEEP_FILES = $(DTB_FILE) $(DTB_FILE).S +clean-files += $(KEEP_FILES) + +.SECONDARY: $(addprefix $(obj)/, $(KEEP_FILES)) -- 1.7.9.5 |
| Previous by Date: | [PATCH 09/15] MIPS: Netlogic: Pass cpuid to early_init_secondary, Jayachandran C |
|---|---|
| Next by Date: | [PATCH 06/15] MIPS: Netlogic: Move fdt init to plat_mem_setup, Jayachandran C |
| Previous by Thread: | [PATCH 09/15] MIPS: Netlogic: Pass cpuid to early_init_secondary, Jayachandran C |
| Next by Thread: | [PATCH 06/15] MIPS: Netlogic: Move fdt init to plat_mem_setup, Jayachandran C |
| Indexes: | [Date] [Thread] [Top] [All Lists] |