gpu: nvgpu: unit: libnvgpu-fifo for host makefiles

channel and tsg units used to build object files from
upper fifo directory. But this was causing build
dependencies issues and stale .o files could be used.
Fixed this by building a shared library for nvgpu-fifo
for host makefiles.

Jira NVGPU-3480

Change-Id: I32655c207f48baa5cde40846ae5a276c7c8fa6fd
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2150370
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vedashree Vidwans <vvidwans@nvidia.com>
Tested-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-by: Adeel Raza <araza@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Thomas Fleury
2019-07-09 09:40:36 -04:00
committed by mobile promotions
parent 9bb347edec
commit 5d6536b48f
5 changed files with 44 additions and 3 deletions

View File

@@ -20,7 +20,14 @@
.SUFFIXES:
OBJS = nvgpu-channel.o ../nvgpu-fifo.o ../nvgpu-fifo-gv11b.o
OBJS = nvgpu-channel.o
MODULE = nvgpu-channel
LIB_PATHS += -lnvgpu-fifo
include ../../Makefile.units
lib$(MODULE).so: fifo
fifo:
$(MAKE) -C ..