blob: d36d9f06319994f4638ebfbfbad407e5c650f85d [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Daniel Schwierzeck17def7d2014-11-21 23:51:33 +01002
3head-y := arch/m68k/cpu/$(CPU)/start.o
4
5libs-y += arch/m68k/cpu/$(CPU)/
6libs-y += arch/m68k/lib/
Masahiro Yamada8bd86222015-03-27 17:01:13 +09007
8cpuflags-$(CONFIG_M5208) := -mcpu=5208
9cpuflags-$(CONFIG_M5235) := -mcpu=5235 -fPIC
10cpuflags-$(CONFIG_M52277) := -mcpu=52277 -fPIC
11cpuflags-$(CONFIG_M5249) := -mcpu=5249
12cpuflags-$(CONFIG_M5253) := -mcpu=5253
13cpuflags-$(CONFIG_M5271) := -mcpu=5271
14cpuflags-$(CONFIG_M5272) := -mcpu=5272
15cpuflags-$(CONFIG_M5275) := -mcpu=5275
16cpuflags-$(CONFIG_M5282) := -mcpu=5282
17cpuflags-$(CONFIG_M5307) := -mcpu=5307
18cpuflags-$(CONFIG_MCF5301x) := -mcpu=53015 -fPIC
19cpuflags-$(CONFIG_MCF532x) := -mcpu=5329 -fPIC
20cpuflags-$(CONFIG_MCF5441x) := -mcpu=54418 -fPIC
21cpuflags-$(CONFIG_MCF5445x) := -mcpu=54455 -fPIC
22cpuflags-$(CONFIG_MCF547x_8x) := -mcpu=5485 -fPIC
23
24PLATFORM_CPPFLAGS += $(cpuflags-y)
25
26
27ldflags-$(CONFIG_MCF5441x) := --got=single
28ldflags-$(CONFIG_MCF5445x) := --got=single
29ldflags-$(CONFIG_MCF547x_8x) := --got=single
30
31ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
32ifneq (,$(findstring GOT,$(shell $(LD) --help)))
33PLATFORM_LDFLAGS += $(ldflags-y)
34endif
35endif