Skip to content

Commit dea1dce

Browse files
authored
packer-rocm: niccli build fixes (#64)
* packer-rocm/niccli: +build deps for certain permutations, handle no-amdgpu/rocm
1 parent 9a552d3 commit dea1dce

File tree

3 files changed

+47
-39
lines changed

3 files changed

+47
-39
lines changed

packer-rocm/playbooks/roles/amdgpu_install/vars/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ amdgpu_install_pkg_patts: # indexed by 'ansible_distribution' fact
1010
# Packages to install after 'amdgpu-install' but before the usecases
1111
amdgpu_install_pre:
1212
common:
13+
- automake # only 'suggested' by 'build-essential' metapkg, not mentioned by 'Development Tools' group
14+
- autoconf # "
1315
- cmake
1416
- curl
1517
- dkms
@@ -25,8 +27,6 @@ amdgpu_install_pre:
2527
- wget
2628
- zip
2729
Debian:
28-
- autoconf
29-
- automake
3030
- libstdc++-12-dev
3131
- "linux-headers-{{ ansible_kernel }}"
3232
- "linux-modules-extra-{{ ansible_kernel }}"

packer-rocm/playbooks/roles/niccli/defaults/main.yml

+4-37
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,12 @@
88
# - 'Broadcom NetXtreme-E Linux Installer'
99
# - 'NetXtreme-E Linux Driver'
1010
#
11-
# NOTE/warning: URL patterns are not consistent enough for templating to make much sense; provide/set the full URL at once. See above for discovery process.
12-
niccli_url: 'https://docs.broadcom.com/docs-and-downloads/ethernet-network-adapters/NXE/Thor2/GCA1/bcm5760x_230.2.52.0a.zip'
11+
# NOTE/Warning: Patterns in URLs have not been consistent enough for templating to make [much] sense. Directories change along with releases.
12+
niccli_url: 'https://docs.broadcom.com/docs-and-downloads/ethernet-network-adapters/NXE/Thor2/GCA2/bcm5760x_231.2.63.0a.zip'
1313

14-
# 'niccli_sum' deliberately is *not* defaulted with the URL. if users want to change the URL... this should not require the checksum be corrected/emptied
15-
# this should act as opt-in validation, not a requirement
14+
# 'niccli_sum' deliberately is *not* defaulted with the URL.
15+
# if users want to change the link... they should not be required to correct or empty the checksum. this should act as opt-in validation, not a requirement.
1616

1717
# install the CLI and driver by default, may opt out
1818
niccli_driver: true
1919
niccli_wanted: true
20-
21-
niccli_requirements: # mapped by 'ansible_os_family' fact
22-
common:
23-
- dkms
24-
- pciutils
25-
- unzip
26-
Debian:
27-
- build-essential
28-
- ibverbs-providers
29-
- ibverbs-utils
30-
- libaio-dev
31-
- libibverbs1
32-
- libibverbs-dev
33-
- libstdc++-12-dev
34-
- libelf-dev
35-
- libibumad-dev
36-
- librdmacm-dev
37-
- linux-headers-generic
38-
- "linux-headers-{{ ansible_kernel }}"
39-
- "linux-modules-extra-{{ ansible_kernel }}"
40-
- rdmacm-utils
41-
RedHat:
42-
- '@Development Tools' # group notation (@...) requires quoting
43-
- kernel-headers
44-
- kernel-devel-matched
45-
- kernel-modules-extra
46-
- libstdc++-devel
47-
- libaio-devel
48-
- libibumad
49-
- libibverbs
50-
- libibverbs-utils
51-
- elfutils-libelf-devel
52-
- librdmacm-utils

packer-rocm/playbooks/roles/niccli/vars/main.yml

+41
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,44 @@ niccli_pkg_anyarch:
1010
niccli_pkg_ext:
1111
Debian: '.deb'
1212
RedHat: '.rpm'
13+
14+
# distribution packages to install before those for 'niccli'; mapped by 'ansible_os_family' fact
15+
niccli_requirements:
16+
common:
17+
- automake # only 'suggested' by 'build-essential' metapkg, not mentioned by 'Development Tools' group
18+
- autoconf # "
19+
- cmake
20+
- dkms
21+
- infiniband-diags
22+
- pciutils
23+
- rdma-core
24+
- strace
25+
- unzip
26+
Debian:
27+
- build-essential
28+
- ibverbs-providers
29+
- ibverbs-utils
30+
- libaio-dev
31+
- libibverbs1
32+
- libibverbs-dev
33+
- libstdc++-12-dev
34+
- libelf-dev
35+
- libibumad-dev
36+
- librdmacm-dev
37+
- linux-headers-generic
38+
- "linux-headers-{{ ansible_kernel }}"
39+
- "linux-modules-extra-{{ ansible_kernel }}"
40+
- pkg-config
41+
- rdmacm-utils
42+
RedHat:
43+
- '@Development Tools' # group notation (@...) requires quoting
44+
- kernel-headers
45+
- kernel-devel-matched
46+
- kernel-modules-extra
47+
- libstdc++-devel
48+
- libaio-devel
49+
- libibumad
50+
- libibverbs
51+
- libibverbs-utils
52+
- elfutils-libelf-devel
53+
- librdmacm-utils

0 commit comments

Comments
 (0)