Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9dcc615d1e
Fetching contributors…

Cannot retrieve contributors at this time

executable file 129 lines (92 sloc) 4.3 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129

# #####
#
# Copyright (c) Mercury Federal Systems, Inc., Arlington VA., 2009-2011
#
# Mercury Federal Systems, Incorporated
# 1901 South Bell Street
# Suite 402
# Arlington, Virginia 22202
# United States of America
# Telephone 703-413-0781
# FAX 703-413-0784
#
# This file is part of OpenCPI (www.opencpi.org).
# ____ __________ ____
# / __ \____ ___ ____ / ____/ __ \ / _/ ____ _________ _
# / / / / __ \/ _ \/ __ \/ / / /_/ / / / / __ \/ ___/ __ `/
# / /_/ / /_/ / __/ / / / /___/ ____/_/ / _/ /_/ / / / /_/ /
# \____/ .___/\___/_/ /_/\____/_/ /___/(_)____/_/ \__, /
# /_/ /____/
#
# OpenCPI is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpenCPI is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with OpenCPI. If not, see <http://www.gnu.org/licenses/>.
#
########################################################################### #



# Build from 32-bit x86 Linux for Linux

# #### Absolute path to the base directory of the OpenCPI installation #### #

if [ -z "$OCPI_BASE_DIR" ]
then
  export OCPI_BASE_DIR=`pwd`
fi

if [ -z "$OCPI_CDK_DIR" ]
then
  export OCPI_CDK_DIR=$OCPI_BASE_DIR/ocpi
fi

# #### Build target architecture and OS ################################### #

export OCPI_OS=linux
export OCPI_ARCH=i686
export OCPI_BUILD_HOST=linux-i686
export OCPI_RUNTIME_HOST=$OCPI_BUILD_HOST

# #### Location of the Xilinx tools ####################################### #

export OCPI_XILINX_TOOLS_DIR=/opt/Xilinx/13.2/ISE_DS/

# #### Location of Icarus Verilog ######################################### #

export OCPI_ICARUS_DIR=/opt/opencpi/linux-x86_64/prerequisites/icarus/

# #### Location of Google Test (gtest) #################################### #

export OCPI_GTEST_DIR=/opt/opencpi/linux-i686/prerequisites/gtest

# #### Build output location ############################################## #

export OCPI_OUT_DIR=$OCPI_OS-$OCPI_ARCH-bin

export LD_LIBRARY_PATH=$OCPI_BASE_DIR/lib/$OCPI_BUILD_HOST-bin:$OCPI_GTEST_DIR/lib:$LD_LIBRARY_PATH

# #### Compiler linker flags ############################################## #

export OCPI_CFLAGS=-m32
export OCPI_CXXFLAGS=-m32
export OCPI_LDFLAGS=-m32

# #### Debug and assert settings ########################################## #

# Change both to 0 for "release" build

export OCPI_DEBUG=1
export OCPI_ASSERT=1

# #### Shared library build settings ###################################### #

export OCPI_SHARED_LIBRARIES_FLAGS="-m32 -m elf_i386"

# Set to 0 to build static libraries
export OCPI_BUILD_SHARED_LIBRARIES=1

# #### CORBA OCPI_CORBA_ORB/IDL tools ################################################ #

export HAVE_CORBA=1

# OpenCPI uses OmniORB exclusivly
export OCPI_CORBA_ORB=OMNI
export OCPI_OMNI_DIR=/opt/opencpi/linux-i686/prerequisites/omniorb
export OCPI_OMNI_BIN_DIR=$OCPI_OMNI_DIR/bin
export OCPI_OMNI_IDL_DIR=$OCPI_OMNI_DIR/share/idl/omniORB
export OCPI_OMNI_LIBRARY_DIR=$OCPI_OMNI_DIR/lib
export OCPI_OMNI_INCLUDE_DIR=$OCPI_OMNI_DIR/include

# #### Path to Mercury tools and libraries ################################ #

export OCPI_PPP_LIBRARY_DIR=
export OCPI_PPP_INCLUDE_DIR=

# #### Other settings ##################################################### #

# Set this to "1" to include the OFED IBVERBS transfer driver
export OCPI_HAVE_IBVERBS=0

# #### OpenCL exports ##################################################### #

#export OPENCL_INCLUDE_DIR=/usr/local/share/NVIDIA_GPU_Computing_SDK/OpenCL/common/inc
export OPENCL_INCLUDE_DIR=$OCPI_BASE_DIR/core/container/ocl_container/impl/include
export OPENCL_EXPORTS="$OPENCL_INCLUDE_DIR $OPENCL_INCLUDE_DIR/CL"

# ######################################################################### #

echo ""; echo " *** OpenCPI Environment settings"; echo ""
env | grep OCPI_
Something went wrong with that request. Please try again.