Page MenuHomeFreeBSD

D40994.diff
No OneTemporary

D40994.diff

diff --git a/lib/Makefile b/lib/Makefile
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -171,6 +171,7 @@
SUBDIR.${MK_CUSE}+= libcuse
SUBDIR.${MK_TOOLCHAIN}+=libpe
SUBDIR.${MK_DIALOG}+= libdpv libfigpar
+SUBDIR.${MK_FDT}+= libfdt
SUBDIR.${MK_FILE}+= libmagic
SUBDIR.${MK_GPIO}+= libgpio
SUBDIR.${MK_GSSAPI}+= libgssapi librpcsec_gss
diff --git a/lib/libfdt/Makefile b/lib/libfdt/Makefile
new file mode 100644
--- /dev/null
+++ b/lib/libfdt/Makefile
@@ -0,0 +1,29 @@
+LIB= fdt
+
+INTERNALLIB=
+
+LIBFDTSRCDIR= ${SRCTOP}/sys/contrib/libfdt
+.PATH: ${LIBFDTSRCDIR}
+
+SRCS= \
+ fdt.c \
+ fdt_addresses.c \
+ fdt_empty_tree.c \
+ fdt_overlay.c \
+ fdt_ro.c \
+ fdt_rw.c \
+ fdt_strerror.c \
+ fdt_sw.c \
+ fdt_wip.c
+
+INCS= \
+ fdt.h \
+ libfdt.h \
+ ibfdt_env.h
+
+CFLAGS+= -I${LIBFDTSRCDIR}
+WARNS?= 2
+
+MAN=
+
+.include <bsd.lib.mk>
diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk
--- a/share/mk/src.libnames.mk
+++ b/share/mk/src.libnames.mk
@@ -44,6 +44,7 @@
c_nossp_pic \
cron \
elftc \
+ fdt \
fifolog \
ifconfig \
ipf \
@@ -546,6 +547,9 @@
LIBELFTCDIR= ${_LIB_OBJTOP}/lib/libelftc
LIBELFTC?= ${LIBELFTCDIR}/libelftc${PIE_SUFFIX}.a
+LIBFDTDIR= ${_LIB_OBJTOP}/lib/libfdt
+LIBFDT?= ${LIBFDTDIR}/libfdt${PIE_SUFFIX}.a
+
LIBLUADIR= ${_LIB_OBJTOP}/lib/liblua
LIBLUA?= ${LIBLUADIR}/liblua${PIE_SUFFIX}.a

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 7, 9:10 PM (10 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14520856
Default Alt Text
D40994.diff (1 KB)

Event Timeline