2002-08-14 14:30:46 -06:00
|
|
|
#
|
2010-11-21 08:34:05 -07:00
|
|
|
# (C) Copyright 2000-2010
|
2002-08-14 14:30:46 -06:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 01:37:19 -06:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-08-14 14:30:46 -06:00
|
|
|
#
|
|
|
|
|
2014-02-27 22:33:30 -07:00
|
|
|
ifeq ($(CROSS_COMPILE),)
|
|
|
|
CROSS_COMPILE := ppc_8xx-
|
|
|
|
endif
|
2009-06-14 21:33:14 -06:00
|
|
|
|
2011-02-04 06:25:17 -07:00
|
|
|
CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000
|
2011-02-22 14:38:05 -07:00
|
|
|
LDFLAGS_FINAL += --gc-sections
|
2013-11-25 18:53:58 -07:00
|
|
|
PLATFORM_RELFLAGS += -fpic -mrelocatable -ffunction-sections -fdata-sections \
|
|
|
|
-meabi
|
|
|
|
PLATFORM_CPPFLAGS += -DCONFIG_PPC -D__powerpc__ -ffixed-r2
|
2011-01-05 18:23:54 -07:00
|
|
|
PLATFORM_LDFLAGS += -n
|
2008-08-30 14:37:04 -06:00
|
|
|
|
2013-03-11 00:50:01 -06:00
|
|
|
# Support generic board on PPC
|
|
|
|
__HAVE_ARCH_GENERIC_BOARD := y
|
|
|
|
|
2008-08-30 14:37:04 -06:00
|
|
|
#
|
|
|
|
# When cross-compiling on NetBSD, we have to define __PPC__ or else we
|
|
|
|
# will pick up a va_list declaration that is incompatible with the
|
|
|
|
# actual argument lists emitted by the compiler.
|
|
|
|
#
|
|
|
|
# [Tested on NetBSD/i386 1.5 + cross-powerpc-netbsd-1.3]
|
|
|
|
|
|
|
|
ifeq ($(CROSS_COMPILE),powerpc-netbsd-)
|
|
|
|
PLATFORM_CPPFLAGS+= -D__PPC__
|
|
|
|
endif
|
|
|
|
ifeq ($(CROSS_COMPILE),powerpc-openbsd-)
|
|
|
|
PLATFORM_CPPFLAGS+= -D__PPC__
|
|
|
|
endif
|
2012-09-20 18:10:01 -06:00
|
|
|
|
|
|
|
# Only test once
|
|
|
|
ifneq ($(CONFIG_SPL_BUILD),y)
|
|
|
|
ALL-y += checkgcc4
|
|
|
|
endif
|