summaryrefslogtreecommitdiffstats
path: root/env.bash
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2014-07-01 21:35:40 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-07-02 20:08:52 -0500
commit1ef46438da505e9fa13ad7331d11262a9f726de5 (patch)
treee96fecd4e5a0ccea081cb396db7bea93ddb5cfef /env.bash
parent84fb8a3cb847fddf52b78058d34afd82fc14e935 (diff)
downloadtalos-hostboot-1ef46438da505e9fa13ad7331d11262a9f726de5.tar.gz
talos-hostboot-1ef46438da505e9fa13ad7331d11262a9f726de5.zip
Build changes to support buildroot
Change-Id: I8f2bef01886d69d275824054faac4be34b9cac6b Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11943 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'env.bash')
-rwxr-xr-xenv.bash19
1 files changed, 14 insertions, 5 deletions
diff --git a/env.bash b/env.bash
index 49a4d0bff..1687d8c82 100755
--- a/env.bash
+++ b/env.bash
@@ -5,7 +5,9 @@
#
# OpenPOWER HostBoot Project
#
-# COPYRIGHT International Business Machines Corp. 2010,2014
+# Contributors Listed Below - COPYRIGHT 2010,2014
+# [+] International Business Machines Corp.
+#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -26,10 +28,15 @@ if [ -e ./customrc ]; then
source ./customrc
fi
-export FAKEROOT=${FAKEROOT:-/opt/mcp/shared/powerpc64-gcc-20130412}
-export CROSS_PREFIX=${CROSS_PREFIX:-${FAKEROOT}/wrappers/powerpc64-unknown-linux-gnu-}
-export HOST_PREFIX=${HOST_PREFIX:-${FAKEROOT}/wrappers/x86_64-pc-linux-gnu-}
-export PATH=${FAKEROOT}/wrappers:${PATH}
+if [ -n "${OPENPOWER_BUILD}" ]; then
+ export SKIP_BINARY_FILES=1
+ export JAILCMD=""
+else
+ export FAKEROOT=${FAKEROOT:-/opt/mcp/shared/powerpc64-gcc-20130412}
+ export CROSS_PREFIX=${CROSS_PREFIX:-${FAKEROOT}/wrappers/powerpc64-unknown-linux-gnu-}
+ export HOST_PREFIX=${HOST_PREFIX:-${FAKEROOT}/wrappers/x86_64-pc-linux-gnu-}
+ export PATH=${FAKEROOT}/wrappers:${PATH}
+fi
export PATH=${PATH}:`pwd`/src/build/trace
export PATH=${PATH}:`pwd`/src/build/tools
@@ -46,6 +53,8 @@ fi
export DEFAULT_MACHINE=MURANO
## run setupgithooks.pl
+if [ -e .git/hooks ]; then
if [ -e $TOOLSDIR/setupgithooks.sh ]; then
$TOOLSDIR/setupgithooks.sh
fi
+fi
OpenPOWER on IntegriCloud