X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=contrib%2Flbuild%2Flbuild;h=370783a02ddc5e64675f69deb9c7b58481c50045;hb=3dea7b17f268d77dcaf9b063182015f8150418e8;hp=224faf0b0b7e9ed1f896afbdc94cc684a2c664c4;hpb=ccf3674c9ca3ed8918c49163007708d1ae5db6f5;p=fs%2Flustre-release.git diff --git a/contrib/lbuild/lbuild b/contrib/lbuild/lbuild index 224faf0..370783a 100755 --- a/contrib/lbuild/lbuild +++ b/contrib/lbuild/lbuild @@ -635,7 +635,11 @@ download_ofed() { # this is a work around for suse distro (sles11.3). what we need is # sles11sp3. We really need to redesign how we use target and distro [[ $distro_name =~ sles ]] && distro_name=${DISTRO/./sp} - file="MLNX_OFED_LINUX-${ofed_version}-${distro_name}-${arch}.tgz" + if [[ $arch = "aarch64" ]]; then + file="MLNX_OFED_LINUX-${ofed_version}-${distro_name}alternate-${arch}.tgz" + else + file="MLNX_OFED_LINUX-${ofed_version}-${distro_name}-${arch}.tgz" + fi download_file "$location/$file" "$KERNELTREE" "$force" ;; ifs) @@ -800,8 +804,11 @@ unpack_ofed() { # this is a work around for suse distro (sles11.3). what we need is # sles11sp3. We really need to redesign how we use target and distro [[ $distro_name =~ sles ]] && distro_name=${DISTRO/./sp} - file="MLNX_OFED_LINUX-${ofed_version}-${distro_name}-${arch}" - + if [[ $arch = "aarch64" ]]; then + file="MLNX_OFED_LINUX-${ofed_version}-${distro_name}alternate-${arch}" + else + file="MLNX_OFED_LINUX-${ofed_version}-${distro_name}-${arch}" + fi # it's not important what distro we get the tarball since we only # interest in the src if ! untar "$KERNELTREE/${file}.tgz"; then