[PATCH 1/9] microblaze: dts: Use the normal build rule

Michal Simek michal.simek at amd.com
Tue Jan 2 14:01:14 CET 2024



On 12/27/23 09:23, Simon Glass wrote:
> Build devicetree files using the normal SoC-generic rule. For
> microblaze there is actually only one SoC and one board.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>   arch/microblaze/dts/Makefile | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/microblaze/dts/Makefile b/arch/microblaze/dts/Makefile
> index 427a8f9aaca..adc76ddf21f 100644
> --- a/arch/microblaze/dts/Makefile
> +++ b/arch/microblaze/dts/Makefile
> @@ -1,6 +1,6 @@
>   # SPDX-License-Identifier: GPL-2.0+
>   
> -dtb-y += $(shell echo $(CONFIG_DEFAULT_DEVICE_TREE)).dtb
> +dtb-$(CONFIG_MICROBLAZE) += microblaze-generic.dtb
>   
>   include $(srctree)/scripts/Makefile.dts
>   

This feature was added by Nathan likely for yocto purpose.

commit 41f59f6853915291c7451c9e38c196fd5a90bf6a
Author:     Michal Simek <michal.simek at amd.com>
AuthorDate: Wed Feb 15 08:22:04 2017 +0100
Commit:     Michal Simek <michal.simek at amd.com>
CommitDate: Mon Jun 19 15:52:39 2017 +0200

     microblaze: Build only DTBs for selected target

     Adding more targets to repository requires some additional
     changes not simply just adding config file, defconfig and dts.
     This patch makes this process easier by building only
     particular DTB which is selected via defconfig
     that Makefile doesn't need to contain all dts files in the repository.

     Reported-by: Nathan Rossi <nathan at nathanrossi.com>
     Signed-off-by: Michal Simek <michal.simek at xilinx.com>

Mark: Can you please double check what Yocto is doing for supporting multiple 
microblaze based DTs? If you are copying dtses to u-boot source code and then 
using CONFIG_DEFAULT_DEVICE_TREE to select DT to build?

Thanks,
Michal


More information about the U-Boot mailing list