Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Daniel Schwierzeck | 17def7d | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 2 | |
| 3 | head-y := arch/m68k/cpu/$(CPU)/start.o |
| 4 | |
| 5 | libs-y += arch/m68k/cpu/$(CPU)/ |
| 6 | libs-y += arch/m68k/lib/ |
Masahiro Yamada | 8bd8622 | 2015-03-27 17:01:13 +0900 | [diff] [blame] | 7 | |
| 8 | cpuflags-$(CONFIG_M5208) := -mcpu=5208 |
| 9 | cpuflags-$(CONFIG_M5235) := -mcpu=5235 -fPIC |
Masahiro Yamada | 8bd8622 | 2015-03-27 17:01:13 +0900 | [diff] [blame] | 10 | cpuflags-$(CONFIG_M5249) := -mcpu=5249 |
| 11 | cpuflags-$(CONFIG_M5253) := -mcpu=5253 |
| 12 | cpuflags-$(CONFIG_M5271) := -mcpu=5271 |
| 13 | cpuflags-$(CONFIG_M5272) := -mcpu=5272 |
| 14 | cpuflags-$(CONFIG_M5275) := -mcpu=5275 |
| 15 | cpuflags-$(CONFIG_M5282) := -mcpu=5282 |
| 16 | cpuflags-$(CONFIG_M5307) := -mcpu=5307 |
| 17 | cpuflags-$(CONFIG_MCF5301x) := -mcpu=53015 -fPIC |
| 18 | cpuflags-$(CONFIG_MCF532x) := -mcpu=5329 -fPIC |
| 19 | cpuflags-$(CONFIG_MCF5441x) := -mcpu=54418 -fPIC |
Masahiro Yamada | 8bd8622 | 2015-03-27 17:01:13 +0900 | [diff] [blame] | 20 | |
| 21 | PLATFORM_CPPFLAGS += $(cpuflags-y) |
| 22 | |
| 23 | |
| 24 | ldflags-$(CONFIG_MCF5441x) := --got=single |
Masahiro Yamada | 8bd8622 | 2015-03-27 17:01:13 +0900 | [diff] [blame] | 25 | |
| 26 | ifneq (,$(findstring -linux-,$(shell $(CC) --version))) |
| 27 | ifneq (,$(findstring GOT,$(shell $(LD) --help))) |
Tom Rini | 5d4ecf2 | 2020-03-27 11:46:27 -0400 | [diff] [blame] | 28 | KBUILD_LDFLAGS += $(ldflags-y) |
Masahiro Yamada | 8bd8622 | 2015-03-27 17:01:13 +0900 | [diff] [blame] | 29 | endif |
| 30 | endif |