bsd.cpu.mk (dc67cfef96f985aa02a78b45f5375c3c0d8f240e) bsd.cpu.mk (0869dceb9d2642defe8d34b09d65145cb3f81e09)
1# $FreeBSD$
2
3# Set default CPU compile flags and baseline CPUTYPE for each arch. The
4# compile flags must support the minimum CPU type for each architecture but
5# may tune support for more advanced processors.
6
7.if !defined(CPUTYPE) || empty(CPUTYPE)
8_CPUCFLAGS =

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

370.endif
371
372.if ${MACHINE_CPUARCH} == "riscv"
373.if ${MACHINE_ARCH:Mriscv*sf}
374CFLAGS += -march=rv64imac -mabi=lp64
375.else
376CFLAGS += -march=rv64imafdc -mabi=lp64d
377.endif
1# $FreeBSD$
2
3# Set default CPU compile flags and baseline CPUTYPE for each arch. The
4# compile flags must support the minimum CPU type for each architecture but
5# may tune support for more advanced processors.
6
7.if !defined(CPUTYPE) || empty(CPUTYPE)
8_CPUCFLAGS =

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

370.endif
371
372.if ${MACHINE_CPUARCH} == "riscv"
373.if ${MACHINE_ARCH:Mriscv*sf}
374CFLAGS += -march=rv64imac -mabi=lp64
375.else
376CFLAGS += -march=rv64imafdc -mabi=lp64d
377.endif
378
379.if ${LINKER_FEATURES:U:Mriscv-relaxations} == ""
380CFLAGS += -mno-relax
378.endif
381.endif
382.endif
379
380# NB: COPTFLAGS is handled in /usr/src/sys/conf/kern.pre.mk
381
382.if !defined(NO_CPU_CFLAGS)
383CFLAGS += ${_CPUCFLAGS}
384.endif
385
386#

--- 24 unchanged lines hidden ---
383
384# NB: COPTFLAGS is handled in /usr/src/sys/conf/kern.pre.mk
385
386.if !defined(NO_CPU_CFLAGS)
387CFLAGS += ${_CPUCFLAGS}
388.endif
389
390#

--- 24 unchanged lines hidden ---