configure.py: do not show Entering/Leaving directory on DPDK cflags detector

When configure.py called inside Makefile, dpdk_cflags() mistakenly extract "Entering directory" message. This patch prevent the problem.

Signed-off-by: Takuya ASADA <syuu@cloudius-systems.com>
This commit is contained in:
Takuya ASADA
2015-04-17 20:06:15 +09:00
committed by Avi Kivity
parent 2c23c5430a
commit 826a8b446f

View File

@@ -64,7 +64,8 @@ def dpdk_cflags (dpdk_target):
sfile.file.write(bytes('@echo $(MACHINE_CFLAGS)' + "\n", 'utf-8'))
sfile.file.flush()
dpdk_cflags = subprocess.check_output(['make', '-f', sfile.name,
dpdk_cflags = subprocess.check_output(['make', '--no-print-directory',
'-f', sfile.name,
'RTE_SDK=' + dpdk_sdk_path,
'RTE_TARGET=' + dpdk_target_name,
'RTE_ARCH=' + dpdk_arch])