Fix the tuned optimizations
[samplevnf.git] / rapidvm / dib / elements / rapid / post-install.d / 60-compile-prox
1 #!/usr/bin/env bash
2 #
3 # Copyright (c) 2021 Intel Corporation
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 BUILD_DIR="/opt/rapid"
18 export RTE_SDK="${BUILD_DIR}/dpdk"
19 export RTE_TARGET="build"
20 pushd ${BUILD_DIR}/samplevnf/VNFs/DPPD-PROX > /dev/null 2>&1
21 make -j`getconf _NPROCESSORS_ONLN`
22 cp ${BUILD_DIR}/samplevnf/VNFs/DPPD-PROX/build/app/prox ${BUILD_DIR}/prox
23 cp helper-scripts/rapid/check_prox_system_setup.sh ${BUILD_DIR}
24 cp helper-scripts/rapid/check-prox-system-setup.service ${BUILD_DIR}
25 cp helper-scripts/rapid/sharkproxlog.sh ${BUILD_DIR}
26 cp helper-scripts/rapid/deploycentostools.sh ${BUILD_DIR}
27 cp helper-scripts/rapid/rapid_rsa_key.pub ${BUILD_DIR}
28 popd > /dev/null 2>&1