mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 09:12:05 +03:00
Fixing the paths used in the tmake files to build userspace library and test. JIRA MSST-830 Change-Id: Ib4469794d66aa20ae343b367acdc4f43b5e3c4ab Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3363640 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Yifei Wan <ywan@nvidia.com> Reviewed-by: Vasuki Shankar <vasukis@nvidia.com>
65 lines
2.1 KiB
Makefile
65 lines
2.1 KiB
Makefile
################################### tell Emacs this is a -*- makefile-gmake -*-
|
|
#
|
|
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify it
|
|
# under the terms and conditions of the GNU General Public License,
|
|
# version 2, as published by the Free Software Foundation.
|
|
#
|
|
# This program is distributed in the hope it will be useful, but WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
# more details.
|
|
#
|
|
# tmake for SW Mobile component makefile
|
|
#
|
|
# nv_soc_test: unit testing for libnvsochwpm
|
|
#
|
|
###############################################################################
|
|
|
|
ifdef NV_COMPONENT_FLAG_DYNAMIC_EXECUTABLE_SECTION
|
|
include $(NV_BUILD_START_COMPONENT)
|
|
|
|
NV_COMPONENT_NAME := nv_soc_hwpm_test
|
|
|
|
_soc_hwpm_dir = ../..
|
|
_test_hwpm_dir = $(_soc_hwpm_dir)/test
|
|
|
|
NV_COMPONENT_SOURCES := \
|
|
$(NV_SOURCE)/3rdparty/google/googletest/googletest/src/gtest_main.cc \
|
|
$(_test_hwpm_dir)/nv_soc_hwpm_test.cpp \
|
|
$(_test_hwpm_dir)/t241_test.cpp \
|
|
$(_test_hwpm_dir)/t410_test.cpp \
|
|
$(_test_hwpm_dir)/soc_mode_e_buffer.cpp
|
|
|
|
NV_COMPONENT_CFLAGS := -DNV_IS_LDK=1 -Wall
|
|
|
|
NV_COMPONENT_INCLUDES := \
|
|
$(_common_includes) \
|
|
$(NV_SOURCE)/3rdparty/google/googletest/googletest/include \
|
|
$(NV_SOURCE)/3rdparty/google/googletest/googletest \
|
|
$(NV_SOURCE)/3rdparty/google/googletest/googlemock/include \
|
|
$(NV_SOURCE)/hwinc-private/th500/66838280 \
|
|
$(NV_SOURCE)/hwinc-private/tb500/84849639 \
|
|
$(_soc_hwpm_dir) \
|
|
$(_soc_hwpm_dir)/include \
|
|
$(_test_hwpm_dir)
|
|
|
|
NV_COMPONENT_NEEDED_STATIC_INTERFACE_DIRS := \
|
|
$(NV_SOURCE)/3rdparty/google/googletest/googletest \
|
|
$(NV_SOURCE)/3rdparty/google/googletest/googlemock
|
|
|
|
ifeq ($(NV_BUILD_CONFIGURATION_IS_COVERAGE),1)
|
|
NV_COMPONENT_CFLAGS += --coverage
|
|
endif
|
|
|
|
NV_COMPONENT_SYSTEM_SHARED_LIBRARIES := \
|
|
stdc++ \
|
|
dl \
|
|
pthread
|
|
|
|
NV_COMPONENT_CODE_GENERATION := c++11
|
|
|
|
include $(NV_BUILD_DYNAMIC_EXECUTABLE)
|
|
endif |