From nobody Thu Mar 21 05:06:22 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V0YMg1f8Vz5F70x; Thu, 21 Mar 2024 05:06:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V0YMg0B3Dz4VJ7; Thu, 21 Mar 2024 05:06:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710997583; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fedwxC2naDjIQCD6h8smuBg2qU7qvGg6nRSEb8C2pXs=; b=Hr+jLAMcTPsLQS9/stVByrxG+kmhBSlPoNOoQSQbCYUT1td4wAAAG56BF/7GTsUZQlRct5 j/Zy5k+f/WERyZnbW7ZLj+GctVHFkskC8KA+5WEMZgOK4NWQJ6HwuVtUvJw1qR6tNjVGs8 nnYQCrDEt0bziJn1HoSyU1oKjIdUUjP9QQODENwcoj8/Mt3tRDoLiMZK5uB6OodRv4C7pF apmiZ8atRixNUciJmQIcFdfK48h2j5I186slnqbL4PDCgTbz0nCE+pNhRV2pqyS0856mv+ IcR/Ehuh/u1OqPuMGAkDDsgj1DTIeUw/UbtIF4oVcLNaAYi060NdaIu72vCVtA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710997583; a=rsa-sha256; cv=none; b=bFzre5U4aPJ+VL78PyCARzTE9SqyY4uecJq9d0scEfzBXM0AVbKUYMAJKXaNKIHrC22O8M KY98gkDf/IFw2CZKbAPkljjKCbFI29pRiCC18lW5nQWBTbcmQ6KPjGUB9xCIEcnGsfadKH f9XGLTpubGWdVOhYQWi3NV4cXx7+JkZ0SX1M+hK+AqtPMa9TCTR4N44wxB3Qkc/JGBn7i5 Jd7PEZhpjcV1WLl5pbOqbokRDHNPfaEGjFsZ5woOFO98Hd6Gz2p8pwj/cjd4I+JS8wlxgG 54xbyro0vZU29ap4Rc7xoBOoJkhILOwfBuYNpyhL2xhUxcdSEe0y8VKTNopmog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710997583; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fedwxC2naDjIQCD6h8smuBg2qU7qvGg6nRSEb8C2pXs=; b=LSb1Nks3G77NLNnHiXLuVROIQKfc16exRDc5jVDjOOvuwxO7TrngU891PLrSuMHY0/Yf82 944AB0NGEy8Qb4Mc0Ek4Rj417OfOfR7Dgkcxzu861TyCJFdJw+qOyaHve1mIGxv05bBrqY RWguEgRa3ob+nKLmS2la4yO9nd0sde30D2Kj7qQ2wlTcerWgf7ru0g4eBTCOrUeyisE0Ib o69SZrknGHAnbMEzymHyZsTyEGhaAOQFJEb8/UsxBcXkw1Dl3hwhj7EwX1Q0NKqV/sUShc NmksFLkyzJXUiSZFsk9NYpFTuDgaLW4P1xoE4lcWSvg/vQIz93Lu3OGkQ1m/UQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V0YMf6txHzMKn; Thu, 21 Mar 2024 05:06:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42L56Mn8008402; Thu, 21 Mar 2024 05:06:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42L56MAb008399; Thu, 21 Mar 2024 05:06:22 GMT (envelope-from git) Date: Thu, 21 Mar 2024 05:06:22 GMT Message-Id: <202403210506.42L56MAb008399@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: f29af8618bf9 - main - libfdt: Make an internal FDT library available List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f29af8618bf94f1e58877feb6dbef35bd8bbf56b Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f29af8618bf94f1e58877feb6dbef35bd8bbf56b commit f29af8618bf94f1e58877feb6dbef35bd8bbf56b Author: Mark Johnston AuthorDate: 2024-03-21 04:21:16 +0000 Commit: Mark Johnston CommitDate: 2024-03-21 05:05:05 +0000 libfdt: Make an internal FDT library available This will be used by bhyve to build a device tree when booting arm64 guests. Reviewed by: corvink, jhb MFC after: 1 week Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D40994 --- lib/Makefile | 1 + lib/libfdt/Makefile | 29 +++++++++++++++++++++++++++++ share/mk/src.libnames.mk | 4 ++++ 3 files changed, 34 insertions(+) diff --git a/lib/Makefile b/lib/Makefile index 9d2531820c8b..a632a77e6071 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -171,6 +171,7 @@ SUBDIR+= clang 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 index 000000000000..c4ada46c3b2e --- /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 diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk index 0fd349d0d00f..d9fe88146dbe 100644 --- a/share/mk/src.libnames.mk +++ b/share/mk/src.libnames.mk @@ -44,6 +44,7 @@ _INTERNALLIBS= \ c_nossp_pic \ cron \ elftc \ + fdt \ fifolog \ ifconfig \ ipf \ @@ -546,6 +547,9 @@ _LIB_OBJTOP?= ${OBJTOP} 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