mirror of
				https://github.com/riscv-software-src/opensbi
				synced 2025-11-04 05:50:22 +00:00 
			
		
		
		
	We update FDT support makefile to use kconfig for enabling/disabling. To avoid compilation errors, we also enable FDT for each platform. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Tested-by: Andrew Jones <ajones@ventanamicro.com> Acked-by: Atish Patra <atishp@rivosinc.com> Tested-by: Atish Patra <atishp@rivosinc.com>
		
			
				
	
	
		
			17 lines
		
	
	
		
			528 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			528 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
#
 | 
						|
# SPDX-License-Identifier: BSD-2-Clause
 | 
						|
#
 | 
						|
# Copyright (c) 2019 Western Digital Corporation or its affiliates.
 | 
						|
#
 | 
						|
# Authors:
 | 
						|
#   Atish Patra<atish.patra@wdc.com>
 | 
						|
#
 | 
						|
 | 
						|
libfdt_files = fdt.o fdt_addresses.o fdt_check.o fdt_empty_tree.o fdt_ro.o fdt_rw.o \
 | 
						|
               fdt_strerror.o fdt_sw.o fdt_wip.o
 | 
						|
$(foreach file, $(libfdt_files), \
 | 
						|
        $(eval CFLAGS_$(file) = -I$(src)/../../utils/libfdt))
 | 
						|
 | 
						|
libsbiutils-objs-$(CONFIG_LIBFDT) += $(addprefix libfdt/,$(libfdt_files))
 | 
						|
libsbiutils-genflags-y  += -I$(libsbiutils_dir)/libfdt/
 |