mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 18:35:42 +01:00 
			
		
		
		
	This adjusts OF_UPSTREAM to behave more like the kernel by allowing for all the devicetree files for a given vendor to be compiled. This is useful for Qualcomm in particular as most boards are supported by a single U-Boot build just provided with a different DT. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on Amlogic boards builds
		
			
				
	
	
		
			17 lines
		
	
	
		
			487 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			487 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # SPDX-License-Identifier: GPL-2.0+
 | |
| 
 | |
| dtb-y += $(patsubst %,%.dtb,$(subst ",,$(CONFIG_DEFAULT_DEVICE_TREE) $(CONFIG_OF_LIST) $(CONFIG_SPL_OF_LIST)))
 | |
| 
 | |
| ifeq ($(CONFIG_OF_UPSTREAM_BUILD_VENDOR),y)
 | |
| ifeq ($(CONFIG_ARM64),y)
 | |
| dt_dir := $(srctree)/dts/upstream/src/arm64
 | |
| else
 | |
| dt_dir := $(srctree)/dts/upstream/src/$(ARCH)
 | |
| endif
 | |
| 
 | |
| dtb-vendor_dts := $(patsubst %.dts,%.dtb,$(wildcard $(dt_dir)/$(subst ",,$(CONFIG_OF_UPSTREAM_VENDOR))/*.dts))
 | |
| 
 | |
| dtb-y += $(subst $(dt_dir)/,,$(dtb-vendor_dts))
 | |
| 
 | |
| endif
 |