blob: 24152dcc3c5262aa20e3c6e987e47cfb8de7967e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
wdenkd84c5582002-01-27 00:56:55 +00002#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02003# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5#
wdenkd84c5582002-01-27 00:56:55 +00006# (C) Copyright 2000
Wolfgang Denk2c9dfca2005-08-12 23:20:59 +02007# Murray Jensen <Murray.Jensen@csiro.au>
wdenkd84c5582002-01-27 00:56:55 +00008
Masahiro Yamadaf2431802014-02-04 17:24:10 +09009ifneq ($(HOSTOS),cygwin)
wdenkd84c5582002-01-27 00:56:55 +000010
Masahiro Yamadaed360012014-02-04 17:24:16 +090011# 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
19ifeq ($(HOSTOS),darwin)
20BFD_ROOT_DIR = /usr/local/tools
21else
22ifeq ($(HOSTARCH),$(ARCH))
23# native
24BFD_ROOT_DIR = /usr
25else
26#BFD_ROOT_DIR = /LinuxPPC/CDK # Linux/i386
27#BFD_ROOT_DIR = /usr/pkg/cross # NetBSD/i386
28BFD_ROOT_DIR = /opt/powerpc
29endif
30endif
31
wdenkd84c5582002-01-27 00:56:55 +000032#
33# Use native tools and options
34#
Masahiro Yamadaf2431802014-02-04 17:24:10 +090035HOST_EXTRACFLAGS := -I$(BFD_ROOT_DIR)/include -pedantic
wdenkd84c5582002-01-27 00:56:55 +000036
Masahiro Yamadaf2431802014-02-04 17:24:10 +090037hostprogs-y := gdbsend gdbcont
wdenkd84c5582002-01-27 00:56:55 +000038
Masahiro Yamadaf2431802014-02-04 17:24:10 +090039gdbsend-objs := gdbsend.o error.o remote.o serial.o
40gdbcont-objs := gdbcont.o error.o remote.o serial.o
wdenkd84c5582002-01-27 00:56:55 +000041
Masahiro Yamadaf2431802014-02-04 17:24:10 +090042always := $(hostprogs-y)
wdenkd84c5582002-01-27 00:56:55 +000043
44endif # cygwin