aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/linux/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* sysent targets: further cleanup and deduplicationKyle Evans2020-01-181-23/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Reviewed by: brooks, imp Nice!: emaste Differential Revision: https://reviews.freebsd.org/D23197 Notes: svn path=/head/; revision=356868
* Set .ORDER for makesyscalls generated filesKyle Evans2020-01-101-0/+3
| | | | | | | | | | | | | | | | | | | | When either makesyscalls.lua or syscalls.master changes, all of the ${GENERATED} targets are now out-of-date. With make jobs > 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. Reviewed by: brooks Discussed with: sjg Differential Revision: https://reviews.freebsd.org/D23099 Notes: svn path=/head/; revision=356604
* sysent: Reduce duplication and improve readability.Brooks Davis2019-12-061-4/+12
| | | | | | | | | | | | | 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. Reviewed by: kevans, emaste Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D22714 Notes: svn path=/head/; revision=355473
* Convert in-tree sysent targets to use new makesyscalls.luaKyle Evans2019-11-181-2/+4
| | | | | | | | | | | | flua is bootstrapped as part of the build for those on older versions/revisions that don't yet have flua installed. Once upgraded past r354833, "make sysent" will again naturally work as expected. Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D21894 Notes: svn path=/head/; revision=354835
* makesyscalls.sh: always use absolute path for syscalls.confBrooks Davis2019-05-301-2/+2
| | | | | | | | | | | | | | | | | syscalls.conf is included using "." which per the Open Group: If file does not contain a <slash>, 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 <nwf20@cl.cam.ac.uk> Reviewed by: bdrewery Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D20476 Notes: svn path=/head/; revision=348446
* Don't use an .OBJDIR for 'make sysent'.Bryan Drewery2018-01-291-0/+3
| | | | | | | | Reported by: emaste, jhb Sponsored by: Dell EMC Notes: svn path=/head/; revision=328560
* Don't create pointless backups of generated files in "make sysent".Brooks Davis2016-07-281-5/+0
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=303464
* Add preliminary support for x86-64 Linux binaries.Dmitry Chagin2015-05-241-0/+17
Differential Revision: https://reviews.freebsd.org/D1076 Notes: svn path=/head/; revision=283424