dpdk: Avoid option conflicts between spack wrappers and Makefiles on aarch64 gcc. (#18603)

This commit is contained in:
Toyohisa Kameyama 2020-09-10 23:59:18 +09:00 committed by GitHub
parent e13e2b0d54
commit 34f4049815
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,14 @@ class Dpdk(MakefilePackage):
depends_on('numactl') depends_on('numactl')
@when('%gcc target=aarch64:')
def patch(self):
filter_file(
r'^MACHINE_CFLAGS',
'#MACHINE_CFLAGS',
join_path('mk', 'machine', 'armv8a', 'rte.vars.mk')
)
def build(self, spec, prefix): def build(self, spec, prefix):
make('defconfig') make('defconfig')
make() make()