<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/i386/linux/Makefile, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2020-01-25T05:47:56Z</updated>
<entry>
<title>MFC r355473, r356540, r356604, r356868, r356937: sysent improvements</title>
<updated>2020-01-25T05:47:56Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-01-25T05:47:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9f73487c4c24fbb2890022060b897856d17be298'/>
<id>urn:sha1:9f73487c4c24fbb2890022060b897856d17be298</id>
<content type='text'>
The main motivation here being .ORDER to render -jN &gt; 1 harmless; svr4/ibcs2
targets were also refactored a bit, but both are irregular and cannot use
sysent.mk as-is due to differences in files generated. I have no interest in
refactoring, since these are gone in head anyways.

r355473: sysent: Reduce duplication and improve readability.

Use the power of variable to avoid spelling out source and generated
files too many times.  The previous Makefiles were hard to read, hard to
edit, and badly formatted.

r356540:
kern/Makefile: systrace_args.c is also generated

r356604:
Set .ORDER for makesyscalls generated files

When either makesyscalls.lua or syscalls.master changes, all of the
${GENERATED} targets are now out-of-date. With make jobs &gt; 1, this means we
will run the makesyscalls script in parallel for the same ABI, generating
the same set of output files.

Prior to r356603 , there is a large window for interlacing output for some
of the generated files that we were generating in-place rather than staging
in a temp dir. After that, we still should't need to run the script more
than once per-ABI as the first invocation should update all of them. Add
.ORDER to do so cleanly.

r356868:
sysent targets: further cleanup and deduplication

r355473 vastly improved the readability and cleanliness of these Makefiles.
Every single one of them follows the same pattern and duplicates the exact
same logic.

Now that we have GENERATED/SRCS, split SRCS up into the two parameters we'll
use for ${MAKESYSCALLS} rather than assuming a specific ordering of SRCS and
include a common sysent.mk to handle the rest. This makes it less tedious to
make sweeping changes.

Some default values are provided for GENERATED/SYSENT_*; almost all of these
just use a 'syscalls.master' and 'syscalls.conf' in cwd, and they all use
effectively the same filenames with an arbitrary prefix. Most ABIs will be
able to get away with just setting GENERATED_PREFIX and including
^/sys/conf/sysent.mk, while others only need light additions. kern/Makefile
is the notable exception, as it doesn't take a SYSENT_CONF and the generated
files are spread out between ^/sys/kern and ^/sys/sys, but it otherwise fits
the pattern enough to use the common version.

r356937:
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.
</content>
</entry>
<entry>
<title>MFC r348446:</title>
<updated>2019-08-28T08:05:16Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2019-08-28T08:05:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b1db5e7b9812c1291f3eeffcafd5ceb6deadf049'/>
<id>urn:sha1:b1db5e7b9812c1291f3eeffcafd5ceb6deadf049</id>
<content type='text'>
makesyscalls.sh: always use absolute path for syscalls.conf

syscalls.conf is included using "." which per the Open Group:

 If file does not contain a &lt;slash&gt;, the shell shall use the search
 path specified by PATH to find the directory containing file.

POSIX shells don't fall back to the current working directory.

Submitted by:	Nathaniel Wesley Filardo &lt;nwf20@cl.cam.ac.uk&gt;
Reviewed by:	bdrewery
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D20476
</content>
</entry>
<entry>
<title>Don't use an .OBJDIR for 'make sysent'.</title>
<updated>2018-01-29T19:14:15Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2018-01-29T19:14:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=595109196aa70002ddd7179ba5c1674b7164013d'/>
<id>urn:sha1:595109196aa70002ddd7179ba5c1674b7164013d</id>
<content type='text'>
Reported by:	emaste, jhb
Sponsored by:	Dell EMC
</content>
</entry>
<entry>
<title>Don't create pointless backups of generated files in "make sysent".</title>
<updated>2016-07-28T21:29:04Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2016-07-28T21:29:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=40018b91dde2f73c2973c89898632192b39858ea'/>
<id>urn:sha1:40018b91dde2f73c2973c89898632192b39858ea</id>
<content type='text'>
Any sensible workflow will include a revision control system from which
to restore the old files if required.  In normal usage, developers just
have to clean up the mess.

Reviewed by:	jhb
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D7353
</content>
</entry>
<entry>
<title>add DTrace systrace support for linux32 and freebsd32 on amd64 syscalls</title>
<updated>2011-03-12T08:51:43Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2011-03-12T08:51:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=56ede1074ef3a7b1a6f6ba8f07348531a211b7dc'/>
<id>urn:sha1:56ede1074ef3a7b1a6f6ba8f07348531a211b7dc</id>
<content type='text'>
This commits makes necessary changes in syscall/sysent generation
infrastructure.

PR:		kern/152822
Submitted by:	Artem Belevich &lt;fbsdlist@src.cx&gt;
Reviewed by:	jhb (ealier version)
MFC after:	3 weeks
</content>
</entry>
<entry>
<title>Make the target a little bit more generic.</title>
<updated>2000-11-01T08:47:34Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2000-11-01T08:47:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=83d29130087d4f60fe1adbad055e9f1e7040e81b'/>
<id>urn:sha1:83d29130087d4f60fe1adbad055e9f1e7040e81b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>$Id$ -&gt; $FreeBSD$</title>
<updated>1999-08-28T01:08:13Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-08-28T01:08:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c3aac50f284c6cca5b4f2eb46aaa13812cb8b630'/>
<id>urn:sha1:c3aac50f284c6cca5b4f2eb46aaa13812cb8b630</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Be consistant with the other syscall makefile's handling of the default</title>
<updated>1997-03-29T11:17:26Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1997-03-29T11:17:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e58a2e4c46b2e21878e73baf9a434c13ef714076'/>
<id>urn:sha1:e58a2e4c46b2e21878e73baf9a434c13ef714076</id>
<content type='text'>
target (ie: don't do anything accidently)
</content>
</entry>
<entry>
<title>Forgot $Id$, break a long line</title>
<updated>1997-03-29T10:48:49Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1997-03-29T10:48:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2b81b1431e28685e8b0161e2d8f047af5b6e80a7'/>
<id>urn:sha1:2b81b1431e28685e8b0161e2d8f047af5b6e80a7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a Makefile for regenerating the syscall tables</title>
<updated>1997-03-29T10:45:39Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1997-03-29T10:45:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=64f873e1f350c738a812580c740eca042f675a2f'/>
<id>urn:sha1:64f873e1f350c738a812580c740eca042f675a2f</id>
<content type='text'>
</content>
</entry>
</feed>
