gpu: nvgpu: libfalcon_utf for host makefiles

Accessing falcon_utf objects from another directory
introduces build dependencies and also stale .o files
could be used. Fix this by generating a shared library:
libfalcon_utf.so for falcon.

JIRA NVGPU-2159

Change-Id: I510accbee2cddcf5c130f55bc993a393d90a802b
Signed-off-by: Divya Singhatwaria <dsinghatwari@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2154158
Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: Sagar Kamble <skamble@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Divya Singhatwaria
2019-07-16 19:18:42 +05:30
committed by mobile promotions
parent 82c5ff8712
commit 35799f369e
3 changed files with 36 additions and 2 deletions

View File

@@ -69,6 +69,7 @@ UNITS := \
$(UNIT_SRC)/fifo/tsg \ $(UNIT_SRC)/fifo/tsg \
$(UNIT_SRC)/list \ $(UNIT_SRC)/list \
$(UNIT_SRC)/enabled \ $(UNIT_SRC)/enabled \
$(UNIT_SRC)/falcon \
$(UNIT_SRC)/falcon/falcon $(UNIT_SRC)/falcon/falcon
ifeq ($(CONFIG_NVGPU_HAL_NON_FUSA),1) ifeq ($(CONFIG_NVGPU_HAL_NON_FUSA),1)

View File

@@ -0,0 +1,27 @@
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
.SUFFIXES:
OBJS = falcon_utf.o
MODULE = falcon_utf
include ../Makefile.units

View File

@@ -20,8 +20,14 @@
.SUFFIXES: .SUFFIXES:
OBJS = ../falcon_utf.o \ OBJS = falcon.o
falcon.o
MODULE = falcon MODULE = falcon
LIB_PATHS += -lfalcon_utf
include ../../Makefile.units include ../../Makefile.units
lib$(MODULE).so: falcon_utf
falcon_utf:
$(MAKE) -C ..