You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
985 B
36 lines
985 B
From b7f93f17eb508c07d45ace1b7b7e62be3ed81664 Mon Sep 17 00:00:00 2001
|
|
From: itycodes <tranquillitycodes@proton.me>
|
|
Date: Thu, 12 Jun 2025 02:07:07 +0200
|
|
Subject: [PATCH 3/4] Fix Makefile not respecting KDIR
|
|
|
|
---
|
|
Makefile | 8 +++++---
|
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index c3154cc..30a4df4 100755
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -1,11 +1,13 @@
|
|
obj-m := cc1101.o
|
|
cc1101-objs+= cc1101_main.o cc1101_chrdev.o cc1101_spi.o cc1101_radio.o cc1101_config.o
|
|
|
|
+KDIR ?= /lib/modules/$(shell uname -r)/build
|
|
+
|
|
all:
|
|
- make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
|
|
+ make -C $(KDIR) M=$(PWD) modules
|
|
|
|
rxonly:
|
|
- make -C /lib/modules/$(shell uname -r)/build M=$(PWD) ccflags-y="-DRXONLY" modules
|
|
+ make -C $(KDIR) M=$(PWD) ccflags-y="-DRXONLY" modules
|
|
|
|
clean:
|
|
- make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
|
|
\ No newline at end of file
|
|
+ make -C $(KDIR) M=$(PWD) clean
|
|
\ No newline at end of file
|
|
--
|
|
2.49.0
|
|
|