2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2014-11-21 22:51:33 +00:00
|
|
|
|
|
|
|
head-y := arch/m68k/cpu/$(CPU)/start.o
|
|
|
|
|
|
|
|
libs-y += arch/m68k/cpu/$(CPU)/
|
|
|
|
libs-y += arch/m68k/lib/
|
2015-03-27 08:01:13 +00:00
|
|
|
|
|
|
|
cpuflags-$(CONFIG_M5208) := -mcpu=5208
|
|
|
|
cpuflags-$(CONFIG_M5235) := -mcpu=5235 -fPIC
|
|
|
|
cpuflags-$(CONFIG_M5249) := -mcpu=5249
|
|
|
|
cpuflags-$(CONFIG_M5253) := -mcpu=5253
|
|
|
|
cpuflags-$(CONFIG_M5271) := -mcpu=5271
|
|
|
|
cpuflags-$(CONFIG_M5272) := -mcpu=5272
|
|
|
|
cpuflags-$(CONFIG_M5275) := -mcpu=5275
|
|
|
|
cpuflags-$(CONFIG_M5282) := -mcpu=5282
|
|
|
|
cpuflags-$(CONFIG_M5307) := -mcpu=5307
|
|
|
|
cpuflags-$(CONFIG_MCF5301x) := -mcpu=53015 -fPIC
|
|
|
|
cpuflags-$(CONFIG_MCF532x) := -mcpu=5329 -fPIC
|
|
|
|
cpuflags-$(CONFIG_MCF5441x) := -mcpu=54418 -fPIC
|
|
|
|
|
|
|
|
PLATFORM_CPPFLAGS += $(cpuflags-y)
|
|
|
|
|
|
|
|
|
|
|
|
ldflags-$(CONFIG_MCF5441x) := --got=single
|
|
|
|
|
|
|
|
ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
|
|
|
|
ifneq (,$(findstring GOT,$(shell $(LD) --help)))
|
2020-03-27 15:46:27 +00:00
|
|
|
KBUILD_LDFLAGS += $(ldflags-y)
|
2015-03-27 08:01:13 +00:00
|
|
|
endif
|
|
|
|
endif
|