-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fengyingcai
committed
Dec 8, 2020
1 parent
9d23b5f
commit 911526a
Showing
13 changed files
with
293 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
obj-m := rtc-sd3078.o | ||
CURRENT_PATH := $(shell pwd) | ||
LINUX_KERNEL := $(shell uname -r) | ||
LINUX_KERNEL_PATH := /usr/src/linux-headers-$(LINUX_KERNEL) | ||
BUILD_DIR := $(shell pwd)/build | ||
BUILD_DIR_MAKEFILE := $(PWD)/build/Makefile | ||
|
||
all: $(BUILD_DIR_MAKEFILE) | ||
$(MAKE) -C $(LINUX_KERNEL_PATH) M=$(BUILD_DIR) src=$(PWD) modules | ||
|
||
$(BUILD_DIR): | ||
mkdir -p "$@" | ||
|
||
$(BUILD_DIR_MAKEFILE): $(BUILD_DIR) | ||
touch "$@" | ||
|
||
clean: | ||
$(MAKE) -C $(LINUX_KERNEL_PATH) M=$(BUILD_DIR) src=$(PWD) clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Linux kernel modules | ||
|
||
Make kernel modules: | ||
|
||
make | ||
|
||
## RTC | ||
|
||
rtc-sd3078.c https://github.com/torvalds/linux/blob/master/drivers/rtc/rtc-sd3078.c |
Oops, something went wrong.