Makefile (0f696968249784936f98f70fe497c18a78d296f9) Makefile (d3b03d746b9f12c8e6e55ca6d9528247e3bb3a84)
1# $FreeBSD$
2
3.PATH: ${SRCTOP}/sys/compat/linux ${SRCTOP}/sys/${MACHINE}/linux
4
5VDSO= linux_vdso
6
7KMOD= linux64
8SRCS= linux_fork.c linux_dummy.c linux_file.c linux_event.c \

--- 21 unchanged lines hidden (view full) ---

30
31linux_locore.o: linux_locore.s linux_assym.h
32 ${CC} -x assembler-with-cpp -DLOCORE -shared -mcmodel=small \
33 -pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -fPIC -nostdinc \
34 -Wl,-T${SRCTOP}/sys/${MACHINE}/linux/${VDSO}.lds.s \
35 -Wl,-soname=${VDSO}.so.1,-warn-common -nostdlib \
36 ${.IMPSRC} -o ${.TARGET}
37
1# $FreeBSD$
2
3.PATH: ${SRCTOP}/sys/compat/linux ${SRCTOP}/sys/${MACHINE}/linux
4
5VDSO= linux_vdso
6
7KMOD= linux64
8SRCS= linux_fork.c linux_dummy.c linux_file.c linux_event.c \

--- 21 unchanged lines hidden (view full) ---

30
31linux_locore.o: linux_locore.s linux_assym.h
32 ${CC} -x assembler-with-cpp -DLOCORE -shared -mcmodel=small \
33 -pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -fPIC -nostdinc \
34 -Wl,-T${SRCTOP}/sys/${MACHINE}/linux/${VDSO}.lds.s \
35 -Wl,-soname=${VDSO}.so.1,-warn-common -nostdlib \
36 ${.IMPSRC} -o ${.TARGET}
37
38.if ${MACHINE_CPUARCH} == "aarch64"
39OBJCOPY_TARGET=--output-target elf64-littleaarch64 --binary-architecture aarch64
40.elif ${MACHINE_CPUARCH} == "amd64"
41OBJCOPY_TARGET=--output-target elf64-x86-64 --binary-architecture i386:x86-64
42.else
43.error ${MACHINE_CPUARCH} not yet supported by linux64
44.endif
38${VDSO}.so: linux_locore.o
45${VDSO}.so: linux_locore.o
39 ${OBJCOPY} --input-target binary --output-target elf64-x86-64 \
40 -S -g --binary-architecture i386:x86-64 linux_locore.o ${.TARGET}
46 ${OBJCOPY} --input-target binary ${OBJCOPY_TARGET} -S -g \
47 linux_locore.o ${.TARGET}
41 strip -N _binary_linux_locore_o_size ${.TARGET}
42
43linux_support.o: assym.inc linux_assym.h
44 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
45 ${.IMPSRC} -o ${.TARGET}
46
47linux_genassym.o:
48 ${CC} -c ${CFLAGS:N-flto:N-fno-common} ${.IMPSRC}
49
50.if !defined(KERNBUILDDIR)
51.if defined(DEBUG)
52CFLAGS+=-DDEBUG
53.endif
54.if defined(KTR)
55CFLAGS+=-DKTR
56.endif
57.endif
58
59.include <bsd.kmod.mk>
48 strip -N _binary_linux_locore_o_size ${.TARGET}
49
50linux_support.o: assym.inc linux_assym.h
51 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
52 ${.IMPSRC} -o ${.TARGET}
53
54linux_genassym.o:
55 ${CC} -c ${CFLAGS:N-flto:N-fno-common} ${.IMPSRC}
56
57.if !defined(KERNBUILDDIR)
58.if defined(DEBUG)
59CFLAGS+=-DDEBUG
60.endif
61.if defined(KTR)
62CFLAGS+=-DKTR
63.endif
64.endif
65
66.include <bsd.kmod.mk>