Changeset View
Changeset View
Standalone View
Standalone View
head/sys/modules/linux64/Makefile
Show All 24 Lines | CLEANFILES= linux_assym.h linux_genassym.o linux_locore.o \ | ||||
genassym.o | genassym.o | ||||
OBJS= ${VDSO}.so | OBJS= ${VDSO}.so | ||||
linux_assym.h: linux_genassym.o | linux_assym.h: linux_genassym.o | ||||
sh ${SYSDIR}/kern/genassym.sh linux_genassym.o > ${.TARGET} | sh ${SYSDIR}/kern/genassym.sh linux_genassym.o > ${.TARGET} | ||||
linux_locore.o: linux_locore.asm linux_assym.h | linux_locore.o: linux_locore.asm linux_assym.h | ||||
${CC} -x assembler-with-cpp -DLOCORE -shared -mcmodel=small \ | ${CC} ${CCLDFLAGS} -x assembler-with-cpp -DLOCORE -shared -mcmodel=small \ | ||||
-pipe -I. -I${SYSDIR} ${WERROR} -Wall -fno-common -fPIC -nostdinc \ | -pipe -I. -I${SYSDIR} ${WERROR} -Wall -fno-common -fPIC -nostdinc \ | ||||
-Wl,-T${SRCTOP}/sys/${MACHINE}/linux/${VDSO}.lds.s \ | -Wl,-T${SRCTOP}/sys/${MACHINE}/linux/${VDSO}.lds.s \ | ||||
-Wl,-soname=${VDSO}.so.1,-warn-common -nostdlib \ | -Wl,-soname=${VDSO}.so.1,-warn-common -nostdlib \ | ||||
${.IMPSRC} -o ${.TARGET} | ${.IMPSRC} -o ${.TARGET} | ||||
.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" | ||||
Show All 21 Lines |