forked from amd/amd_energy
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
37 lines (28 loc) · 952 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# SPDX-License-Identifier: GPL-2.0
#
# Makefile for AMD Energy driver
#
# Copyright (C) 2021 Advanced Micro Devices, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# If KDIR is not specified, assume the development source link
# is in the modules directory for the running kernel
KDIR ?= /lib/modules/`uname -r`/build
obj-m := zenergy.o
default:
export CONFIG_SENSOR_zenergy=m; \
$(MAKE) -C $(KDIR) M=$$PWD modules
modules: default
modules_install:
$(MAKE) -C $(KDIR) M=$$PWD modules_install
clean:
$(MAKE) -C $(KDIR) M=$$PWD clean
help:
@echo "\nThe following make targets are supported:\n"
@echo "default\t\tBuild the driver module (or if no make target is supplied)"
@echo "modules\t\tSame as default"
@echo "modules_install\tBuild and install the driver module"
@echo "clean"
@echo
.PHONY: default modules modules_install clean help