Changeset View
Changeset View
Standalone View
Standalone View
sys/modules/linux64/Makefile
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
.if ${MACHINE_CPUARCH} == "aarch64" | .if ${MACHINE_CPUARCH} == "aarch64" | ||||
OBJCOPY_TARGET=--output-target elf64-littleaarch64 --binary-architecture aarch64 | OBJCOPY_TARGET=--output-target elf64-littleaarch64 --binary-architecture aarch64 | ||||
.elif ${MACHINE_CPUARCH} == "amd64" | .elif ${MACHINE_CPUARCH} == "amd64" | ||||
OBJCOPY_TARGET=--output-target elf64-x86-64 --binary-architecture i386:x86-64 | OBJCOPY_TARGET=--output-target elf64-x86-64 --binary-architecture i386:x86-64 | ||||
.else | .else | ||||
.error ${MACHINE_CPUARCH} not yet supported by linux64 | .error ${MACHINE_CPUARCH} not yet supported by linux64 | ||||
.endif | .endif | ||||
${VDSO}.so: linux_locore.o | ${VDSO}.so: linux_locore.o | ||||
${OBJCOPY} --input-target binary ${OBJCOPY_TARGET} -S -g \ | ${OBJCOPY} --input-target binary ${OBJCOPY_TARGET} \ | ||||
linux_locore.o ${.TARGET} | linux_locore.o ${.TARGET} | ||||
${STRIPBIN} -N _binary_linux_locore_o_size ${.TARGET} | ${STRIPBIN} -N _binary_linux_locore_o_size ${.TARGET} | ||||
linux_support.o: assym.inc linux_assym.h | linux_support.o: assym.inc linux_assym.h | ||||
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ | ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ | ||||
${.IMPSRC} -o ${.TARGET} | ${.IMPSRC} -o ${.TARGET} | ||||
linux_genassym.o: offset.inc | linux_genassym.o: offset.inc | ||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon ${.IMPSRC} | ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon ${.IMPSRC} | ||||
.if !defined(KERNBUILDDIR) | .if !defined(KERNBUILDDIR) | ||||
.warning Building Linuxulator outside of a kernel does not make sense | .warning Building Linuxulator outside of a kernel does not make sense | ||||
.endif | .endif | ||||
.include <bsd.kmod.mk> | .include <bsd.kmod.mk> |