Changeset View
Changeset View
Standalone View
Standalone View
head/Makefile
Show First 20 Lines • Show All 503 Lines • ▼ Show 20 Lines | |||||
TARGET_ARCHES_riscv?= riscv64 | TARGET_ARCHES_riscv?= riscv64 | ||||
.for target in ${TARGETS} | .for target in ${TARGETS} | ||||
TARGET_ARCHES_${target}?= ${target} | TARGET_ARCHES_${target}?= ${target} | ||||
.endfor | .endfor | ||||
MAKE_PARAMS_riscv?= CROSS_TOOLCHAIN=riscv64-gcc | MAKE_PARAMS_riscv?= CROSS_TOOLCHAIN=riscv64-gcc | ||||
.if !defined(MAKE_OBSOLETE_GCC) | .if !defined(MAKE_OBSOLETE_GCC) | ||||
OBSOLETE_GCC_TARGETS=${_OBSOLETE_GCC_TARGETS} | OBSOLETE_GCC_TARGETS=${_OBSOLETE_GCC_TARGETS} | ||||
MAKE_PARAMS_mips?= CROSS_TOOLCHAIN=mips-gcc | MAKE_PARAMS_mips?= CROSS_TOOLCHAIN=mips-gcc6 | ||||
MAKE_PARAMS_powerpc?= CROSS_TOOLCHAIN=powerpc64-gcc | MAKE_PARAMS_powerpc?= CROSS_TOOLCHAIN=powerpc64-gcc6 | ||||
MAKE_PARAMS_sparc64?= CROSS_TOOLCHAIN=sparc64-gcc | MAKE_PARAMS_sparc64?= CROSS_TOOLCHAIN=sparc64-gcc6 | ||||
.endif | .endif | ||||
TOOLCHAINS_mips= mips | TOOLCHAINS_mips= mips-gcc6 | ||||
TOOLCHAINS_powerpc= powerpc64 | TOOLCHAINS_powerpc= powerpc64-gcc6 | ||||
TOOLCHAINS_riscv= riscv64 | TOOLCHAINS_riscv= riscv64-gcc | ||||
TOOLCHAINS_sparc64= sparc64 | TOOLCHAINS_sparc64= sparc64-gcc6 | ||||
# Remove architectures only supported by external toolchain from | # Remove architectures only supported by external toolchain from | ||||
# universe if required toolchain packages are missing. riscv requires | # universe if required toolchain packages are missing. riscv requires | ||||
# an out-of-tree toolchain. When MAKE_OBSOLETE_GCC is not defined, | # an out-of-tree toolchain. When MAKE_OBSOLETE_GCC is not defined, | ||||
# the same logic appleis to the obsolete gcc targets. | # the same logic appleis to the obsolete gcc targets. | ||||
.for target in riscv ${OBSOLETE_GCC_TARGETS} | .for target in riscv ${OBSOLETE_GCC_TARGETS} | ||||
.if ${_UNIVERSE_TARGETS:M${target}} | .if ${_UNIVERSE_TARGETS:M${target}} | ||||
.for toolchain in ${TOOLCHAINS_${target}} | .for toolchain in ${TOOLCHAINS_${target}} | ||||
.if !exists(/usr/local/share/toolchains/${toolchain}-gcc.mk) | .if !exists(/usr/local/share/toolchains/${toolchain}.mk) | ||||
_UNIVERSE_TARGETS:= ${_UNIVERSE_TARGETS:N${target}} | _UNIVERSE_TARGETS:= ${_UNIVERSE_TARGETS:N${target}} | ||||
universe: universe_${toolchain}_skip .PHONY | universe: universe_${toolchain}_skip .PHONY | ||||
universe_epilogue: universe_${toolchain}_skip .PHONY | universe_epilogue: universe_${toolchain}_skip .PHONY | ||||
universe_${toolchain}_skip: universe_prologue .PHONY | universe_${toolchain}_skip: universe_prologue .PHONY | ||||
@echo ">> ${target} skipped - install ${toolchain}-xtoolchain-gcc port or package to build" | @echo ">> ${target} skipped - install ${toolchain} port or package to build" | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
.if defined(UNIVERSE_TARGET) | .if defined(UNIVERSE_TARGET) | ||||
MAKE_JUST_WORLDS= YES | MAKE_JUST_WORLDS= YES | ||||
.else | .else | ||||
▲ Show 20 Lines • Show All 240 Lines • Show Last 20 Lines |