aboutsummaryrefslogtreecommitdiffstats
path: root/roms/opensbi/lib/utils/libfdt/objects.mk
diff options
context:
space:
mode:
Diffstat (limited to 'roms/opensbi/lib/utils/libfdt/objects.mk')
-rw-r--r--roms/opensbi/lib/utils/libfdt/objects.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/roms/opensbi/lib/utils/libfdt/objects.mk b/roms/opensbi/lib/utils/libfdt/objects.mk
new file mode 100644
index 000000000..8c060df9d
--- /dev/null
+++ b/roms/opensbi/lib/utils/libfdt/objects.mk
@@ -0,0 +1,16 @@
+#
+# 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-y += $(addprefix libfdt/,$(libfdt_files))
+libsbiutils-genflags-y += -I$(libsbiutils_dir)/libfdt/