summaryrefslogtreecommitdiffstats
path: root/userspace
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-09-25 18:30:37 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-27 18:07:13 -0400
commit3bbd40366a0bdc54d882fc420e82d54b496dfad7 (patch)
tree76664c8cc6b829f4f01b5a616849447e74412826 /userspace
parentd031d28d4143e4e9d56dc5aac42852279ed3bf7d (diff)
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>
Diffstat (limited to 'userspace')
-rw-r--r--userspace/units/posix-env/Makefile.interface.tmk25
-rw-r--r--userspace/units/posix-env/Makefile.tmk40
-rw-r--r--userspace/units/posix-env/posix-env.export3
3 files changed, 68 insertions, 0 deletions
diff --git a/userspace/units/posix-env/Makefile.interface.tmk b/userspace/units/posix-env/Makefile.interface.tmk
new file mode 100644
index 00000000..3bebc128
--- /dev/null
+++ b/userspace/units/posix-env/Makefile.interface.tmk
@@ -0,0 +1,25 @@
1################################### tell Emacs this is a -*- makefile-gmake -*-
2#
3# Copyright (c) 2018, NVIDIA CORPORATION. All Rights Reserved.
4#
5# NVIDIA CORPORATION and its licensors retain all intellectual property
6# and proprietary rights in and to this software, related documentation
7# and any modifications thereto. Any use, reproduction, disclosure or
8# distribution of this software and related documentation without an express
9# license agreement from NVIDIA CORPORATION is strictly prohibited.
10#
11# tmake for SW Mobile component makefile
12#
13###############################################################################
14
15ifdef NV_INTERFACE_FLAG_SHARED_LIBRARY_SECTION
16NV_INTERFACE_NAME := posix-env
17NV_INTERFACE_EXPORTS := posix-env
18NV_INTERFACE_PUBLIC_INCLUDES := . include
19endif
20
21# Local Variables:
22# indent-tabs-mode: t
23# tab-width: 8
24# End:
25# vi: set tabstop=8 noexpandtab:
diff --git a/userspace/units/posix-env/Makefile.tmk b/userspace/units/posix-env/Makefile.tmk
new file mode 100644
index 00000000..03529636
--- /dev/null
+++ b/userspace/units/posix-env/Makefile.tmk
@@ -0,0 +1,40 @@
1################################### tell Emacs this is a -*- makefile-gmake -*-
2#
3# Copyright (c) 2018 NVIDIA CORPORATION. All Rights Reserved.
4#
5# NVIDIA CORPORATION and its licensors retain all intellectual property
6# and proprietary rights in and to this software, related documentation
7# and any modifications thereto. Any use, reproduction, disclosure or
8# distribution of this software and related documentation without an express
9# license agreement from NVIDIA CORPORATION is strictly prohibited.
10#
11# tmake for SW Mobile component makefile
12#
13###############################################################################
14
15ifdef NV_COMPONENT_FLAG_SHARED_LIBRARY_SECTION
16include $(NV_BUILD_START_COMPONENT)
17
18NV_COMPONENT_NAME := posix-env
19NV_COMPONENT_SOURCES := posix-env.c
20NV_COMPONENT_OWN_INTERFACE_DIR := .
21NV_COMPONENT_CFLAGS += -D__NVGPU_POSIX__
22
23NV_COMPONENT_NEEDED_INTERFACE_DIRS := \
24 $(NV_SOURCE)/kernel/nvgpu/drivers/gpu/nvgpu \
25 $(NV_SOURCE)/kernel/nvgpu/userspace
26
27NV_COMPONENT_SYSTEMIMAGE_DIR := $(NV_SYSTEMIMAGE_TEST_EXECUTABLE_DIR)/nvgpu_unit/units
28systemimage:: $(NV_COMPONENT_SYSTEMIMAGE_DIR)
29$(NV_COMPONENT_SYSTEMIMAGE_DIR) : $(NV_SYSTEMIMAGE_TEST_EXECUTABLE_DIR)
30 $(MKDIR_P) $@
31
32include $(NV_BUILD_SHARED_LIBRARY)
33
34endif
35
36# Local Variables:
37# indent-tabs-mode: t
38# tab-width: 8
39# End:
40# vi: set tabstop=8 noexpandtab:
diff --git a/userspace/units/posix-env/posix-env.export b/userspace/units/posix-env/posix-env.export
new file mode 100644
index 00000000..b039dd36
--- /dev/null
+++ b/userspace/units/posix-env/posix-env.export
@@ -0,0 +1,3 @@
1# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2
3__unit_module__