-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
39 lines (30 loc) · 968 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
37
38
# SPDX-License-Identifier: GPL-2.0
#
# Makefile for AMD Host System Management Port driver
#
# Copyright (C) 2019 Advanced Micro Devices, Inc.
#
# Author:
# Lewis Carroll <[email protected]>
#
# 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
default:
$(MAKE) -C $(KDIR) M=$$PWD modules
debug:
$(MAKE) CFLAGS_MODULE=-DDEBUG -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 "debug\t\tBuild the driver module with debug output"
@echo "modules_install\tBuild and install the driver module"
@echo "clean"
@echo
.PHONY: default debug modules modules_install clean help