Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2002 |
Albert ARIBAUD | fa82f87 | 2011-08-04 18:45:45 +0200 | [diff] [blame] | 4 | # Daniel Engström, Omicron Ceti AB, daniel@omicron.se. |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 5 | |
Graeme Russ | a85f53c | 2011-02-12 15:11:21 +1100 | [diff] [blame] | 6 | CROSS_COMPILE ?= i386-linux- |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 7 | |
Graeme Russ | 3a25e94 | 2011-02-12 15:11:24 +1100 | [diff] [blame] | 8 | # DO NOT MODIFY THE FOLLOWING UNLESS YOU REALLY KNOW WHAT YOU ARE DOING! |
Bin Meng | 343fb99 | 2015-06-07 11:33:12 +0800 | [diff] [blame] | 9 | LDPPFLAGS += -DRESET_SEG_START=$(CONFIG_RESET_SEG_START) |
| 10 | LDPPFLAGS += -DRESET_SEG_SIZE=$(CONFIG_RESET_SEG_SIZE) |
| 11 | LDPPFLAGS += -DRESET_VEC_LOC=$(CONFIG_RESET_VEC_LOC) |
Simon Glass | a6a9578 | 2014-11-14 18:18:25 -0700 | [diff] [blame] | 12 | LDPPFLAGS += -DSTART_16=$(CONFIG_SYS_X86_START16) |
| 13 | LDPPFLAGS += -DRESET_BASE="CONFIG_SYS_TEXT_BASE + (CONFIG_SYS_MONITOR_LEN - RESET_SEG_SIZE)" |
Simon Glass | 3742d7a | 2017-01-16 07:04:01 -0700 | [diff] [blame] | 14 | |
| 15 | ifdef CONFIG_X86_64 |
| 16 | ifndef CONFIG_SPL_BUILD |
| 17 | LDSCRIPT = $(srctree)/arch/x86/cpu/u-boot-64.lds |
| 18 | endif |
| 19 | endif |