-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
44 lines (36 loc) · 1.45 KB
/
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
39
40
41
42
43
44
# SPDX-License-Identifier: GPL-2.0-only
################################################################################
#
# r8169 is the Linux device driver released for Realtek Gigabit Ethernet
# controllers with PCI-Express interface.
#
# Author:
# Copyright (c) 2002 ShuChen <[email protected]>
# Copyright (c) 2003 - 2007 Francois Romieu <[email protected]>
# Copyright (c) a lot of people too. Please respect their work.
#
################################################################################
################################################################################
# This product is covered by one or more of the following patents:
# US6,570,884, US6,115,776, and US6,327,625.
################################################################################
# Set the kernel build directory
KDIR ?= "/lib/modules/$(shell uname -r)/build"
# Directory for module updates
MUPDATE ?= "/lib/modules/$(shell uname -r)/updates"
# Hash for signing
HASH = sha3-512
obj-m := r8169.o
r8169-objs := r8169_main.o r8169_firmware.o r8169_phy_config.o r8169_leds.o
all:
$(MAKE) -C $(KDIR) M=$(PWD) modules
modules_install:
$(MAKE) -C $(KDIR) M=$(PWD) modules_install
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
ifdef $(MUPDATE)
$(MAKE) -c $(KDIR) M=$(MUPDATE) clean
endif
sign:
/usr/src/linux/scripts/sign-file $(HASH) /usr/src/linux/certs/signing_key.pem /usr/src/linux/certs/signing_key.x509 r8169.ko
.PHONY: all modules_install clean sign