Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 457daa2b authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Hook up cc-cross-prefix support.



This implements a simple case that just iterates through the common
cases, looking at UTS_MACHINE for hints.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent b412a49a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -101,6 +101,12 @@ LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_PAGE_OFFSET) \
		   -e phys_stext_shmedia
endif

ifneq ($(SUBARCH),$(ARCH))
  ifeq ($(CROSS_COMPILE),)
    CROSS_COMPILE := $(call cc-cross-prefix, $(UTS_MACHINE)-linux-  $(UTS_MACHINE)-linux-gnu-  $(UTS_MACHINE)-unknown-linux-gnu-)
  endif
endif

ifdef CONFIG_CPU_LITTLE_ENDIAN
ld-bfd			:= elf32-$(UTS_MACHINE)-linux
LDFLAGS_vmlinux		+= --defsym 'jiffies=jiffies_64' --oformat $(ld-bfd)