wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2002 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 6 | # |
| 7 | |
Masahiro Yamada | 9b6e2c3 | 2014-02-28 14:33:30 +0900 | [diff] [blame] | 8 | ifeq ($(CROSS_COMPILE),) |
| 9 | CROSS_COMPILE := m68k-elf- |
| 10 | endif |
Mike Frysinger | 1ea6bcd | 2009-06-14 23:33:14 -0400 | [diff] [blame] | 11 | |
Jason Jin | 3f8ce93 | 2011-08-22 16:26:50 +0800 | [diff] [blame] | 12 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x20000 |
Mike Frysinger | 262ae0a | 2009-09-03 23:12:47 -0400 | [diff] [blame] | 13 | |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 14 | PLATFORM_CPPFLAGS += -DCONFIG_M68K -D__M68K__ |
| 15 | PLATFORM_LDFLAGS += -n |
Masahiro Yamada | dfe9663 | 2014-02-26 14:51:04 +0900 | [diff] [blame] | 16 | PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections |
| 17 | PLATFORM_RELFLAGS += -ffixed-d7 -msep-data |
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 18 | LDFLAGS_FINAL += --gc-sections |