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