|
| 1 | +#!/bin/bash |
| 2 | +# This file is part of cc-oci-runtime. |
| 3 | +# |
| 4 | +# Copyright (C) 2017 Intel Corporation |
| 5 | +# |
| 6 | +# This program is free software; you can redistribute it and/or |
| 7 | +# modify it under the terms of the GNU General Public License |
| 8 | +# as published by the Free Software Foundation; either version 2 |
| 9 | +# of the License, or (at your option) any later version. |
| 10 | +# |
| 11 | +# This program is distributed in the hope that it will be useful, |
| 12 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | +# GNU General Public License for more details. |
| 15 | +# |
| 16 | +# You should have received a copy of the GNU General Public License |
| 17 | +# along with this program; if not, write to the Free Software |
| 18 | +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 19 | + |
| 20 | +set -e -x |
| 21 | + |
| 22 | +source $(dirname "$0")/lib/ci-common.sh |
| 23 | + |
| 24 | +cd $CC_ROOT |
| 25 | + |
| 26 | +configure_opts="" |
| 27 | + |
| 28 | +# disable uesless ones for runv |
| 29 | +configure_opts+=" --disable-code-coverage" |
| 30 | +configure_opts+=" --disable-tests" |
| 31 | +configure_opts+=" --disable-cppcheck" |
| 32 | +configure_opts+=" --disable-valgrind" |
| 33 | +configure_opts+=" --disable-valgrind-helgrind" |
| 34 | +configure_opts+=" --disable-valgrind-drd" |
| 35 | +configure_opts+=" --disable-silent-rules" |
| 36 | + |
| 37 | +# additional controls |
| 38 | +configure_opts+=" --srcdir=\"${CC_ROOT}\"" |
| 39 | +configure_opts+=" --enable-auto-bundle-creation" |
| 40 | +configure_opts+=" --with-auto-bundle-creation-path=\"${BUNDLE_PATH}\"" |
| 41 | +# fake hyperstart initrd as clear containers image |
| 42 | +configure_opts+=" --with-cc-image=\"${HYPERSTART_INITRD}\"" |
| 43 | +# fake hyperstart kernel as clear containers kernel |
| 44 | +configure_opts+=" --with-cc-kernel=\"${HYPERSTART_KERNEL}\"" |
| 45 | + |
| 46 | +# Test enable |
| 47 | +configure_opts+=" --enable-functional-tests" |
| 48 | + |
| 49 | +eval ./autogen.sh "$configure_opts" |
0 commit comments