mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: libfalcon_utf for tmake 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: Ie117f553ad792a1652852b433456d86d264d0bb8 Signed-off-by: Divya Singhatwaria <dsinghatwari@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2154211 Reviewed-by: Sagar Kamble <skamble@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
5980d4c44f
commit
b1a11e71bf
@@ -64,6 +64,7 @@ NV_REPOSITORY_COMPONENTS += userspace/units/fuse
|
||||
endif
|
||||
NV_REPOSITORY_COMPONENTS += userspace/units/list
|
||||
NV_REPOSITORY_COMPONENTS += userspace/units/enabled
|
||||
NV_REPOSITORY_COMPONENTS += userspace/units/falcon
|
||||
NV_REPOSITORY_COMPONENTS += userspace/units/falcon/falcon
|
||||
endif
|
||||
|
||||
|
||||
29
userspace/units/falcon/Makefile.interface.tmk
Normal file
29
userspace/units/falcon/Makefile.interface.tmk
Normal file
@@ -0,0 +1,29 @@
|
||||
################################### tell Emacs this is a -*- makefile-gmake -*-
|
||||
#
|
||||
# Copyright (c) 2019, NVIDIA CORPORATION. All Rights Reserved.
|
||||
#
|
||||
# NVIDIA CORPORATION and its licensors retain all intellectual property
|
||||
# and proprietary rights in and to this software, related documentation
|
||||
# and any modifications thereto. Any use, reproduction, disclosure or
|
||||
# distribution of this software and related documentation without an express
|
||||
# license agreement from NVIDIA CORPORATION is strictly prohibited.
|
||||
#
|
||||
# tmake for SW Mobile component makefile
|
||||
#
|
||||
# libfalcon_utf interface makefile fragment
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
ifdef NV_INTERFACE_FLAG_SHARED_LIBRARY_SECTION
|
||||
|
||||
NV_INTERFACE_NAME := falcon_utf
|
||||
NV_INTERFACE_EXPORTS := lib$(NV_INTERFACE_NAME)
|
||||
NV_INTERFACE_SONAME := lib$(NV_INTERFACE_NAME).so
|
||||
|
||||
endif
|
||||
|
||||
# Local Variables:
|
||||
# indent-tabs-mode: t
|
||||
# tab-width: 8
|
||||
# End:
|
||||
# vi: set tabstop=8 noexpandtab:
|
||||
26
userspace/units/falcon/Makefile.tmk
Normal file
26
userspace/units/falcon/Makefile.tmk
Normal file
@@ -0,0 +1,26 @@
|
||||
################################### tell Emacs this is a -*- makefile-gmake -*-
|
||||
#
|
||||
# Copyright (c) 2019 NVIDIA CORPORATION. All Rights Reserved.
|
||||
#
|
||||
# NVIDIA CORPORATION and its licensors retain all intellectual property
|
||||
# and proprietary rights in and to this software, related documentation
|
||||
# and any modifications thereto. Any use, reproduction, disclosure or
|
||||
# distribution of this software and related documentation without an express
|
||||
# license agreement from NVIDIA CORPORATION is strictly prohibited.
|
||||
#
|
||||
# tmake for SW Mobile component makefile
|
||||
#
|
||||
# Component makefile for compiling falcon_utf common tests.
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
NVGPU_UNIT_NAME = falcon_utf
|
||||
NVGPU_UNIT_SRCS = falcon_utf.c
|
||||
|
||||
include $(NV_COMPONENT_DIR)/../Makefile.units.common.tmk
|
||||
|
||||
# Local Variables:
|
||||
# indent-tabs-mode: t
|
||||
# tab-width: 8
|
||||
# End:
|
||||
# vi: set tabstop=8 noexpandtab:
|
||||
@@ -13,8 +13,11 @@
|
||||
###############################################################################
|
||||
|
||||
NVGPU_UNIT_NAME=falcon
|
||||
NVGPU_UNIT_SRCS=../falcon_utf.c \
|
||||
falcon.c
|
||||
NVGPU_UNIT_SRCS=falcon.c
|
||||
|
||||
NVGPU_UNIT_INTERFACE_DIRS := \
|
||||
$(NV_COMPONENT_DIR)/.. \
|
||||
$(NV_SOURCE)/kernel/nvgpu/drivers/gpu/nvgpu
|
||||
|
||||
include $(NV_COMPONENT_DIR)/../../Makefile.units.common.tmk
|
||||
|
||||
|
||||
25
userspace/units/falcon/libfalcon_utf.export
Normal file
25
userspace/units/falcon/libfalcon_utf.export
Normal file
@@ -0,0 +1,25 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
nvgpu_utf_falcon_free
|
||||
nvgpu_utf_falcon_init
|
||||
nvgpu_utf_falcon_register_io
|
||||
Reference in New Issue
Block a user