Skip to content

Commit

Permalink
updating to version 2.0 with kernel module
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubberazer committed Aug 6, 2024
1 parent 837e10e commit e972948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jetclocks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ clean:
install:
$(eval EXTFILE := $(shell find /boot/extlinux -name "extlinux.conf" -exec basename {} \;))
$(eval CHECKER := $(shell grep /boot/extlinux/$(EXTFILE) -e "DEFAULT jetclocks"))
$(eval DTBFILE := $(shell find /boot/dtb -name "*kernel*.dtb" -exec basename {} \;))
@if [ "$(CHECKER)" = "" ]; then\
$(eval DTBFILE := $(shell find /boot/dtb -name "*kernel*.dtb" -exec basename {} \; | head -n 1))
@if [ "$(CHECKER)" = "" ] && [ "$(DTBFILE)" != "" ]; then\
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules_install;\
touch /etc/modules-load.d/jetclocks.conf;\
echo "# Load jetclocks module\njetclocks" > /etc/modules-load.d/jetclocks.conf;\
Expand Down

0 comments on commit e972948

Please sign in to comment.