Switch from yasm to nasm

... and build it from source so we can build latest ISA-L
(otherwise, the version shipped by some distros would
complain about a %use directive).

Change-Id: Ic9284c0c24860e44f0c73281492ad4bf873b3d7c
This commit is contained in:
Tim Burke 2022-04-11 08:44:08 -07:00 committed by Tim Burke
parent f592409bcc
commit a8faa01f6c
1 changed files with 16 additions and 14 deletions

View File

@ -3,19 +3,21 @@
path: '{{ ansible_user_dir }}/workspace'
state: directory
- name: install yasm in RHEL based systems
yum:
name: yasm
enablerepo: epel
state: present
when: ansible_distribution in ['RedHat', 'CentOS']
become: yes
- name: install yasm
package:
name: yasm
state: present
become: yes
- name: Build and Install nasm
shell:
cmd: |
set -e
set -x
cd $WORKSPACE
curl https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/nasm-2.16.01.tar.gz | tar -xz
cd nasm*
./autogen.sh
./configure
make nasm
sudo install -c nasm /usr/bin/nasm
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- name: Build and Install ISA-L
shell:
@ -23,7 +25,7 @@
set -e
set -x
cd $WORKSPACE
git clone https://github.com/intel/isa-l.git -b v2.30.0
git clone https://github.com/intel/isa-l.git
cd isa-l
./autogen.sh
./configure