Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Aug 2026 17:31:19 +0000
From:      Alexander Leidinger <netchild@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Cc:        Enji Cooper <ngie@FreeBSD.org>
Subject:   git: f7fd5a57b08c - stable/14 - tests/sys/pmc: only build if MK_PMC != no
Message-ID:  <6a70d067.47ceb.79f2cc77@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by netchild:

URL: https://cgit.FreeBSD.org/src/commit/?id=f7fd5a57b08c2cf1d243296b953f1f0b7dc8cfd4

commit f7fd5a57b08c2cf1d243296b953f1f0b7dc8cfd4
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-07-22 19:53:31 +0000
Commit:     Alexander Leidinger <netchild@FreeBSD.org>
CommitDate: 2026-08-03 17:31:04 +0000

    tests/sys/pmc: only build if MK_PMC != no
    
    This unbreaks the build when pmc support is explicitly disabled via the
    aforementioned build knob.
    
    MFC after:      10 days
    Fixes:          2cfd82f74 ("hwpmc: add regression tests for ...")
    Differential Revision:  https://reviews.freebsd.org/D58401
    
    (cherry picked from commit a18e773d2776a65c1a2a0418cbec9cf5ef526b53)
---
 tests/sys/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/sys/Makefile b/tests/sys/Makefile
index 7b7a97fd1359..59d4965cb796 100644
--- a/tests/sys/Makefile
+++ b/tests/sys/Makefile
@@ -30,7 +30,7 @@ TESTS_SUBDIRS+=		netlink
 TESTS_SUBDIRS+=		netmap
 TESTS_SUBDIRS+=		netpfil
 TESTS_SUBDIRS+=		opencrypto
-TESTS_SUBDIRS+=		pmc
+TESTS_SUBDIRS+=		${_pmc}
 TESTS_SUBDIRS+=		posixshm
 TESTS_SUBDIRS+=		ses
 TESTS_SUBDIRS+=		sound
@@ -51,6 +51,10 @@ _cddl=	cddl
 _netgraph= netgraph
 .endif
 
+.if ${MK_PMC} != "no"
+_pmc=	pmc
+.endif
+
 # Items not integrated into kyua runs by default
 SUBDIR+=		pjdfstest
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a70d067.47ceb.79f2cc77>