Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2000-2002 |
| 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 5 | |
Masahiro Yamada | f0ac9e0 | 2014-02-28 14:33:30 +0900 | [diff] [blame] | 6 | ifeq ($(CROSS_COMPILE),) |
| 7 | CROSS_COMPILE := m68k-elf- |
| 8 | endif |
Mike Frysinger | 8378ba4 | 2009-06-14 23:33:14 -0400 | [diff] [blame] | 9 | |
Jason Jin | a25be13 | 2011-08-22 16:26:50 +0800 | [diff] [blame] | 10 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x20000 |
Mike Frysinger | 5b66044 | 2009-09-03 23:12:47 -0400 | [diff] [blame] | 11 | |
Masahiro Yamada | 4869aee | 2014-07-30 14:08:23 +0900 | [diff] [blame] | 12 | PLATFORM_CPPFLAGS += -D__M68K__ |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 13 | PLATFORM_LDFLAGS += -n |
Masahiro Yamada | f375aef | 2014-02-26 14:51:04 +0900 | [diff] [blame] | 14 | PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections |
| 15 | PLATFORM_RELFLAGS += -ffixed-d7 -msep-data |
Jason Jin | 80c1619 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 16 | LDFLAGS_FINAL += --gc-sections |