summaryrefslogtreecommitdiffstats
path: root/userspace/units/posix-bitops/Makefile.tmk
diff options
context:
space:
mode:
authorPhilip Elcan <pelcan@nvidia.com>2018-09-13 16:27:08 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-24 18:54:18 -0400
commitb3127c45fbede2c292d9bcb7507f05afbd8e9613 (patch)
tree9a7cdd304444988dc427fc450e070a0194b7bd07 /userspace/units/posix-bitops/Makefile.tmk
parent9ac1e34312021ecc80d1b8db8fbff2f3e60e1a54 (diff)
gpu: nvgpu: unit: build posix-bitops in tmake
This builds the posix-bitops unit test shared library in the tmake build system for target. The systemimage output is in nvgpu_unit/build/units/libunit-posix-bitops.so JIRA NVGPU-1042 Change-Id: Id73a1f3e7d8de4e21e3a7f5c5bd036e0ce62ad3e Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1822288 Reviewed-by: svc-misra-checker <svc-misra-checker@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-bitops/Makefile.tmk')
-rw-r--r--userspace/units/posix-bitops/Makefile.tmk45
1 files changed, 45 insertions, 0 deletions
diff --git a/userspace/units/posix-bitops/Makefile.tmk b/userspace/units/posix-bitops/Makefile.tmk
new file mode 100644
index 00000000..b70bd7bb
--- /dev/null
+++ b/userspace/units/posix-bitops/Makefile.tmk
@@ -0,0 +1,45 @@
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
18
19
20NV_COMPONENT_NAME := posix-bitops
21NV_COMPONENT_OWN_INTERFACE_DIR := .
22
23NV_COMPONENT_SOURCES := \
24 posix-bitops.c
25
26NV_COMPONENT_CFLAGS += -D__NVGPU_POSIX__
27
28NV_COMPONENT_NEEDED_INTERFACE_DIRS := \
29 $(NV_SOURCE)/kernel/nvgpu/drivers/gpu/nvgpu \
30 $(NV_SOURCE)/kernel/nvgpu/userspace
31
32NV_COMPONENT_SYSTEMIMAGE_DIR := $(NV_SYSTEMIMAGE_TEST_EXECUTABLE_DIR)/nvgpu_unit/units
33systemimage:: $(NV_COMPONENT_SYSTEMIMAGE_DIR)
34$(NV_COMPONENT_SYSTEMIMAGE_DIR) : $(NV_SYSTEMIMAGE_TEST_EXECUTABLE_DIR)
35 $(MKDIR_P) $@
36
37include $(NV_BUILD_SHARED_LIBRARY)
38
39endif
40
41# Local Variables:
42# indent-tabs-mode: t
43# tab-width: 8
44# End:
45# vi: set tabstop=8 noexpandtab: