From: Ralf Baechle <ralf@linux-mips.org>
To: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org, Michal Marek <mmarek@suse.cz>,
Grant Likely <grant.likely@secretlab.ca>,
Rob Herring <rob.herring@calxeda.com>,
John Crispin <blogic@openwrt.org>
Subject: Re: [PATCH 05/15] MIPS: Netlogic: keep .dtb/.dtb.S until make clean
Date: Wed, 28 Nov 2012 13:22:55 +0100 [thread overview]
Message-ID: <20121128122255.GA13997@linux-mips.org> (raw)
In-Reply-To: <7a800eb7eb2a75800749cab24e67c6b1e3c76b7c.1351688140.git.jchandra@broadcom.com>
On Wed, Oct 31, 2012 at 06:31:31PM +0530, Jayachandran C wrote:
> 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))
This patch conflicts with a patch series by Stephen Warren to centralize
the .dts -> .dtb rules that currently exist scattered across arch/.
Ralf
next prev parent reply other threads:[~2012-11-28 12:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-31 13:01 [PATCH 00/15] Netlogic XLR/XLS/XLP updates Jayachandran C
2012-10-31 13:01 ` [PATCH 01/15] MIPS: oprofile: Support for XLR/XLS processors Jayachandran C
2012-10-31 13:01 ` [PATCH 02/15] MIPS: perf: Add XLP support for hardware perf Jayachandran C
2012-10-31 13:01 ` [PATCH 03/15] MIPS: Netlogic: select MIPSR2 for XLP Jayachandran C
2012-10-31 13:28 ` Ralf Baechle
2012-11-01 10:24 ` Jayachandran C.
2012-11-07 11:32 ` Jayachandran C.
2012-10-31 13:01 ` [PATCH 04/15] MIPS: Netlogic: Enable SUE bit in cores Jayachandran C
2012-10-31 13:01 ` [PATCH 05/15] MIPS: Netlogic: keep .dtb/.dtb.S until make clean Jayachandran C
2012-11-28 12:22 ` Ralf Baechle [this message]
2012-10-31 13:01 ` [PATCH 06/15] MIPS: Netlogic: Move fdt init to plat_mem_setup Jayachandran C
2012-10-31 13:01 ` [PATCH 07/15] MIPS: Netlogic: Fix DMA zone selection for 64-bit Jayachandran C
2012-10-31 13:01 ` [PATCH 08/15] MIPS: Netlogic: Fix interrupt table entry init Jayachandran C
2012-10-31 13:01 ` [PATCH 09/15] MIPS: Netlogic: Pass cpuid to early_init_secondary Jayachandran C
2012-10-31 13:01 ` [PATCH 10/15] MIPS: Netlogic: Update PIC access functions Jayachandran C
2012-10-31 13:01 ` [PATCH 11/15] MIPS: Netlogic: Move from u32 cpumask to cpumask_t Jayachandran C
2012-10-31 13:01 ` [PATCH 12/15] MIPS: Netlogic: Support for multi-chip configuration Jayachandran C
2012-10-31 13:01 ` [PATCH 13/15] MIPS: Netlogic: Make number of nodes configurable Jayachandran C
2012-10-31 13:01 ` [PATCH 14/15] MIPS: Netlogic: PIC IRQ handling update for multi-chip Jayachandran C
2012-10-31 13:01 ` [PATCH 15/15] MIPS: Netlogic: Support for XLR/XLS Fast Message Network Jayachandran C
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121128122255.GA13997@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=blogic@openwrt.org \
--cc=grant.likely@secretlab.ca \
--cc=jchandra@broadcom.com \
--cc=linux-mips@linux-mips.org \
--cc=mmarek@suse.cz \
--cc=rob.herring@calxeda.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.