git: 8ea3921f932c - main - sysent: regenerate files every time

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Fri, 17 Dec 2021 02:56:49 UTC
The branch main has been updated by kevans:

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

commit 8ea3921f932c43e2ece5c3f9033d4990a4d81375
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2021-12-09 05:20:16 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-12-17 02:56:28 +0000

    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}