mirror of
https://github.com/richfelker/musl-cross-make.git
synced 2025-08-17 13:53:24 +02:00
litecross: add missing arch name remapping for or1k from gcc to kernel
this was overlooked long ago and makes it so kernel headers can't be built & installed for or1k.
This commit is contained in:
parent
5fea505f63
commit
038afb6dbd
@ -258,7 +258,7 @@ install-gcc: | obj_gcc/.lc_built
|
||||
|
||||
ifneq ($(LINUX_SRCDIR),)
|
||||
TARGET_ARCH = $(firstword $(subst -, ,$(TARGET)))
|
||||
TARGET_ARCH_MANGLED = $(patsubst i%86,x86,$(patsubst aarch64%,arm64%,$(TARGET_ARCH)))
|
||||
TARGET_ARCH_MANGLED = $(patsubst or1k,openrisc,$(patsubst i%86,x86,$(patsubst aarch64%,arm64%,$(TARGET_ARCH))))
|
||||
LINUX_ARCH_LIST = $(sort $(notdir $(wildcard $(LINUX_SRCDIR)/arch/*)))
|
||||
LINUX_ARCH = $(lastword $(foreach a,$(LINUX_ARCH_LIST),$(if $(filter $(a)%,$(TARGET_ARCH_MANGLED)),$(a))))
|
||||
ifneq ($(LINUX_ARCH),)
|
||||
|
Loading…
x
Reference in New Issue
Block a user