mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
8c444cbc45
This is to make the Makefile more easily extendable for new ABIs. This also makes several other subtle changes: - The build now is given a list of ABIs to use based on the MACHINE_ARCH or MACHINE_CPUARCH. These ABIs have a related path in sys/ that is used to generate their syscalls. For each ABI to build check for a ABI.c, MACHINE_ARCH-ABI.c, or a MACHINE_CPUARCH-ABI.c. This matches the old behavior needed for archs such as powerpc* and mips*. - The ABI source file selection allows for simpler assignment of common ABIs such as "fbsd32" from sys/compat/freebsd32, or cloudabi64. - Expand 'fbsd' to 'freebsd' everywhere for consistency. - Split out the powerpc-fbsd.c file into a powerpc64-freebsd32.c to be more like the amd64-freebsd32.c file and to more easily allow the auto-generation of ABI handling to work. - Rename 'syscalls.h' to 'fbsd_syscalls.h' to lessen the ambiguity and avoid confusion with syscall.h (such as in r288997). - For non-native syscall header files, they are now renamed to be ABI_syscalls.h, where ABI is what ABI the Makefile is building. - Remove all of the makesyscalls config files. The "native" one being name i386.conf was a long outstanding bug. They were all the same except for the data they generated, so now it is just auto-generated as a build artifact. - The syscalls array is now fixed to be static in the syscalls header to remove the compiler warning about non-extern. This was worked around in the aarch64-fbsd.c file but not the others. - All syscall table names are now just 'syscallnames' since they don't need to be different as they are all static in their own ABI files. The alternative is to name them ABI_syscallnames which does not seem necessary. Reviewed by: ed, jhb MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D3851
31 lines
681 B
Makefile
31 lines
681 B
Makefile
# $FreeBSD$
|
|
# Autogenerated - do NOT edit!
|
|
|
|
DIRDEPS = \
|
|
gnu/lib/csu \
|
|
gnu/lib/libgcc \
|
|
include \
|
|
include/arpa \
|
|
include/rpc \
|
|
include/xlocale \
|
|
lib/${CSU_DIR} \
|
|
lib/libc \
|
|
lib/libcompiler_rt \
|
|
|
|
|
|
.include <dirdeps.mk>
|
|
|
|
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
|
|
# local dependencies - needed for -jN in clean tree
|
|
amd64-cloudabi64.o: cloudabi64_syscalls.h
|
|
amd64-cloudabi64.po: cloudabi64_syscalls.h
|
|
amd64-freebsd.o: freebsd_syscalls.h
|
|
amd64-freebsd.po: freebsd_syscalls.h
|
|
amd64-freebsd32.o: freebsd32_syscalls.h
|
|
amd64-freebsd32.po: freebsd32_syscalls.h
|
|
amd64-linux32.o: amd64-linux32_syscalls.h
|
|
amd64-linux32.po: amd64-linux32_syscalls.h
|
|
ioctl.o: ioctl.c
|
|
ioctl.po: ioctl.c
|
|
.endif
|