From 8ea3921f932c43e2ece5c3f9033d4990a4d81375 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 8 Dec 2021 23:20:16 -0600 Subject: [PATCH] sysent: regenerate files every time This forces everything to be regenerated by marking makesyscalls.lua as .PHONY, which may be helpful in, e.g., rebase scenarios, which may have unexpected effects on mtimes but still really need a regen. For now we apply this to the default sysent target, which is ran manually and not as a part of buildkernel. We can reconsider this if someone manually running it has issues with the runtime, but the top level sysent target can run each in parallel; I recommend -j4 or so. Requested by: kib Reviewed by: brooks, kib (both earlier version) Differential Revision: https://reviews.freebsd.org/D33357 --- sys/conf/sysent.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/conf/sysent.mk b/sys/conf/sysent.mk index 489504da2ec8..995bd2f9b913 100644 --- a/sys/conf/sysent.mk +++ b/sys/conf/sysent.mk @@ -40,5 +40,10 @@ all: .ORDER: ${GENERATED} sysent: ${GENERATED} +# We slap a .PHONY on makesyscalls.lua so that we regenerate every single time, +# for now, which can be less painful across rebases or other things that may +# have odd effects on mtimes. +${MAKESYSCALLS_SCRIPT}: .PHONY + ${GENERATED}: ${MAKESYSCALLS_SCRIPT} ${SRCS} ${MAKESYSCALLS} ${SYSENT_FILE} ${SYSENT_CONF}