[PATCH libdrm] tests: bypass amdgpu test build without lib-jsonc

Guchun Chen guchun.chen at amd.com
Fri Aug 16 10:46:16 UTC 2019


Without lib-jsonc, one build error happens. So this patch
is to fix this.

ras_tests.c:33:10: fatal error: json.h: No such file or directory
 #include "json.h"
          ^~~~~~~~
compilation terminated.
Makefile:636: recipe for target 'amdgpu_test-ras_tests.o' failed

Change-Id: I2ca5f813a6d3e118a5793ce80776ee2b27490239
Signed-off-by: Guchun Chen <guchun.chen at amd.com>
---
 tests/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index d274a3e9..afcfd489 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -10,9 +10,11 @@ endif
 
 if HAVE_AMDGPU
 if HAVE_CUNIT
+if HAVE_JSONC
 SUBDIRS += amdgpu
 endif
 endif
+endif
 
 if HAVE_EXYNOS
 SUBDIRS += exynos
-- 
2.17.1



More information about the amd-gfx mailing list