diff options
author | Nicolas Benech <nbenech@nvidia.com> | 2018-09-28 15:29:26 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-29 02:55:13 -0400 |
commit | 44574a01bb665c3ee59db3577fdd438a9aefc037 (patch) | |
tree | 51232cc970105d72075dd3feacbd0b0a2c106aa9 /userspace/units/posix-mockio/Makefile.tmk | |
parent | 7a033af6602258b2f2c738a7836d17562b17d8b8 (diff) |
gpu: nvgpu: unit: Add mockio unit test to tmake
MockIO unit test went in before the tmake changes. Now
adding tmake files so that it builds for target.
Change-Id: I9f08076a46f8f6487342553999d43279fb74cabb
Signed-off-by: Nicolas Benech <nbenech@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1851219
Reviewed-by: Philip Elcan <pelcan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'userspace/units/posix-mockio/Makefile.tmk')
-rw-r--r-- | userspace/units/posix-mockio/Makefile.tmk | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/userspace/units/posix-mockio/Makefile.tmk b/userspace/units/posix-mockio/Makefile.tmk new file mode 100644 index 00000000..fbc31351 --- /dev/null +++ b/userspace/units/posix-mockio/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 | |||
15 | ifdef NV_COMPONENT_FLAG_SHARED_LIBRARY_SECTION | ||
16 | include $(NV_BUILD_START_COMPONENT) | ||
17 | |||
18 | NV_COMPONENT_NAME := posix-mockio | ||
19 | NV_COMPONENT_SOURCES := posix-mockio.c | ||
20 | NV_COMPONENT_OWN_INTERFACE_DIR := . | ||
21 | NV_COMPONENT_CFLAGS += -D__NVGPU_POSIX__ | ||
22 | |||
23 | NV_COMPONENT_NEEDED_INTERFACE_DIRS := \ | ||
24 | $(NV_SOURCE)/kernel/nvgpu/drivers/gpu/nvgpu \ | ||
25 | $(NV_SOURCE)/kernel/nvgpu/userspace | ||
26 | |||
27 | NV_COMPONENT_SYSTEMIMAGE_DIR := $(NV_SYSTEMIMAGE_TEST_EXECUTABLE_DIR)/nvgpu_unit/units | ||
28 | systemimage:: $(NV_COMPONENT_SYSTEMIMAGE_DIR) | ||
29 | $(NV_COMPONENT_SYSTEMIMAGE_DIR) : $(NV_SYSTEMIMAGE_TEST_EXECUTABLE_DIR) | ||
30 | $(MKDIR_P) $@ | ||
31 | |||
32 | include $(NV_BUILD_SHARED_LIBRARY) | ||
33 | |||
34 | endif | ||
35 | |||
36 | # Local Variables: | ||
37 | # indent-tabs-mode: t | ||
38 | # tab-width: 8 | ||
39 | # End: | ||
40 | # vi: set tabstop=8 noexpandtab: | ||