Changeset View
Changeset View
Standalone View
Standalone View
Makefile
Show First 20 Lines • Show All 486 Lines • ▼ Show 20 Lines | |||||
# only supported by GCC if a suitable toolchain is present or enabled. | # only supported by GCC if a suitable toolchain is present or enabled. | ||||
# In all cases, if the user specifies TARGETS on the command line, | # In all cases, if the user specifies TARGETS on the command line, | ||||
# honor that most of all. | # honor that most of all. | ||||
# | # | ||||
TARGETS?=amd64 arm arm64 i386 mips powerpc riscv sparc64 | TARGETS?=amd64 arm arm64 i386 mips powerpc riscv sparc64 | ||||
_UNIVERSE_TARGETS= ${TARGETS} | _UNIVERSE_TARGETS= ${TARGETS} | ||||
TARGET_ARCHES_arm?= armv6 armv7 | TARGET_ARCHES_arm?= armv6 armv7 | ||||
TARGET_ARCHES_arm64?= aarch64 | TARGET_ARCHES_arm64?= aarch64 | ||||
TARGET_ARCHES_mips?= mipsel mips mips64el mips64 mipsn32 mipselhf mipshf mips64elhf mips64hf | TARGET_ARCHES_mips?= mipsel mips mips64el mips64 mipselhf mipshf mips64elhf mips64hf | ||||
emaste: I suppose we're set up to use the same toolchain for all of mips, and with this change n32 is… | |||||
arichardsonAuthorUnsubmitted Done Inline ActionsYeah I couldn't see a way of using external toolchain only for a given TARGET_ARCH so I dropped n32 from the list instead. arichardson: Yeah I couldn't see a way of using external toolchain only for a given TARGET_ARCH so I dropped… | |||||
# powerpcspe excluded until clang fixed | # powerpcspe excluded until clang fixed | ||||
TARGET_ARCHES_powerpc?= powerpc powerpc64 | TARGET_ARCHES_powerpc?= powerpc powerpc64 | ||||
TARGET_ARCHES_riscv?= riscv64 riscv64sf | TARGET_ARCHES_riscv?= riscv64 riscv64sf | ||||
.for target in ${TARGETS} | .for target in ${TARGETS} | ||||
TARGET_ARCHES_${target}?= ${target} | TARGET_ARCHES_${target}?= ${target} | ||||
.endfor | .endfor | ||||
MAKE_PARAMS_mips?= CROSS_TOOLCHAIN=mips-gcc6 | |||||
MAKE_PARAMS_sparc64?= CROSS_TOOLCHAIN=sparc64-gcc6 | MAKE_PARAMS_sparc64?= CROSS_TOOLCHAIN=sparc64-gcc6 | ||||
TOOLCHAINS_mips= mips-gcc6 | |||||
TOOLCHAINS_sparc64= sparc64-gcc6 | 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. | # universe if required toolchain packages are missing. | ||||
.for target in mips sparc64 | .for target in sparc64 | ||||
emasteUnsubmitted Not Done Inline ActionsPresumably this whole block disappears when rebasing. emaste: Presumably this whole block disappears when rebasing. | |||||
emasteUnsubmitted Not Done Inline ActionsI think it's probably better to remove this block altogether, because with no entries it's going to bitrot. That said I think this change is fine for now, we can leave it here for a bit. emaste: I think it's probably better to remove this block altogether, because with no entries it's… | |||||
.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}.mk) | .if !exists(/usr/local/share/toolchains/${toolchain}.mk) | ||||
Not Done Inline ActionsI think it's fine to leave this block for now. I will probably at some point add some kind of USE_GCC=yes option to let one do a 'make tinderbox' using gcc instead of clang and would reuse some of these bits for that. jhb: I think it's fine to leave this block for now. I will probably at some point add some kind of… | |||||
_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} port or package to build" | @echo ">> ${target} skipped - install ${toolchain} port or package to build" | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |
I suppose we're set up to use the same toolchain for all of mips, and with this change n32 is no longer part of universe. OK.