|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 2 | +# contributor license agreements. See the NOTICE file distributed with |
| 3 | +# this work for additional information regarding copyright ownership. |
| 4 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 5 | +# (the "License"); you may not use this file except in compliance with |
| 6 | +# the License. You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +class bigtop_toolchain::isal { |
| 16 | + require bigtop_toolchain::packages |
| 17 | + $url = "https://github.com/intel/isa-l/archive/refs/tags/v2.29.0.tar.gz" |
| 18 | + $isal = "v2.29.0.tar.gz" |
| 19 | + $isaldir = "isa-l-2.29.0" |
| 20 | + exec { "download isal": |
| 21 | + cwd => "/usr/src", |
| 22 | + command => "/usr/bin/wget $url && mkdir -p $isaldir && /bin/tar -xvzf $isal -C $isaldir --strip-components=1", |
| 23 | + creates => "/usr/src/$isaldir", |
| 24 | + } |
| 25 | + exec { "install isal": |
| 26 | + cwd => "/usr/src/$isaldir", |
| 27 | + command => "/usr/src/$isaldir/autogen.sh && /usr/src/$isaldir/configure --prefix=/usr/local && /usr/bin/make && /usr/bin/make install", |
| 28 | + creates => "/usr/local/bin/$isaldir", |
| 29 | + require => EXEC["download isal"], |
| 30 | + timeout => 3000 |
| 31 | + } |
| 32 | +} |
0 commit comments