Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | d84c558 | 2002-01-27 00:56:55 +0000 | [diff] [blame] | 2 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 3 | # (C) Copyright 2006 |
| 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 5 | # |
wdenk | d84c558 | 2002-01-27 00:56:55 +0000 | [diff] [blame] | 6 | # (C) Copyright 2000 |
Wolfgang Denk | b3b0fd5 | 2005-08-12 23:20:59 +0200 | [diff] [blame] | 7 | # Murray Jensen <Murray.Jensen@csiro.au> |
wdenk | d84c558 | 2002-01-27 00:56:55 +0000 | [diff] [blame] | 8 | |
Masahiro Yamada | 940db16 | 2014-02-04 17:24:10 +0900 | [diff] [blame] | 9 | ifneq ($(HOSTOS),cygwin) |
wdenk | d84c558 | 2002-01-27 00:56:55 +0000 | [diff] [blame] | 10 | |
Masahiro Yamada | 34bd050 | 2014-02-04 17:24:16 +0900 | [diff] [blame] | 11 | # Location of a usable BFD library, where we define "usable" as |
| 12 | # "built for ${HOST}, supports ${TARGET}". Sensible values are |
| 13 | # - When cross-compiling: the root of the cross-environment |
| 14 | # - Linux/ppc (native): /usr |
| 15 | # - NetBSD/ppc (native): you lose ... (must extract these from the |
| 16 | # binutils build directory, plus the native and U-Boot include |
| 17 | # files don't like each other) |
| 18 | |
| 19 | ifeq ($(HOSTOS),darwin) |
| 20 | BFD_ROOT_DIR = /usr/local/tools |
| 21 | else |
| 22 | ifeq ($(HOSTARCH),$(ARCH)) |
| 23 | # native |
| 24 | BFD_ROOT_DIR = /usr |
| 25 | else |
| 26 | #BFD_ROOT_DIR = /LinuxPPC/CDK # Linux/i386 |
| 27 | #BFD_ROOT_DIR = /usr/pkg/cross # NetBSD/i386 |
| 28 | BFD_ROOT_DIR = /opt/powerpc |
| 29 | endif |
| 30 | endif |
| 31 | |
wdenk | d84c558 | 2002-01-27 00:56:55 +0000 | [diff] [blame] | 32 | # |
| 33 | # Use native tools and options |
| 34 | # |
Masahiro Yamada | 940db16 | 2014-02-04 17:24:10 +0900 | [diff] [blame] | 35 | HOST_EXTRACFLAGS := -I$(BFD_ROOT_DIR)/include -pedantic |
wdenk | d84c558 | 2002-01-27 00:56:55 +0000 | [diff] [blame] | 36 | |
Masahiro Yamada | 940db16 | 2014-02-04 17:24:10 +0900 | [diff] [blame] | 37 | hostprogs-y := gdbsend gdbcont |
wdenk | d84c558 | 2002-01-27 00:56:55 +0000 | [diff] [blame] | 38 | |
Masahiro Yamada | 940db16 | 2014-02-04 17:24:10 +0900 | [diff] [blame] | 39 | gdbsend-objs := gdbsend.o error.o remote.o serial.o |
| 40 | gdbcont-objs := gdbcont.o error.o remote.o serial.o |
wdenk | d84c558 | 2002-01-27 00:56:55 +0000 | [diff] [blame] | 41 | |
Masahiro Yamada | 940db16 | 2014-02-04 17:24:10 +0900 | [diff] [blame] | 42 | always := $(hostprogs-y) |
wdenk | d84c558 | 2002-01-27 00:56:55 +0000 | [diff] [blame] | 43 | |
| 44 | endif # cygwin |