]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/m68k/Makefile
arm64: imx: imx8mp-beacon: Migrate to OF_UPSTREAM
[thirdparty/u-boot.git] / arch / m68k / Makefile
CommitLineData
83d290c5 1# SPDX-License-Identifier: GPL-2.0+
e19db555
DS
2
3head-y := arch/m68k/cpu/$(CPU)/start.o
4
5libs-y += arch/m68k/cpu/$(CPU)/
6libs-y += arch/m68k/lib/
aa63387a
MY
7
8cpuflags-$(CONFIG_M5208) := -mcpu=5208
9cpuflags-$(CONFIG_M5235) := -mcpu=5235 -fPIC
aa63387a
MY
10cpuflags-$(CONFIG_M5249) := -mcpu=5249
11cpuflags-$(CONFIG_M5253) := -mcpu=5253
12cpuflags-$(CONFIG_M5271) := -mcpu=5271
13cpuflags-$(CONFIG_M5272) := -mcpu=5272
14cpuflags-$(CONFIG_M5275) := -mcpu=5275
15cpuflags-$(CONFIG_M5282) := -mcpu=5282
16cpuflags-$(CONFIG_M5307) := -mcpu=5307
17cpuflags-$(CONFIG_MCF5301x) := -mcpu=53015 -fPIC
18cpuflags-$(CONFIG_MCF532x) := -mcpu=5329 -fPIC
19cpuflags-$(CONFIG_MCF5441x) := -mcpu=54418 -fPIC
aa63387a
MY
20
21PLATFORM_CPPFLAGS += $(cpuflags-y)
22
23
24ldflags-$(CONFIG_MCF5441x) := --got=single
aa63387a
MY
25
26ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
27ifneq (,$(findstring GOT,$(shell $(LD) --help)))
587e4a42 28KBUILD_LDFLAGS += $(ldflags-y)
aa63387a
MY
29endif
30endif