refine efivar install flow (#18557)
This commit is contained in:
parent
e2e90e4d6b
commit
1ac24aca96
1 changed files with 3 additions and 6 deletions
|
@ -3,6 +3,8 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Efivar(MakefilePackage):
|
class Efivar(MakefilePackage):
|
||||||
"""Tools and libraries to work with EFI variables"""
|
"""Tools and libraries to work with EFI variables"""
|
||||||
|
@ -14,10 +16,5 @@ class Efivar(MakefilePackage):
|
||||||
version('36', sha256='24ed0cafbaf6d913e8f60e5da3cbbac1a1578e16cf5c95b21f2eb6753c13173f')
|
version('36', sha256='24ed0cafbaf6d913e8f60e5da3cbbac1a1578e16cf5c95b21f2eb6753c13173f')
|
||||||
version('35', sha256='747bc4d97b4bd74979e5356c44a172534a8a07184f130349fd201742e683d292')
|
version('35', sha256='747bc4d97b4bd74979e5356c44a172534a8a07184f130349fd201742e683d292')
|
||||||
|
|
||||||
build_directory = 'src'
|
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
with working_dir(self.build_directory):
|
make('PREFIX={0}'.format(prefix), 'install')
|
||||||
mkdirp(prefix.lib)
|
|
||||||
install('*.so*', prefix.lib)
|
|
||||||
install_tree('include/efivar', prefix.include)
|
|
||||||
|
|
Loading…
Reference in a new issue