Changeset View
Changeset View
Standalone View
Standalone View
sys/modules/linux/Makefile
Show All 13 Lines | SRCS= linux_fork.c linux${SFX}_dummy.c linux_file.c linux_event.c \ | ||||
linux_futex.c linux_getcwd.c linux_ioctl.c linux_ipc.c \ | linux_futex.c linux_getcwd.c linux_ioctl.c linux_ipc.c \ | ||||
linux${SFX}_machdep.c linux_misc.c linux_signal.c \ | linux${SFX}_machdep.c linux_misc.c linux_signal.c \ | ||||
linux_socket.c linux_stats.c linux_sysctl.c linux${SFX}_sysent.c \ | linux_socket.c linux_stats.c linux_sysctl.c linux${SFX}_sysent.c \ | ||||
linux${SFX}_sysvec.c linux_uid16.c linux_time.c \ | linux${SFX}_sysvec.c linux_uid16.c linux_time.c \ | ||||
linux_timer.c linux_vdso.c \ | linux_timer.c linux_vdso.c \ | ||||
opt_inet6.h opt_compat.h opt_posix.h opt_usb.h vnode_if.h \ | opt_inet6.h opt_compat.h opt_posix.h opt_usb.h vnode_if.h \ | ||||
device_if.h bus_if.h \ | device_if.h bus_if.h \ | ||||
linux${SFX}_support.s | linux${SFX}_support.s | ||||
DPSRCS= assym.s linux${SFX}_genassym.c | DPSRCS= assym.inc linux${SFX}_genassym.c | ||||
# XXX: for assym.s | # XXX: for assym.inc | ||||
SRCS+= opt_kstack_pages.h opt_nfs.h opt_compat.h opt_hwpmc_hooks.h | SRCS+= opt_kstack_pages.h opt_nfs.h opt_compat.h opt_hwpmc_hooks.h | ||||
.if ${MACHINE_CPUARCH} == "i386" | .if ${MACHINE_CPUARCH} == "i386" | ||||
SRCS+= opt_apic.h | SRCS+= opt_apic.h | ||||
.endif | .endif | ||||
OBJS= ${VDSO}.so | OBJS= ${VDSO}.so | ||||
.if ${MACHINE_CPUARCH} == "i386" | .if ${MACHINE_CPUARCH} == "i386" | ||||
Show All 10 Lines | |||||
EXPORT_SYMS+= linux_ioctl_unregister_handler | EXPORT_SYMS+= linux_ioctl_unregister_handler | ||||
.endif | .endif | ||||
CLEANFILES= linux${SFX}_assym.h linux${SFX}_genassym.o linux${SFX}_locore.o | CLEANFILES= linux${SFX}_assym.h linux${SFX}_genassym.o linux${SFX}_locore.o | ||||
linux${SFX}_assym.h: linux${SFX}_genassym.o | linux${SFX}_assym.h: linux${SFX}_genassym.o | ||||
sh ${SYSDIR}/kern/genassym.sh linux${SFX}_genassym.o > ${.TARGET} | sh ${SYSDIR}/kern/genassym.sh linux${SFX}_genassym.o > ${.TARGET} | ||||
linux${SFX}_locore.o: linux${SFX}_assym.h assym.s | linux${SFX}_locore.o: linux${SFX}_assym.h assym.inc | ||||
${CC} -x assembler-with-cpp -DLOCORE -m32 -shared -s \ | ${CC} -x assembler-with-cpp -DLOCORE -m32 -shared -s \ | ||||
-pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -nostdinc -nostdlib \ | -pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -nostdinc -nostdlib \ | ||||
-fno-omit-frame-pointer -fPIC \ | -fno-omit-frame-pointer -fPIC \ | ||||
-Wl,-T${SRCTOP}/sys/${MACHINE_CPUARCH}/linux${SFX}/${VDSO}.lds.s \ | -Wl,-T${SRCTOP}/sys/${MACHINE_CPUARCH}/linux${SFX}/${VDSO}.lds.s \ | ||||
-Wl,-soname=${VDSO}.so.1,--eh-frame-hdr,-warn-common \ | -Wl,-soname=${VDSO}.so.1,--eh-frame-hdr,-warn-common \ | ||||
${.IMPSRC} -o ${.TARGET} | ${.IMPSRC} -o ${.TARGET} | ||||
linux${SFX}_support.o: linux${SFX}_assym.h assym.s | linux${SFX}_support.o: linux${SFX}_assym.h assym.inc | ||||
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ | ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ | ||||
${.IMPSRC} -o ${.TARGET} | ${.IMPSRC} -o ${.TARGET} | ||||
.if ${MACHINE_CPUARCH} == "amd64" | .if ${MACHINE_CPUARCH} == "amd64" | ||||
${VDSO}.so: linux${SFX}_locore.o | ${VDSO}.so: linux${SFX}_locore.o | ||||
${OBJCOPY} --input-target binary --output-target elf64-x86-64-freebsd \ | ${OBJCOPY} --input-target binary --output-target elf64-x86-64-freebsd \ | ||||
--binary-architecture i386 linux${SFX}_locore.o ${.TARGET} | --binary-architecture i386 linux${SFX}_locore.o ${.TARGET} | ||||
strip -N _binary_linux${SFX}_locore_o_size ${.TARGET} | strip -N _binary_linux${SFX}_locore_o_size ${.TARGET} | ||||
Show All 20 Lines |