git: 9c0faaeb1b9c - stable/13 - sysent: regenerate files every time
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 02 Nov 2022 17:03:02 UTC
The branch stable/13 has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=9c0faaeb1b9c626a63ca5843361b21894504e780
commit 9c0faaeb1b9c626a63ca5843361b21894504e780
Author: Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2021-12-09 05:20:16 +0000
Commit: Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2022-11-02 17:02:23 +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)
(cherry picked from commit 8ea3921f932c43e2ece5c3f9033d4990a4d81375)
---
sys/conf/sysent.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sys/conf/sysent.mk b/sys/conf/sysent.mk
index 761905f3ffa6..9f5804693f9d 100644
--- a/sys/conf/sysent.mk
+++ b/sys/conf/sysent.mk
@@ -41,5 +41,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}