From 3a1d30482cb0514fb18bf08590236fd1b3eba418 Mon Sep 17 00:00:00 2001 From: Junfeng Wang Date: Thu, 19 Dec 2019 16:43:51 +0800 Subject: fix Makefile typo and use devtoolset-7's absolute path in CAME Change-Id: I5f001a3db57d1e610da925c349b6558653844db5 Signed-off-by: Junfeng Wang --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 483bf27..119f493 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,8 @@ DEB_DEPENDS = curl build-essential autoconf automake ccache git cmake wget coreu #RPM# ##### #Dependencies to build -RPM_DEPENDS = curl autoconf automake ccache cmake3 wget gcc gcc-c++ git gtest gtest-devel ragel python-sphinx boost169-devel +RPM_DEPENDS = curl autoconf automake ccache cmake3 wget gcc gcc-c++ git gtest gtest-devel +RPM_DEPENDS += ragel python-sphinx boost169-devel .PHONY: help install-dep build build-package build-package-hyperscan checkstyle distclean @@ -61,7 +62,7 @@ endif @sudo -E apt-get update @sudo -E apt-get $(APT_ARGS) -y --force-yes install $(DEB_DEPENDS) else ifeq ($(OS_ID),centos) - @sudo -E yum install -y $(RPM_DEPENDS) epel-release centos-release-scl + @sudo -E yum install -y $(RPM_DEPENDS) epel-release centos-release-scl devtoolset-7 else $(error "This option currently works only on Ubuntu, Debian, Centos or openSUSE systems") endif @@ -80,8 +81,9 @@ ifeq ($(filter ubuntu debian,$(OS_ID)),$(OS_ID)) make package -j$(nproc); else ifeq ($(OS_ID),centos) @mkdir -p $(BR)/build-package/; cd $(BR)/build-package/;\ - $(cmake) -DCMAKE_BUILD_TYPE=Release -DCMKAE_INSTALL_LIBDIR=lib\ - -DCMAKE_INSTALL_PREFIX=/usr $(WS_ROOT)/;\ + $(cmake) -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib\ + -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PROGRAM_PATH:PATH="/opt/rh/devtoolset-7/root/bin"\ + $(WS_ROOT)/;\ make package -j$(nproc); endif @# NEW INSTRUCTIONS TO BUILD-PACKAGE MUST BE DECLARED ON A NEW LINE WITH -- cgit 1.2.3-korg