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