svn commit: r356937 - head/sys/conf
Kyle Evans
kevans at FreeBSD.org
Tue Jan 21 05:01:11 UTC 2020
Author: kevans
Date: Tue Jan 21 05:01:11 2020
New Revision: 356937
URL: https://svnweb.freebsd.org/changeset/base/356937
Log:
sysent.mk: split interpreter out of target command
The main objective here is to make it easy to identify what needs to change
in order to use a different sysent generator than the current Lua-based one,
which may be used to MFC some of the changes that have happened so we can
avoid parallel accidents in stable branches, for instance.
As a secondary objective, it's now feasible to override the generator on a
per-Makefile basis if needed, so that one could refactor their Makefile to
use this while pinning generation to the legacy makesyscalls.sh. I don't
anticipate any consistent need for such a thing, but it's low-effort to
achieve.
Modified:
head/sys/conf/sysent.mk
Modified: head/sys/conf/sysent.mk
==============================================================================
--- head/sys/conf/sysent.mk Tue Jan 21 00:12:57 2020 (r356936)
+++ head/sys/conf/sysent.mk Tue Jan 21 05:01:11 2020 (r356937)
@@ -21,8 +21,11 @@ SYSENT_CONF?= syscalls.conf
# and set GENERATED.
SRCS+= ${SYSENT_FILE}
SRCS+= ${SYSENT_CONF}
-MAKESYSCALLS= ${SYSDIR}/tools/makesyscalls.lua
+MAKESYSCALLS_INTERP?= ${LUA}
+MAKESYSCALLS_SCRIPT?= ${SYSDIR}/tools/makesyscalls.lua
+MAKESYSCALLS= ${MAKESYSCALLS_INTERP} ${MAKESYSCALLS_SCRIPT}
+
all:
@echo "make sysent only"
@@ -31,5 +34,5 @@ all:
.ORDER: ${GENERATED}
sysent: ${GENERATED}
-${GENERATED}: ${MAKESYSCALLS} ${SRCS}
- ${LUA} ${MAKESYSCALLS} ${SYSENT_FILE} ${SYSENT_CONF}
+${GENERATED}: ${MAKESYSCALLS_SCRIPT} ${SRCS}
+ ${MAKESYSCALLS} ${SYSENT_FILE} ${SYSENT_CONF}
More information about the svn-src-all
mailing list