blob: 451332031ecbf322c513c8b0bd1bbd48b3b97cdc [file] [log] [blame]
wdenkd84c5582002-01-27 00:56:55 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
wdenkd84c5582002-01-27 00:56:55 +00005# (C) Copyright 2000
Wolfgang Denk2c9dfca2005-08-12 23:20:59 +02006# Murray Jensen <Murray.Jensen@csiro.au>
wdenkd84c5582002-01-27 00:56:55 +00007#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
wdenkd84c5582002-01-27 00:56:55 +00009#
10
Masahiro Yamadaf2431802014-02-04 17:24:10 +090011ifneq ($(HOSTOS),cygwin)
wdenkd84c5582002-01-27 00:56:55 +000012
Masahiro Yamadaed360012014-02-04 17:24:16 +090013# 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
21ifeq ($(HOSTOS),darwin)
22BFD_ROOT_DIR = /usr/local/tools
23else
24ifeq ($(HOSTARCH),$(ARCH))
25# native
26BFD_ROOT_DIR = /usr
27else
28#BFD_ROOT_DIR = /LinuxPPC/CDK # Linux/i386
29#BFD_ROOT_DIR = /usr/pkg/cross # NetBSD/i386
30BFD_ROOT_DIR = /opt/powerpc
31endif
32endif
33
wdenkd84c5582002-01-27 00:56:55 +000034#
35# Use native tools and options
36#
Masahiro Yamadaf2431802014-02-04 17:24:10 +090037HOST_EXTRACFLAGS := -I$(BFD_ROOT_DIR)/include -pedantic
wdenkd84c5582002-01-27 00:56:55 +000038
Masahiro Yamadaf2431802014-02-04 17:24:10 +090039hostprogs-y := gdbsend gdbcont
wdenkd84c5582002-01-27 00:56:55 +000040
Masahiro Yamadaf2431802014-02-04 17:24:10 +090041gdbsend-objs := gdbsend.o error.o remote.o serial.o
42gdbcont-objs := gdbcont.o error.o remote.o serial.o
wdenkd84c5582002-01-27 00:56:55 +000043
Masahiro Yamadaf2431802014-02-04 17:24:10 +090044always := $(hostprogs-y)
wdenkd84c5582002-01-27 00:56:55 +000045
46endif # cygwin