Skip to content

Commit

Permalink
e2k toolchain setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dzavalishin committed May 17, 2017
1 parent f9d8ec8 commit cf78c8b
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 29 deletions.
58 changes: 29 additions & 29 deletions local-config.mk.in
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
# --- Copy this to local-config.mk and tailor to your needs.
# local-config.mk must not be checked in to svn, it's yours.
# Directory where to put executables - supposed to be in PATH
#INST_BIN=$(realpath /usr/bin)
# --- Where to put kernel to run it on real hardware
HW_BOOT_DEST=/mnt/nfs/phantom-test-machine/boot
# --- TODO what command to exec to start hw test
#HW_BOOT_CMD=ssh ...
# --- Architecture to build for. ia32 is default if nothing is choosen. And the only working.
# Arm port is in progress and amd64 supposed to be the next target.
#ARCH=ia32
#ARCH=arm
#ARCH=mips
#ARCH=amd64
#ARCH=e2k
# --- TODO what hardware configuration we build for.
# Usual Intel PC
#BOARD=pc_pci
# Arm Integrator/CP
#BOARD=arm_icp
#If you use Java, place java lib source path here
#PHANTOM_JDK_SRC=C:/tmp/open_jdk/openjdk/jdk/src/share/classes/
# --- Copy this to local-config.mk and tailor to your needs.
# local-config.mk must not be checked in to svn, it's yours.

# Directory where to put executables - supposed to be in PATH
#INST_BIN=$(realpath /usr/bin)

# --- Where to put kernel to run it on real hardware
HW_BOOT_DEST=/mnt/nfs/phantom-test-machine/boot

# --- TODO what command to exec to start hw test
#HW_BOOT_CMD=ssh ...

# --- Architecture to build for. ia32 is default if nothing is choosen. And the only working.
# Arm port is in progress and amd64 supposed to be the next target.
#ARCH=ia32
#ARCH=arm
#ARCH=mips
#ARCH=amd64
#ARCH=e2k

# --- TODO what hardware configuration we build for.
# Usual Intel PC
#BOARD=pc_pci
# Arm Integrator/CP
#BOARD=arm_icp

#If you use Java, place java lib source path here
#PHANTOM_JDK_SRC=C:/tmp/open_jdk/openjdk/jdk/src/share/classes/

1 change: 1 addition & 0 deletions oldtree/kernel/Makeconf-e2k
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../../phantom/Makeconf-e2k
37 changes: 37 additions & 0 deletions phantom/Makeconf-e2k
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#ARCH_FLAGS = -EL -march=mips32r2 -G 0 -mno-abicalls -fno-pic -mno-gpopt
#ARCH_FLAGS = -EB -march=mips32r2 -G 0 -mno-abicalls -fno-pic -mno-gpopt
#-msoft-float
#-mpoke-function-name

#TARGET_OBJECT_FORMAT=elf32-littlemips
TARGET_OBJECT_FORMAT=elf64-e2k


BIN_PREFIX=e2k-linux-

export AS = $(BIN_PREFIX)as
export CC = $(BIN_PREFIX)gcc
export LD = $(BIN_PREFIX)ld
export STRIP = $(BIN_PREFIX)strip
export AR = $(BIN_PREFIX)ar
export RANLIB = $(BIN_PREFIX)ranlib
export OBJCOPY = $(BIN_PREFIX)objcopy
export NM = $(BIN_PREFIX)nm

AWK = gawk
YACC = bison -y
M4 = m4

#USR_LD_ADDR=-Wl,-Ttext-segment,0 -Wl,-Ttext,0

ifeq ($(OSTYPE),cygwin)
USR_LD_ADDR=-Wl,-Ttext,0
else
USR_LD_ADDR=-Wl,-Ttext-segment,0
endif




# Use local overrides, if any
-include $(realpath $(PHANTOM_HOME))/local-config.$(ARCH).mk

0 comments on commit cf78c8b

Please sign in to comment.