Merge "Switch from yasm to nasm"
This commit is contained in:
commit
97aa0f90c9
|
@ -7,8 +7,6 @@ make [platform:rpm]
|
||||||
autoconf
|
autoconf
|
||||||
automake
|
automake
|
||||||
libtool
|
libtool
|
||||||
# yasm exists everywhere but CentOS 7
|
|
||||||
yasm [!platform:centos]
|
|
||||||
liberasurecode-dev [platform:dpkg]
|
liberasurecode-dev [platform:dpkg]
|
||||||
# There's no library in CentOS 7 but Fedora and openSUSE have it.
|
# There's no library in CentOS 7 but Fedora and openSUSE have it.
|
||||||
liberasurecode-devel [platform:rpm !platform:centos]
|
liberasurecode-devel [platform:rpm !platform:centos]
|
||||||
|
|
|
@ -4,9 +4,25 @@ if [ -z "$VIRTUAL_ENV" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$NASM_DIR" ]; then
|
||||||
|
if [ ! -d "$NASM_DIR" ]; then
|
||||||
|
mkdir -p "$NASM_DIR"
|
||||||
|
pushd "$NASM_DIR"
|
||||||
|
curl https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/nasm-2.16.01.tar.gz | tar -xz
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
pushd "$NASM_DIR"/nasm*
|
||||||
|
./autogen.sh
|
||||||
|
./configure --prefix "$VIRTUAL_ENV"
|
||||||
|
make nasm
|
||||||
|
install -c nasm "$VIRTUAL_ENV"/bin/nasm
|
||||||
|
PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$ISAL_DIR" ]; then
|
if [ -n "$ISAL_DIR" ]; then
|
||||||
if [ ! -d "$ISAL_DIR" ]; then
|
if [ ! -d "$ISAL_DIR" ]; then
|
||||||
git clone https://github.com/intel/isa-l.git -b v2.30.0 "$ISAL_DIR"
|
git clone https://github.com/intel/isa-l.git "$ISAL_DIR"
|
||||||
fi
|
fi
|
||||||
pushd "$ISAL_DIR"
|
pushd "$ISAL_DIR"
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
|
|
@ -23,12 +23,12 @@ if is_rhel7; then
|
||||||
sudo yum install -y centos-release-openstack-train
|
sudo yum install -y centos-release-openstack-train
|
||||||
# Now that RDO repositories are enabled, install missing
|
# Now that RDO repositories are enabled, install missing
|
||||||
# packages.
|
# packages.
|
||||||
sudo yum install -y liberasurecode-devel yasm
|
sudo yum install -y liberasurecode-devel
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if is_rhel8; then
|
if is_rhel8; then
|
||||||
# Install CentOS OpenStack repos so that we have access to some extra
|
# Install CentOS OpenStack repos so that we have access to some extra
|
||||||
# packages.
|
# packages.
|
||||||
sudo dnf install -y centos-release-openstack-ussuri
|
sudo dnf install -y centos-release-openstack-ussuri
|
||||||
sudo dnf install -y liberasurecode-devel yasm
|
sudo dnf install -y liberasurecode-devel
|
||||||
fi
|
fi
|
||||||
|
|
1
tox.ini
1
tox.ini
|
@ -7,6 +7,7 @@ deps =
|
||||||
commands=
|
commands=
|
||||||
pytest -v test/
|
pytest -v test/
|
||||||
setenv = LIBERASURECODE_DIR={envdir}/liberasurecode
|
setenv = LIBERASURECODE_DIR={envdir}/liberasurecode
|
||||||
|
NASM_DIR={envdir}/nasm
|
||||||
ISAL_DIR={envdir}/isa-l
|
ISAL_DIR={envdir}/isa-l
|
||||||
JERASURE_DIR={envdir}/jerasure
|
JERASURE_DIR={envdir}/jerasure
|
||||||
GFCOMPLETE_DIR={envdir}/gf-complete
|
GFCOMPLETE_DIR={envdir}/gf-complete
|
||||||
|
|
Loading…
Reference in New Issue