~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to boot/arch/ppc32/loader/Makefile.toolchain

  • Committer: Martin Decky
  • Date: 2010-03-18 23:34:00 UTC
  • Revision ID: martin@ares.decky.cz-20100318233400-vhas0dmxilys8cn6
move from a simple sanity check tool to a more feature-rich configuration autotool (generates Makefile.common)
check for the presence of cross-compiler toolchain
correct prefixing of GNU binutils on Solaris
remove redundant toolchain definitions from makefiles

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
27
#
28
28
 
29
 
## Toolchain configuration
30
 
#
31
 
 
32
 
ifndef CROSS_PREFIX
33
 
        CROSS_PREFIX = /usr/local
34
 
endif
35
 
 
36
29
BFD_NAME = elf32-powerpc
37
30
BFD_ARCH = powerpc:common
38
 
TARGET = ppc-linux-gnu
39
 
TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc32/bin
40
31
 
41
32
JOBFILE = ../../../../tools/jobfile.py
42
33
 
43
 
ifeq ($(COMPILER),gcc_native)
44
 
        CC = gcc
45
 
        AS = as
46
 
        LD = ld
47
 
        OBJCOPY = objcopy
48
 
        OBJDUMP = objdump
49
 
endif
50
 
 
51
 
ifeq ($(COMPILER),gcc_cross)
52
 
        CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
53
 
        AS = $(TOOLCHAIN_DIR)/$(TARGET)-as
54
 
        LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
55
 
        OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
56
 
        OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
57
 
endif
58
 
 
59
34
CFLAGS = \
60
35
        -DRELEASE=$(RELEASE) -I. -I../../../generic -I../../../genarch \
61
36
        -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin \