pciutils: add a PREFIX parameter to make invocation (#21527)

This commit is contained in:
darmac 2021-02-08 16:22:55 +08:00 committed by GitHub
parent ca24b6c740
commit 1bee682d67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,9 @@ class Pciutils(MakefilePackage):
variant('lib', default=False, description='Install libraries with headers')
def build(self, spec, prefix):
make('PREFIX={0}'.format(prefix))
def install(self, spec, prefix):
if '+lib' in spec:
make('install-lib', 'install', 'PREFIX={0}'.format(prefix))