From nobody Fri Mar 29 18:11:54 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 4V5pQN723rz5FNtb; Fri, 29 Mar 2024 18:11:56 +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 4V5pQM110Mz4hRJ; Fri, 29 Mar 2024 18:11:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711735915; 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=wXSw8C+1dsoASQKIegmk82aNyVidMiVfyOi4ozmRGlU=; b=Sx3mcpLEhw1sTtVQAt+V7e4YZcjtVhhhERUCWGZgBAgJ92BdZWmulQMkNPUKe2QZ6yXGo9 1PVKgkSM1va1wgpJ5JZdvgXVuuxTeI7pcwe8zU1Kxp3tPnG9/wuIiL+NcKgI2au3D0dUv0 aVZClRc+m4tvj1fqWrH1PSs282e4D+3UB8uBjaiosWv57PxpVdwyR/sL85f6HKe/CiVfjk Xjd+RA4Ikf60Zv5b4VPCrRpaDvuep9F0jofcqGV8McyPf3uCKVWH45TT39r/vkR5vQ9Ced KkXFoU7bXw2cc572FM6Ik2Z9tJMEl3NGp7fSAxXMT9j/zeGI58Vd5N7B6u6gWA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711735915; a=rsa-sha256; cv=none; b=wnV6t/sjor6L0IOt5hLIPUHlvnpErhZ/y5I+zqGUfw1iiFZHZ38DU2bJvJTg7Ow2O1urTP VLK0BmfHnoHkSaBHmW5QGmBfoVrz8Y9WeJbR5/y+mQTW4GaAFc1KatMuzzt+GNSLBsUAVK t+4lMLU60lXbAgZeig2sDtQf+ZkZ0TEciIdy4k7kraKJ5ChY9kXLG3TO8T49Dx5E+kGEqg cFuINsncr2F6X7JzwKC9vhHboMgqNqGHxNldut4wNCwM6NhLBNCo6fP4Rngz/+NBwF9u5O TyOAfzWoa4FmWE5pzgR0zshVxb6R+OKwGxqnh+9S/Su62Wv6meER6NQhF0fq/Q== 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=1711735915; 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=wXSw8C+1dsoASQKIegmk82aNyVidMiVfyOi4ozmRGlU=; b=ym/3VzTB/dX5uvI/kOJoQciSwjKFIJS4fNiYqcvjWpnrF+8dHoBW0BEgsSKdAOdMl4zE4d MgmupDac7jDwK8VO1z8zfaM9IslwY1XsbwMiaMl7FGmdjmwVXG3UYxjd3q/am185ejK8EG vHddg4/EEPGjVOFSWu7tBYLUHTQTEryYsThlwF8hJ/itorrmqGx1Uwt6J0Ck8dYp4VzSEI 90oL+zy4Es89jg/kluzD6MZsz5qGaZts8MdOs9yA1Ll3Qacg0Te9UEZtaUU1HKIRw2aITA rydX0nmgcEA5mH1raDQBSedWxRfBLVb8I7EzK3mxLFzlllpIu1Abn7m/4GAu6A== 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 4V5pQL60WczLQl; Fri, 29 Mar 2024 18:11:54 +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 42TIBsqU078372; Fri, 29 Mar 2024 18:11:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42TIBsPq078369; Fri, 29 Mar 2024 18:11:54 GMT (envelope-from git) Date: Fri, 29 Mar 2024 18:11:54 GMT Message-Id: <202403291811.42TIBsPq078369@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: b78edde28052 - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: b78edde280528102d66d55058d3e287e24800e51 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=b78edde280528102d66d55058d3e287e24800e51 commit b78edde280528102d66d55058d3e287e24800e51 Author: Mark Johnston AuthorDate: 2024-03-21 04:21:16 +0000 Commit: Mark Johnston CommitDate: 2024-03-29 13:53:19 +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 (cherry picked from commit f29af8618bf94f1e58877feb6dbef35bd8bbf56b) --- 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 49d28c1eb975..6c0574e76afb 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -169,6 +169,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 6a79d0b864d3..8885835c0632 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 \ @@ -533,6 +534,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