mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-24 10:13:00 +03:00
1. Add BUILD.bazel file. 2. Add build target of kernel module and required include folder srctree.* in Makefile to fix the build issue Bug 4344670 Change-Id: I22560573aaa38ec5a2b14290a2ba48e1f2e5ab0c Signed-off-by: Jian-Min Liu <jianminl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3066227 Reviewed-by: Vasuki Shankar <vasukis@nvidia.com> Reviewed-by: Chun Ng <chunn@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
41 lines
870 B
Python
41 lines
870 B
Python
# SPDX-License-Identifier: GPL-2.0-only
|
|
# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
|
|
load("//build/kernel/kleaf:kernel.bzl", "kernel_module")
|
|
|
|
package(
|
|
default_visibility = [
|
|
"//visibility:public",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "headers",
|
|
srcs = glob([
|
|
] + [
|
|
"Makefile.hwpm.sources",
|
|
"Makefile.t234.sources",
|
|
"Makefile.th500.sources",
|
|
"Makefile.common.sources",
|
|
"Makefile.linux.sources",
|
|
"Makefile.th500.soc.sources",
|
|
]),
|
|
)
|
|
|
|
kernel_module(
|
|
name = "hwpm",
|
|
srcs = glob([
|
|
"**/*.c",
|
|
"**/*.h",
|
|
]) + [
|
|
":headers",
|
|
"//hwpm:hwpm_headers",
|
|
"//nvidia-oot/scripts/conftest:conftest_headers",
|
|
],
|
|
|
|
outs = [
|
|
"nvhwpm.ko",
|
|
],
|
|
kernel_build = "//nvidia-build/kleaf:tegra_android",
|
|
)
|