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