xref: /OK3568_Linux_fs/u-boot/arch/m68k/Makefile (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun#
2*4882a593Smuzhiyun# SPDX-License-Identifier:	GPL-2.0+
3*4882a593Smuzhiyun#
4*4882a593Smuzhiyun
5*4882a593Smuzhiyunhead-y := arch/m68k/cpu/$(CPU)/start.o
6*4882a593Smuzhiyun
7*4882a593Smuzhiyunlibs-y += arch/m68k/cpu/$(CPU)/
8*4882a593Smuzhiyunlibs-y += arch/m68k/lib/
9*4882a593Smuzhiyun
10*4882a593Smuzhiyuncpuflags-$(CONFIG_M5208)	:= -mcpu=5208
11*4882a593Smuzhiyuncpuflags-$(CONFIG_M5235)	:= -mcpu=5235 -fPIC
12*4882a593Smuzhiyuncpuflags-$(CONFIG_M52277)	:= -mcpu=52277 -fPIC
13*4882a593Smuzhiyuncpuflags-$(CONFIG_M5249)	:= -mcpu=5249
14*4882a593Smuzhiyuncpuflags-$(CONFIG_M5253)	:= -mcpu=5253
15*4882a593Smuzhiyuncpuflags-$(CONFIG_M5271)	:= -mcpu=5271
16*4882a593Smuzhiyuncpuflags-$(CONFIG_M5272)	:= -mcpu=5272
17*4882a593Smuzhiyuncpuflags-$(CONFIG_M5275)	:= -mcpu=5275
18*4882a593Smuzhiyuncpuflags-$(CONFIG_M5282)	:= -mcpu=5282
19*4882a593Smuzhiyuncpuflags-$(CONFIG_M5307)	:= -mcpu=5307
20*4882a593Smuzhiyuncpuflags-$(CONFIG_MCF5301x)	:= -mcpu=53015 -fPIC
21*4882a593Smuzhiyuncpuflags-$(CONFIG_MCF532x)	:= -mcpu=5329 -fPIC
22*4882a593Smuzhiyuncpuflags-$(CONFIG_MCF5441x)	:= -mcpu=54418 -fPIC
23*4882a593Smuzhiyuncpuflags-$(CONFIG_MCF5445x)	:= -mcpu=54455 -fPIC
24*4882a593Smuzhiyuncpuflags-$(CONFIG_MCF547x_8x)	:= -mcpu=5485 -fPIC
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunPLATFORM_CPPFLAGS += $(cpuflags-y)
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun
29*4882a593Smuzhiyunldflags-$(CONFIG_MCF5441x)	:= --got=single
30*4882a593Smuzhiyunldflags-$(CONFIG_MCF5445x)	:= --got=single
31*4882a593Smuzhiyunldflags-$(CONFIG_MCF547x_8x)	:= --got=single
32*4882a593Smuzhiyun
33*4882a593Smuzhiyunifneq (,$(findstring -linux-,$(shell $(CC) --version)))
34*4882a593Smuzhiyunifneq (,$(findstring GOT,$(shell $(LD) --help)))
35*4882a593SmuzhiyunPLATFORM_LDFLAGS += $(ldflags-y)
36*4882a593Smuzhiyunendif
37*4882a593Smuzhiyunendif
38