From 7dd618980a5b1b43f914d0bec49d762e29b36bed Mon Sep 17 00:00:00 2001 From: Vedashree Vidwans Date: Wed, 18 Dec 2019 23:10:57 -0800 Subject: [PATCH] gpu: nvgpu: fix build errors in userspace make Recent patches added new dependency of mock-iospace for FIFO unit tests. However, mock-iospace binaries are generated after compiling FIFO UTs. This leads to "cannot find -lmock-iospace" errors. This patch moves mock-iospace compilation before FIFO UTs. Jira NVGPU-4675 Change-Id: Ice2dc42412e06cc9e41b31bc852c220b09974ae2 Signed-off-by: Vedashree Vidwans Reviewed-on: https://git-master.nvidia.com/r/2265396 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions --- userspace/Makefile.sources | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userspace/Makefile.sources b/userspace/Makefile.sources index ff8dd9755..c91a7f508 100644 --- a/userspace/Makefile.sources +++ b/userspace/Makefile.sources @@ -89,6 +89,7 @@ UNITS := \ $(UNIT_SRC)/netlist \ $(UNIT_SRC)/fb \ $(UNIT_SRC)/fbp \ + $(UNIT_SRC)/mock-iospace \ $(UNIT_SRC)/fifo \ $(UNIT_SRC)/fifo/fifo/gk20a \ $(UNIT_SRC)/fifo/fifo/gv11b \ @@ -136,5 +137,4 @@ UNITS := \ $(UNIT_SRC)/acr \ $(UNIT_SRC)/ce \ $(UNIT_SRC)/cg \ - $(UNIT_SRC)/sync \ - $(UNIT_SRC)/mock-iospace + $(UNIT_SRC)/sync