From 0d54a6f3cfdaa6663b4cd67fb82b311a64c11c7c Mon Sep 17 00:00:00 2001 From: Shakeeb Date: Sat, 27 Aug 2016 08:15:16 -0500 Subject: SBE code restructure: root level Makefile file Change-Id: I50be7b537e51caf8dbbd67ace8808da35ea120fc RTC:159709 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28873 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: RAJA DAS Reviewed-by: Sachin Gupta --- Makefile | 34 ++++++++++++++++++++++++++++++++++ sbe/build/tools/sbeGitTool.pl | 2 +- sbe/test/citest/build-script | 3 +-- sbe/test/citest/populate-sandbox | 3 ++- 4 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..63876e0f --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: Makefile $ +# +# OpenPOWER sbe Project +# +# Contributors Listed Below - COPYRIGHT 2016 +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. +# +# IBM_PROLOG_END_TAG +BUILD_DIR = sbe/image +.PHONY: install all clean + +install: + $(MAKE) -C $(BUILD_DIR) install + +all: + $(MAKE) -C $(BUILD_DIR) all + +clean: + $(MAKE) -C $(BUILD_DIR) clean diff --git a/sbe/build/tools/sbeGitTool.pl b/sbe/build/tools/sbeGitTool.pl index aa7123fd..f0acd0c0 100755 --- a/sbe/build/tools/sbeGitTool.pl +++ b/sbe/build/tools/sbeGitTool.pl @@ -263,7 +263,7 @@ sub applyRefs sub compileAndCopy { my $statusFile = $globals{sbe_git_root}."/compile.status"; - my $compile_path = $globals{sbe_git_root}."/sbe/image"; + my $compile_path = $globals{sbe_git_root}; print "Compiling and copying the generated binaries to sandbox\n" if $debug; open SBWORKON, " | ./sb workon"; diff --git a/sbe/test/citest/build-script b/sbe/test/citest/build-script index 00ef83c6..8250ad08 100755 --- a/sbe/test/citest/build-script +++ b/sbe/test/citest/build-script @@ -7,6 +7,7 @@ # OpenPOWER sbe Project # # Contributors Listed Below - COPYRIGHT 2015,2016 +# [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -39,9 +40,7 @@ source "$SBEROOT/sbe/test/citest/setup-env" # Build . -cd sbe/image scl enable devtoolset-2 " bash -c \"make install\"" || exit -1 -cd - # Create simics sandbox. create-sandbox > create-sandbox.log 2>&1 & diff --git a/sbe/test/citest/populate-sandbox b/sbe/test/citest/populate-sandbox index 91d646f0..7df47896 100755 --- a/sbe/test/citest/populate-sandbox +++ b/sbe/test/citest/populate-sandbox @@ -7,6 +7,7 @@ # OpenPOWER sbe Project # # Contributors Listed Below - COPYRIGHT 2015,2016 +# [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -56,5 +57,5 @@ execute_in_sandbox "cd $SBEFW_DIR; mk install_all" \ # Copy test files. -cp $SBEROOT/sbe/test/* $SBETESTDIR/ || exit -1 +cp -r $SBEROOT/sbe/test/* $SBETESTDIR/ || exit -1 -- cgit v1.2.1