Remove building with NOCRYPTO option
[minix3.git] / minix / kernel / arch / earm / Makefile.inc
blobccb3a8dc27b50067ba54e04eee72d542ed6caf68
1 # Makefile for arch-dependent kernel code
2 .include <bsd.own.mk>
4 HERE=${.CURDIR}/arch/${MACHINE_ARCH}
5 .PATH:  ${HERE}
7 # objects we want unpaged from -lc
8 MINLIB_OBJS_UNPAGED= get_bp.o
9 get_bp.o:       ${NETBSDSRCDIR}/minix/lib/libc/arch/arm/get_bp.S 
11 # objects we want unpaged from -lsys
12 SYS_OBJS_UNPAGED=assert.o stacktrace.o
13 assert.o:       ${NETBSDSRCDIR}/minix/lib/libsys/assert.c
14 stacktrace.o:   ${NETBSDSRCDIR}/minix/lib/libsys/stacktrace.c
16 # objects we want unpaged from -lminc
17 MINC_OBJS_UNPAGED= atoi.o \
18         printf.o subr_prf.o \
19         strcmp.o strcpy.o strlen.o strncmp.o \
20         memcpy.o memmove.o memset.o 
21 MINC_OBJS_UNPAGED+= divmodsi4.o divsi3.o udivsi3.o umodsi3.o \
22         umoddi3.o udivmoddi4.o __aeabi_idiv0.o aeabi_idivmod.o aeabi_uidivmod.o \
23         udivmodsi4.o aeabi_uldivmod.o
24 atoi.o:         ${NETBSDSRCDIR}/minix/lib/libminc/atoi.c
25 printf.o:       ${NETBSDSRCDIR}/sys/lib/libsa/printf.c
26 subr_prf.o:     ${NETBSDSRCDIR}/sys/lib/libsa/subr_prf.c
27 memcpy.o:       ${NETBSDSRCDIR}/common/lib/libc/arch/arm/string/memcpy.S
28 memmove.o:      ${NETBSDSRCDIR}/common/lib/libc/arch/arm/string/memmove.S
29 memset.o:       ${NETBSDSRCDIR}/common/lib/libc/arch/arm/string/memset.S
30 strlen.o:       ${NETBSDSRCDIR}/common/lib/libc/arch/arm/string/strlen.S
31 strcpy.o:       ${NETBSDSRCDIR}/common/lib/libc/arch/arm/string/strcpy.S
32 strcmp.o:       ${NETBSDSRCDIR}/common/lib/libc/arch/arm/string/strcmp.S
33 __aeabi_idiv0.o:        ${NETBSDSRCDIR}/common/lib/libc/arch/arm/gen/__aeabi_idiv0.c
34 CPPFLAGS.__aeabi_idiv0.c+= -D_STANDALONE -I${NETBSDSRCDIR}/sys
36 divsi3.o:       ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist/lib/builtins/divsi3.c
37 udivsi3.o:      ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist/lib/builtins/udivsi3.c
38 umodsi3.o:      ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist/lib/builtins/umodsi3.c
39 umoddi3.o:      ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist/lib/builtins/umoddi3.c
40 udivmoddi4.o:   ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist/lib/builtins/udivmoddi4.c
41 divmodsi4.o:            ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist/lib/builtins/arm/divmodsi4.S
42 udivmodsi4.o:           ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist/lib/builtins/arm/udivmodsi4.S
43 aeabi_idivmod.o:        ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist/lib/builtins/arm/aeabi_idivmod.S
44 aeabi_uidivmod.o:       ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist/lib/builtins/arm/aeabi_uidivmod.S
45 aeabi_uldivmod.o:       ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist/lib/builtins/arm/aeabi_uldivmod.S
47 # the following is required by pre_init.c
48 strncmp.o:      ${NETBSDSRCDIR}/common/lib/libc/string/strncmp.c
50 # LSC: putchar and kputc have the same signature. A bit hackish.
51 CPPFLAGS.subr_prf.c+= -Dputchar=kputc
53 # Activate optional support, may be deactivated.
54 CPPFLAGS.subr_prf.c+= -DLIBSA_PRINTF_LONGLONG_SUPPORT -DLIBSA_PRINTF_WIDTH_SUPPORT
56 .include "bsp/ti/Makefile.inc"
58 # some object files we give a symbol prefix (or namespace) of __k_unpaged_
59 # that must live in their own unique namespace.
61 .for unpaged_obj in head.o pre_init.o direct_tty_utils.o \
62         pg_utils.o klib.o utility.o arch_reset.o \
63         ${MINLIB_OBJS_UNPAGED} ${MINC_OBJS_UNPAGED} ${SYS_OBJS_UNPAGED} ${BSP_OBJS_UNPAGED}
64 unpaged_${unpaged_obj}: ${unpaged_obj}
65         ${OBJCOPY} --prefix-symbols=__k_unpaged_ ${.OBJDIR}/${unpaged_obj} $@
66 UNPAGED_OBJS += unpaged_${unpaged_obj}
67 ORIG_UNPAGED_OBJS += ${unpaged_obj}
68 .endfor
71 CLEANFILES+= ${ORIG_UNPAGED_OBJS}
73 SRCS+=  mpx.S arch_clock.c arch_do_vmctl.c arch_system.c do_padconf.c \
74         exception.c hw_intr.c klib.S memory.c \
75         protect.c direct_tty_utils.c arch_reset.c \
76         pg_utils.c phys_copy.S phys_memset.S exc.S
78 OBJS.kernel+=   ${UNPAGED_OBJS}
80 klib.o mpx.o head.o: procoffsets.h
82 SRCS+= procoffsets.h
84 PROCOFFSETSCF=procoffsets.cf
86 .PATH: ${NETBSDSRCDIR}/minix/include/arch/${MACHINE_ARCH}/include
88 procoffsets.h: ${PROCOFFSETSCF} kernel.h proc.h stackframe.h archtypes.h
89         ${_MKTARGET_CREATE}
90         ${TOOL_CAT} ${HERE}/${PROCOFFSETSCF} | \
91                 ${TOOL_GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} \
92                 ${CPPFLAGS} ${PROF} ${${USE_BITCODE:Uno} == "yes":? -fno-lto:} \
93                 ${GENASSYM_CPPFLAGS} >$@.tmp && \
94           mv -f $@.tmp $@ 
96 sconst.h: procoffsets.h
97 apic_asm.o head.o klib.o mpx.o: sconst.h