2024-06-14 00:10:12 +07:00
|
|
|
|
2023-06-11 22:10:36 +07:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2024-06-14 00:10:12 +07:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# r8169 is the Linux device driver released for Realtek Gigabit Ethernet
|
|
|
|
# controllers with PCI-Express interface.
|
2023-06-11 22:10:36 +07:00
|
|
|
#
|
2024-06-14 00:10:12 +07:00
|
|
|
# Author:
|
|
|
|
# Copyright (c) 2002 ShuChen <shuchen@realtek.com.tw>
|
|
|
|
# Copyright (c) 2003 - 2007 Francois Romieu <romieu@fr.zoreil.com>
|
|
|
|
# Copyright (c) a lot of people too. Please respect their work.
|
2023-06-11 22:10:36 +07:00
|
|
|
#
|
2024-06-14 00:10:12 +07:00
|
|
|
################################################################################
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# 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
|
2023-06-11 22:10:36 +07:00
|
|
|
|
2024-06-14 00:10:12 +07:00
|
|
|
all:
|
|
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules
|
2023-10-26 20:35:51 +07:00
|
|
|
|
2024-06-14 00:10:12 +07:00
|
|
|
modules_install:
|
|
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules_install
|
2023-06-11 22:10:36 +07:00
|
|
|
|
2024-06-14 00:10:12 +07:00
|
|
|
clean:
|
|
|
|
$(MAKE) -C $(KDIR) M=$(PWD) clean
|
|
|
|
ifdef $(MUPDATE)
|
|
|
|
$(MAKE) -c $(KDIR) M=$(MUPDATE) clean
|
|
|
|
endif
|
2023-10-26 20:35:51 +07:00
|
|
|
|
2024-06-14 00:10:12 +07:00
|
|
|
sign:
|
|
|
|
/usr/src/linux/scripts/sign-file $(HASH) /usr/src/linux/certs/signing_key.pem /usr/src/linux/certs/signing_key.x509 r8169.ko
|
2023-11-14 17:47:53 +07:00
|
|
|
|
2024-06-14 00:10:12 +07:00
|
|
|
.PHONY: all modules_install clean sign
|