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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
---
 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

_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux