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 861c8ec commit f26d4a3
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions Jetclocks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,6 @@ install:
rm -f $(PWD)/extlinux.conf.temp;\
echo "All done, you should reboot your machine now";\
fi
# force_install:
# 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
# depmod -a
# @echo "jetclocks.conf created into /etc/modules-load.d/"
# @echo "Finding device tree blob"
# $(eval DTBFILE := $(shell find /boot/dtb -name "*kernel*.dtb" -exec basename {} \;))
# @echo "Creating backup of: /boot/dtb/$(DTBFILE) -> /boot/dtb/$(DTBFILE).jetclocks.backup"
# @cp /boot/dtb/$(DTBFILE) /boot/dtb/$(DTBFILE).jetclocks.backup
# @echo "Applying overlay blob to: /boot/dtb/$(DTBFILE)"
# @fdtoverlay -i /boot/dtb/$(DTBFILE) -o /boot/dtb/jetclocks.dtb $(PWD)/overlay_blob/jetclocks.dtbo
# $(eval EXTFILE := $(shell find /boot/extlinux -name "extlinux.conf" -exec basename {} \;))
# $(eval CHECKER := $(shell grep /boot/extlinux/$(EXTFILE) -e "DEFAULT jetclocks"))
# @echo "Creating backup of: /boot/extlinux/$(EXTFILE) -> /boot/extlinux/$(EXTFILE).jetclocks.backup"
# @cp /boot/extlinux/$(EXTFILE) /boot/extlinux/$(EXTFILE).jetclocks.backup
# @echo "Modifying: /boot/extlinux/$(EXTFILE)"
# @echo "`awk '/LABEL primary/{f=1} /APPEND/{f=0;print} f' /boot/extlinux/extlinux.conf | sed '/#/d'`" > $(PWD)/extlinux.conf.temp
# @sed -i 's/LABEL\sprimary/LABEL jetclocks/g' $(PWD)/extlinux.conf.temp
# @sed -i 's/MENU\sLABEL\sjetclocks/MENU LABEL primary/g' $(PWD)/extlinux.conf.temp
# @sed -i '/LINUX/a\ FDT /boot/dtb/jetclocks.dtb' $(PWD)/extlinux.conf.temp
# @echo "`cat $(PWD)/extlinux.conf.temp`" >> /boot/extlinux/$(EXTFILE)
# @sed -i 's/DEFAULT\sprimary/DEFAULT jetclocks/g' /boot/extlinux/$(EXTFILE)
# @rm -f $(PWD)/extlinux.conf.temp
# @echo "All done, you should reboot the machine now"

uninstall:
$(eval JETFILE := $(shell find /lib/modules/$(uname -r) -name "jetclocks.ko"))
Expand Down

0 comments on commit f26d4a3

Please sign in to comment.