mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: unit: Add posix-env test to unit tests
Add the posix-env test to the unit test suite that gets built by tmake. This test caught a legit bug in the posix impl on the target platform which needed to be fixed first. JIRA NVGPU-1234 Change-Id: Ic62eac0bb62741dd03883dcd24c57b49ff67fa0e Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1846180 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: Philip Elcan <pelcan@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@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
d031d28d41
commit
3bbd40366a
@@ -23,6 +23,7 @@ ifneq ($(NV_BUILD_CONFIGURATION_OS_IS_INTEGRITY),1)
|
|||||||
NV_REPOSITORY_COMPONENTS := drivers/gpu/nvgpu
|
NV_REPOSITORY_COMPONENTS := drivers/gpu/nvgpu
|
||||||
NV_REPOSITORY_COMPONENTS += userspace
|
NV_REPOSITORY_COMPONENTS += userspace
|
||||||
NV_REPOSITORY_COMPONENTS += userspace/units/posix-bitops
|
NV_REPOSITORY_COMPONENTS += userspace/units/posix-bitops
|
||||||
|
NV_REPOSITORY_COMPONENTS += userspace/units/posix-env
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
|
|||||||
25
userspace/units/posix-env/Makefile.interface.tmk
Normal file
25
userspace/units/posix-env/Makefile.interface.tmk
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
################################### tell Emacs this is a -*- makefile-gmake -*-
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018, 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
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
ifdef NV_INTERFACE_FLAG_SHARED_LIBRARY_SECTION
|
||||||
|
NV_INTERFACE_NAME := posix-env
|
||||||
|
NV_INTERFACE_EXPORTS := posix-env
|
||||||
|
NV_INTERFACE_PUBLIC_INCLUDES := . include
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# indent-tabs-mode: t
|
||||||
|
# tab-width: 8
|
||||||
|
# End:
|
||||||
|
# vi: set tabstop=8 noexpandtab:
|
||||||
40
userspace/units/posix-env/Makefile.tmk
Normal file
40
userspace/units/posix-env/Makefile.tmk
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
################################### tell Emacs this is a -*- makefile-gmake -*-
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018 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
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
ifdef NV_COMPONENT_FLAG_SHARED_LIBRARY_SECTION
|
||||||
|
include $(NV_BUILD_START_COMPONENT)
|
||||||
|
|
||||||
|
NV_COMPONENT_NAME := posix-env
|
||||||
|
NV_COMPONENT_SOURCES := posix-env.c
|
||||||
|
NV_COMPONENT_OWN_INTERFACE_DIR := .
|
||||||
|
NV_COMPONENT_CFLAGS += -D__NVGPU_POSIX__
|
||||||
|
|
||||||
|
NV_COMPONENT_NEEDED_INTERFACE_DIRS := \
|
||||||
|
$(NV_SOURCE)/kernel/nvgpu/drivers/gpu/nvgpu \
|
||||||
|
$(NV_SOURCE)/kernel/nvgpu/userspace
|
||||||
|
|
||||||
|
NV_COMPONENT_SYSTEMIMAGE_DIR := $(NV_SYSTEMIMAGE_TEST_EXECUTABLE_DIR)/nvgpu_unit/units
|
||||||
|
systemimage:: $(NV_COMPONENT_SYSTEMIMAGE_DIR)
|
||||||
|
$(NV_COMPONENT_SYSTEMIMAGE_DIR) : $(NV_SYSTEMIMAGE_TEST_EXECUTABLE_DIR)
|
||||||
|
$(MKDIR_P) $@
|
||||||
|
|
||||||
|
include $(NV_BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# indent-tabs-mode: t
|
||||||
|
# tab-width: 8
|
||||||
|
# End:
|
||||||
|
# vi: set tabstop=8 noexpandtab:
|
||||||
3
userspace/units/posix-env/posix-env.export
Normal file
3
userspace/units/posix-env/posix-env.export
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
|
||||||
|
|
||||||
|
__unit_module__
|
||||||
Reference in New Issue
Block a user