diff options
| author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-02-04 17:24:16 +0900 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2014-02-19 11:07:50 -0500 | 
| commit | 34bd050709bad7d99867057b6e90f43e732f8f80 (patch) | |
| tree | 6da9bca231b5eba28aa5948e0b005e2d70938371 | |
| parent | f6322eb7af6a0fafe44f30577c828e175e6c662e (diff) | |
| download | olio-uboot-2014.01-34bd050709bad7d99867057b6e90f43e732f8f80.tar.xz olio-uboot-2014.01-34bd050709bad7d99867057b6e90f43e732f8f80.zip | |
Makefile: move BFD_ROOT_DIR to tools/gdb/Makefile
BFD_ROOT_DIR is used only in tools/gdb/Makefile
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
| -rw-r--r-- | config.mk | 23 | ||||
| -rw-r--r-- | tools/gdb/Makefile | 21 | 
2 files changed, 21 insertions, 23 deletions
| @@ -220,29 +220,6 @@ ifneq ($(CONFIG_SPL_TEXT_BASE),)  LDFLAGS_$(SPL_BIN) += -Ttext $(CONFIG_SPL_TEXT_BASE)  endif -# Location of a usable BFD library, where we define "usable" as -# "built for ${HOST}, supports ${TARGET}".  Sensible values are -# - When cross-compiling: the root of the cross-environment -# - Linux/ppc (native): /usr -# - NetBSD/ppc (native): you lose ... (must extract these from the -#   binutils build directory, plus the native and U-Boot include -#   files don't like each other) -# -# So far, this is used only by tools/gdb/Makefile. - -ifeq ($(HOSTOS),darwin) -BFD_ROOT_DIR =		/usr/local/tools -else -ifeq ($(HOSTARCH),$(ARCH)) -# native -BFD_ROOT_DIR =		/usr -else -#BFD_ROOT_DIR =		/LinuxPPC/CDK		# Linux/i386 -#BFD_ROOT_DIR =		/usr/pkg/cross		# NetBSD/i386 -BFD_ROOT_DIR =		/opt/powerpc -endif -endif -  #########################################################################  export	CONFIG_SYS_TEXT_BASE PLATFORM_CPPFLAGS PLATFORM_RELFLAGS CPPFLAGS CFLAGS AFLAGS diff --git a/tools/gdb/Makefile b/tools/gdb/Makefile index 850bb9b20..451332031 100644 --- a/tools/gdb/Makefile +++ b/tools/gdb/Makefile @@ -10,6 +10,27 @@  ifneq ($(HOSTOS),cygwin) +# Location of a usable BFD library, where we define "usable" as +# "built for ${HOST}, supports ${TARGET}".  Sensible values are +# - When cross-compiling: the root of the cross-environment +# - Linux/ppc (native): /usr +# - NetBSD/ppc (native): you lose ... (must extract these from the +#   binutils build directory, plus the native and U-Boot include +#   files don't like each other) + +ifeq ($(HOSTOS),darwin) +BFD_ROOT_DIR =		/usr/local/tools +else +ifeq ($(HOSTARCH),$(ARCH)) +# native +BFD_ROOT_DIR =		/usr +else +#BFD_ROOT_DIR =		/LinuxPPC/CDK		# Linux/i386 +#BFD_ROOT_DIR =		/usr/pkg/cross		# NetBSD/i386 +BFD_ROOT_DIR =		/opt/powerpc +endif +endif +  #  # Use native tools and options  # |