From nobody Fri May 10 19:06:10 2024 X-Original-To: dev-commits-src-main@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 4VbddZ5JGcz5KFXc; Fri, 10 May 2024 19:06:10 +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 4VbddZ4pPfz4N8P; Fri, 10 May 2024 19:06:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715367970; 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=tYfd3U+Ay3rcXix7CjLXVpFw3xtFVlgYYe5hWDWli3Q=; b=vIOL29IjREvLfsLtH1xlyiUYf9tfyHudLxZJDo/WWoXRInW49a7TX3MOmZ4vs6Qp9clR4a bfasV8MdLghuCdELOmsRUWPIXQH+1AcrcsVUEvm3o+mlu5pYJL7rjLBdbF2vRzKrTabc8p 0nQnB0fsou3UpUB96tMXB6sGW3tnBFGdPFLQ89Hdc6yByAU6gPYQ4mfeB03LTmNlBAjuaA JQyUPDgr172w4QMuCu0CmcT09n9ZWPXUek4vUAJOirNOyyUqkh+nTWZfFUsb0DzJxcw6GC hSVp9lvkT6JBTtU3SbV0imS8hgYE2wt5crMaV8b0EdKKEdlQJqzxVcyB1FAX9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715367970; a=rsa-sha256; cv=none; b=EC1oGVLNCnRBrsFtSsd49N6WrdNvREoCeZJfPyg19Tzuz3sB9rocxH0bROJp65BARb9B4z T6/g0YDeyk2GrcTMR23MYQ82wg8mJWYXipPb3/UOVrgHFqLxFxtCtkJSyP7wilGnG9UPeq Zly23yNRYPTP/LD9YuJwDzMHPpPvsxvaEt/U1+qXAwX0K8jKvRwbaT9pm+H1MrlEsF5Bv2 DBZiPd0HxkLGztLuA8hJK6RhB393rmUpCHxGQ0PEV2X2UqOkQMYUPLNzhaaMOUQzlsqXxE 5hpCL0a9du3cbEGhApBEsrWbsaFjqJkPEZQq7bcb6jUJtXIsJJ2ctmwiuCFNLQ== 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=1715367970; 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=tYfd3U+Ay3rcXix7CjLXVpFw3xtFVlgYYe5hWDWli3Q=; b=LI1Z/UMmvwhbxp5hkCkO73F+r3CZt8ip07Eyk8ladg0nlA5M3FhSFwxHkeUIjrMQ1ee6Mx iE46CmQM6I1sbQhO0grVg6+2Py0E6LE/cEcZHdPvICyyXNn02Q23TWNshUtTqp0sEs/ESN jn4e9PqOWol6XXsve6gpP5Jo1S93AhU9R20TfzcYP/CluDxyrcYH1bnCqlA589ImyAGrdp bVHHxrp8N3230+cP7yyQJ4fpjRtuRXJnMEf6w4hGS+7uhi5zzYwuptfC5V/mVNLZelRoun nkL/k32A4f7Q6RnMQic1VIAEjo59sAWWavcI5/L7dxfk22BmKLOxwwNReIkuAQ== 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 4VbddZ4HZrzq8g; Fri, 10 May 2024 19:06:10 +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 44AJ6Aq9061569; Fri, 10 May 2024 19:06:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44AJ6AId061566; Fri, 10 May 2024 19:06:10 GMT (envelope-from git) Date: Fri, 10 May 2024 19:06:10 GMT Message-Id: <202405101906.44AJ6AId061566@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Simon J. Gerraty" Subject: git: dd4d206cad0c - main - kmod.mk use ${XARGS} List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dd4d206cad0cc8ba02ba10a039d708209a83a487 Auto-Submitted: auto-generated The branch main has been updated by sjg: URL: https://cgit.FreeBSD.org/src/commit/?id=dd4d206cad0cc8ba02ba10a039d708209a83a487 commit dd4d206cad0cc8ba02ba10a039d708209a83a487 Author: Simon J. Gerraty AuthorDate: 2024-05-10 19:05:05 +0000 Commit: Simon J. Gerraty CommitDate: 2024-05-10 19:05:05 +0000 kmod.mk use ${XARGS} Also ${XARGS_J} this allows use of non-BSD xargs when building kernel modules. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D45146 --- sys/conf/kmod.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 5cc0ff70c3e2..ed186619434d 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -71,6 +71,8 @@ KMODLOAD?= /sbin/kldload KMODUNLOAD?= /sbin/kldunload KMODISLOADED?= /sbin/kldstat -q -n OBJCOPY?= objcopy +XARGS?= xargs +XARGS_J?= -J .include "kmod.opts.mk" .include @@ -275,12 +277,12 @@ ${FULLPROG}: ${OBJS} ${BLOB_OBJS} grep -v '^#' < ${EXPORT_SYMS} > export_syms .endif ${AWK} -f ${SYSDIR}/conf/kmod_syms.awk ${.TARGET} \ - export_syms | xargs -J% ${OBJCOPY} % ${.TARGET} + export_syms | ${XARGS} ${XARGS_J} % ${OBJCOPY} % ${.TARGET} .endif .endif # defined(EXPORT_SYMS) .if defined(PREFIX_SYMS) ${AWK} -v prefix=${PREFIX_SYMS} -f ${SYSDIR}/conf/kmod_syms_prefix.awk \ - ${.TARGET} /dev/null | xargs -J% ${OBJCOPY} % ${.TARGET} + ${.TARGET} /dev/null | ${XARGS} ${XARGS_J} % ${OBJCOPY} % ${.TARGET} .endif .if !defined(DEBUG_FLAGS) && ${__KLD_SHARED} == no ${OBJCOPY} --strip-debug ${.TARGET}