aboutsummaryrefslogtreecommitdiffstats
path: root/roms/skiboot/libfdt/Makefile.inc
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/skiboot/libfdt/Makefile.inc
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/skiboot/libfdt/Makefile.inc')
-rw-r--r--roms/skiboot/libfdt/Makefile.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/roms/skiboot/libfdt/Makefile.inc b/roms/skiboot/libfdt/Makefile.inc
new file mode 100644
index 000000000..f0dd995ec
--- /dev/null
+++ b/roms/skiboot/libfdt/Makefile.inc
@@ -0,0 +1,16 @@
+# Makefile.inc
+#
+# LIBFDT_ variables are taken from Makefile.libfdt
+
+LIBFDT_INCLUDES = fdt.h libfdt.h libfdt_env.h
+LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c fdt_empty_tree.c \
+ fdt_addresses.c fdt_overlay.c
+LIBFDT_OBJS = $(LIBFDT_SRCS:%.c=%.o)
+
+CFLAGS_SKIP_libfdt/ = -Wsuggest-attribute=const -Wsuggest-attribute=noreturn
+
+SUBDIRS += libfdt
+LIBFDT = libfdt/built-in.a
+
+$(LIBFDT): $(LIBFDT_OBJS:%=libfdt/%)
+