From 04ed45b96893d12ae74a14c4da339121d04e26b2 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Tue, 7 Jul 2020 16:35:52 +0000 Subject: [PATCH] Rebuild sysent when capabilities.conf is updated. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25571 --- sys/conf/sysent.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/conf/sysent.mk b/sys/conf/sysent.mk index 6fc64bcf8c8..761905f3ffa 100644 --- a/sys/conf/sysent.mk +++ b/sys/conf/sysent.mk @@ -22,6 +22,13 @@ SYSENT_CONF?= syscalls.conf SRCS+= ${SYSENT_FILE} SRCS+= ${SYSENT_CONF} +# Ensure that the target gets updated if the capabilities file is modified, +# even though it is not an explicit input to makesyscalls.lua. For some +# targets, like Linux system calls, this is unnecessary, but a spurious rebuild +# is both rare and harmless. +CAPABILITIES_CONF?= ${SYSDIR}/kern/capabilities.conf +SRCS+= ${CAPABILITIES_CONF} + MAKESYSCALLS_INTERP?= ${LUA} MAKESYSCALLS_SCRIPT?= ${SYSDIR}/tools/makesyscalls.lua MAKESYSCALLS= ${MAKESYSCALLS_INTERP} ${MAKESYSCALLS_SCRIPT}