Re: [PATCH] MIPS: DTS: Only build subdir of current platform

From: Thomas Bogendoerfer
Date: Sun May 24 2020 - 05:31:03 EST


On Thu, May 21, 2020 at 10:15:06AM +0800, Tiezhu Yang wrote:
> Add config check in Makefile to only build the subdir of current platform.
>
> E.g. without this patch:
>
> AR arch/mips/built-in.a
> AR arch/mips/boot/dts/brcm/built-in.a
> AR arch/mips/boot/dts/cavium-octeon/built-in.a
> AR arch/mips/boot/dts/img/built-in.a
> AR arch/mips/boot/dts/ingenic/built-in.a
> AR arch/mips/boot/dts/lantiq/built-in.a
> DTC arch/mips/boot/dts/loongson/loongson3_4core_rs780e.dtb
> DTB arch/mips/boot/dts/loongson/loongson3_4core_rs780e.dtb.S
> AS arch/mips/boot/dts/loongson/loongson3_4core_rs780e.dtb.o
> DTC arch/mips/boot/dts/loongson/loongson3_8core_rs780e.dtb
> DTB arch/mips/boot/dts/loongson/loongson3_8core_rs780e.dtb.S
> AS arch/mips/boot/dts/loongson/loongson3_8core_rs780e.dtb.o
> AR arch/mips/boot/dts/loongson/built-in.a
> AR arch/mips/boot/dts/mscc/built-in.a
> AR arch/mips/boot/dts/mti/built-in.a
> AR arch/mips/boot/dts/netlogic/built-in.a
> AR arch/mips/boot/dts/ni/built-in.a
> AR arch/mips/boot/dts/pic32/built-in.a
> AR arch/mips/boot/dts/qca/built-in.a
> AR arch/mips/boot/dts/ralink/built-in.a
> AR arch/mips/boot/dts/xilfpga/built-in.a
> AR arch/mips/boot/dts/built-in.a
>
> With this patch:
>
> AR arch/mips/built-in.a
> DTC arch/mips/boot/dts/loongson/loongson3_4core_rs780e.dtb
> DTB arch/mips/boot/dts/loongson/loongson3_4core_rs780e.dtb.S
> AS arch/mips/boot/dts/loongson/loongson3_4core_rs780e.dtb.o
> DTC arch/mips/boot/dts/loongson/loongson3_8core_rs780e.dtb
> DTB arch/mips/boot/dts/loongson/loongson3_8core_rs780e.dtb.S
> AS arch/mips/boot/dts/loongson/loongson3_8core_rs780e.dtb.o
> AR arch/mips/boot/dts/loongson/built-in.a
> AR arch/mips/boot/dts/built-in.a
>
> Signed-off-by: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx>
> ---
> arch/mips/boot/dts/Makefile | 28 ++++++++++++++--------------
> 1 file changed, 14 insertions(+), 14 deletions(-)

applied to mips-next.

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]