From nobody Thu Nov 19 14:50:26 2026 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 4jVhGV4pm9z71954 for ; Thu, 19 Nov 2026 14:50:26 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jVhGV2tpKz4lJF for ; Thu, 19 Nov 2026 14:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795099826; 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=jaf0owv8WFo4+ZkoYmrtY+2ohMlPdVUSwUS2xGMsDOU=; b=qFSB4+ZENYfpaYVD77cS0gWmxwDXDe3/385I66o0xZ9jfUecTUGTrWt1yl0v5O1DM2McvL 2tpLXZBIQ08Wd1V5ihD79Z+qjIxb7TZESappUBOer/MarZVqMH8I+Owl0ZYNByZyZySoiY URRTXGXTl8JKeP2c7eyb9lYYlLy29Ot9nV8a8UwdvGwQHYA00R9nJtxNMqA7K8DtHzPy7H utY215c3T56Zxs+wQdfinxPB6MHJhvnAaVRFwkeyWZlpguq+MB/puaa5u1SdL0YVzHm6au z+OuJn/5O1VIY+y6LeDt4e+JUxrX6iJln8sy8qFkKrHVP/ZXQx241RItLqqOeQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795099826; b=LxMol/NgdBnco04J5VPWy3jz3cA/AgWSZ1v64OA7eNEZk2MBPxqHc8JQcbARL6WJ0o5d64 LseseBMLAomBfe3tk86xjswfIB8TWiZjiI49FeGYzTju3wUGFWy+p6t7z6JuXEBWqaC9AT 3dSLUyzn0sza8ha6JrKcSTEwAgGoNHn4CTSFfodQSYeh/gDjsfkUrFC8nSO1ZaoQIzUE0E 76fMZcRqkECCwL8E1u0OO2svofHjQ6vrxZpt7jfHWFQYwrSSBZeKGevey9Kql7ejIa5tGx 1sqdefHOZnL9BcsvgdbISZmkNX3p16JbZnGs/qzoT5L0MkKaln/AxdORJAb4wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795099826; 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=jaf0owv8WFo4+ZkoYmrtY+2ohMlPdVUSwUS2xGMsDOU=; b=fjqWfsRbev7rI+KZl3k5W/waCYi2KhW3pzo+ehzNzAkrP+Vn9Z+MEUQpUTol8KpMktawNO LoIw1b/RxDOVORM9WMOFfr+aiCHtvdiEqbY7ghsa4dx+mgaA4blI27rhZHXVcM835Nz06L m4avS0AUdUGio+KoqdQRxUpqb/r/Nd8HWX9XlT+FTqXGWRckncI9EF/1gO8Pj80f30V/G8 pvJ22i55HIF9f6zoBGeBxmJNqe5rQlpmGWtAYYLfrgECZYgdxSjMz021oL4J4euRgrga9R Ldqhbh/aB+8A8tC4trYdx2n+hm2XVs8CrtfzMh6CyfhOXEiAdn+skHLOR66fvA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jVhGV2W93z14Wg for ; Thu, 19 Nov 2026 14:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 8906 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 19 Nov 2026 14:50:26 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: e1e47070ed8b - main - build: sys: Define CPPFLAGS variable, to be used in 'files*' List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olce X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e1e47070ed8b12e3b294cff1207be24a68a8393c Auto-Submitted: auto-generated Date: Thu, 19 Nov 2026 14:50:26 +0000 Message-Id: <6aff0cb2.8906.75f76710@gitrepo.freebsd.org> The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=e1e47070ed8b12e3b294cff1207be24a68a8393c commit e1e47070ed8b12e3b294cff1207be24a68a8393c Author: Olivier Certner AuthorDate: 2026-11-03 21:42:13 +0000 Commit: Olivier Certner CommitDate: 2026-11-19 14:49:54 +0000 build: sys: Define CPPFLAGS variable, to be used in 'files*' Define the CPPFLAGS Makefile variable to contain the preprocessor options that are passed for compilation of normal C files, including usual '-I' and '-D' directives. This enables safely using the preprocessor in 'files*' on "template" source files to generate other source files (see next commit). Do not define NORMAL_CPP (as discussed with des@), as other NORMAL_* variables do include ${.IMPSRC} and thus NORMAL_CPP would need to include it for consistency, making it unusable to generate files through explicit make rules. Discussed with: des (do not define NORMAL_CPP) MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61168 --- sys/conf/kern.pre.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index 347ff6ee90ff..d17a25ef1636 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -75,7 +75,8 @@ NOSTDINC= -nostdinc INCLUDES= ${NOSTDINC} ${INCLMAGIC} -I. -I$S -I$S/contrib/ck/include CFLAGS= ${COPTFLAGS} ${DEBUG} -CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h +CPPFLAGS= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h +CFLAGS+= ${CPPFLAGS} CFLAGS_PARAM_INLINE_UNIT_GROWTH?=100 CFLAGS_PARAM_LARGE_FUNCTION_GROWTH?=1000 CFLAGS.gcc+= -finline-limit=${INLINE_LIMIT}