Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102041114
D40994.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D40994.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D40994: libfdt: Make an internal FDT library available
Attached
Detach File
Event Timeline
Log In to Comment