From 3bbd40366a0bdc54d882fc420e82d54b496dfad7 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Tue, 25 Sep 2018 15:30:37 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1846180 Reviewed-by: svc-misra-checker Reviewed-by: Philip Elcan GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- userspace/units/posix-env/Makefile.interface.tmk | 25 +++++++++++++++ userspace/units/posix-env/Makefile.tmk | 40 ++++++++++++++++++++++++ userspace/units/posix-env/posix-env.export | 3 ++ 3 files changed, 68 insertions(+) create mode 100644 userspace/units/posix-env/Makefile.interface.tmk create mode 100644 userspace/units/posix-env/Makefile.tmk create mode 100644 userspace/units/posix-env/posix-env.export (limited to 'userspace/units/posix-env') 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 @@ +################################### 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: 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 @@ +################################### 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: 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 @@ +# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. + +__unit_module__ -- cgit v1.2.2