From 185b7734198bf3709cc2354cfeb57b06f981af3a Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Mon, 2 Jul 2001 21:49:36 +0000 Subject: [PATCH] Added configuration files for the MVME2100 running Linux, both cross and self-hosted compilation supported (but you don't want to use the self-hosted if you can help it!). Assumes the standard Hard Hat Linux install locations for the cross-development tools. --- configure/os/CONFIG.Common.linux-mpc82xx | 34 +++++++++++++++++++ configure/os/CONFIG.linux-mpc82xx.Common | 10 ++++++ .../os/CONFIG.linux-mpc82xx.linux-mpc82xx | 13 +++++++ configure/os/CONFIG.linux-x86.linux-mpc82xx | 17 ++++++++++ 4 files changed, 74 insertions(+) create mode 100644 configure/os/CONFIG.Common.linux-mpc82xx create mode 100644 configure/os/CONFIG.linux-mpc82xx.Common create mode 100644 configure/os/CONFIG.linux-mpc82xx.linux-mpc82xx create mode 100644 configure/os/CONFIG.linux-x86.linux-mpc82xx diff --git a/configure/os/CONFIG.Common.linux-mpc82xx b/configure/os/CONFIG.Common.linux-mpc82xx new file mode 100644 index 000000000..512231c5b --- /dev/null +++ b/configure/os/CONFIG.Common.linux-mpc82xx @@ -0,0 +1,34 @@ +# $Id$ +# This file is maintained by the build community. +# +# Definitions for linux-mpc82xx target builds +# Sites may override these definitions in CONFIG_SITE.Common.linux-mpc82xx +#------------------------------------------------------- + +# Include definitions common to all Unix targets +include $(CONFIG)/os/CONFIG.Common.UnixCommon + +OS_CLASS = Linux +ARCH_CLASS = mpc82xx + +CODE_CPPFLAGS = -D_REENTRANT + +POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS +POSIX_CPPFLAGS_NO = +POSIX_LDLIBS_YES = -lpthread +POSIX_LDLIBS_NO = + +# -D_BSD_SOURCE for gethostname() in unistd.h as needed by cacChannelIO.cpp. +OP_SYS_CPPFLAGS += -D_BSD_SOURCE +OP_SYS_CPPFLAGS += -Dlinux +OP_SYS_LDFLAGS = +OP_SYS_LDLIBS = -lreadline -lcurses -lrt + +#ARCH_DEP_CPPFLAGS += -D_X86_ + +ifdef CROSS + GNU_TARGET=ppc_82xx + CMPLR_SUFFIX= + CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET)) +endif + diff --git a/configure/os/CONFIG.linux-mpc82xx.Common b/configure/os/CONFIG.linux-mpc82xx.Common new file mode 100644 index 000000000..859eff2f0 --- /dev/null +++ b/configure/os/CONFIG.linux-mpc82xx.Common @@ -0,0 +1,10 @@ +# $Id$ +# This file is maintained by the build community. +# +# Definitions for linux-mpc82xx host builds +# Sites may override these definitions in CONFIG_SITE.linux-mpc82xx.Common +#------------------------------------------------------- + +#Include definitions common to unix hosts +include $(CONFIG)/os/CONFIG.UnixCommon.Common + diff --git a/configure/os/CONFIG.linux-mpc82xx.linux-mpc82xx b/configure/os/CONFIG.linux-mpc82xx.linux-mpc82xx new file mode 100644 index 000000000..f69c83903 --- /dev/null +++ b/configure/os/CONFIG.linux-mpc82xx.linux-mpc82xx @@ -0,0 +1,13 @@ +# $Id$ +# +# Definitions for linux-mpc82xx host - linux-mpc82xx target builds +# Sites may override these definitions in CONFIG_SITE.linux-mpc82xx.linux-mpc82xx +#------------------------------------------------------- + +# Include common gnu compiler definitions +include $(CONFIG)/CONFIG.gnuCommon + +GNU_DIR = /usr + +CC = $(GNU_BIN)/gcc +CCC = $(GNU_BIN)/g++ diff --git a/configure/os/CONFIG.linux-x86.linux-mpc82xx b/configure/os/CONFIG.linux-x86.linux-mpc82xx new file mode 100644 index 000000000..4b71573d3 --- /dev/null +++ b/configure/os/CONFIG.linux-x86.linux-mpc82xx @@ -0,0 +1,17 @@ +# $Id$ +# +# Definitions for linux-x86 host - linux-mpc82xx target builds +# Sites may override these definitions in CONFIG_SITE.linux-x86.linux-mpc82xx +#------------------------------------------------------- + +# Include common gnu compiler definitions +include $(CONFIG)/CONFIG.gnuCommon + +GNU_DIR = /opt/hardhat/devkit/ppc/82xx +GNU_TARGET_INCLUDE_DIR = $(GNU_DIR)/target/usr/include/ + +CC = $(GNU_BIN)/ppc_82xx-gcc +CCC = $(GNU_BIN)/ppc_82xx-g++ + +# Override the -nostdinc flag, needed here... +CROSS_CPPFLAGS =