hwpm: Makefile: Add support to make as module

Add support to make the HWPM driver as module.
Set appropriate path and environment variable
which needs to be passed when building the driver
as module.
Use basic fuse.h file instead of using fuse-helper.h which is not
available in OOT builds.
Introduce HWPM mock file to add definitions for register and
unregister used if HWPM is not compiled in a build.

Bug 4088571

Change-Id: Id6cfb78356d752b963ad7eb16e39b85df92a9a4b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2894547
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Vedashree Vidwans
2023-04-26 22:17:14 -07:00
committed by mobile promotions
parent ea6b4bcc07
commit 5b8bb57dcb
7 changed files with 120 additions and 22 deletions

View File

@@ -18,7 +18,7 @@
#if CONFIG_ACPI
#include <linux/acpi.h>
#endif
#include <soc/tegra/fuse-helper.h>
#include <soc/tegra/fuse.h>
#include <tegra_hwpm_log.h>
#include <tegra_hwpm_soc.h>