diff --git a/Jetclocks/Makefile b/Jetclocks/Makefile index b6c6bec..86d2c0b 100644 --- a/Jetclocks/Makefile +++ b/Jetclocks/Makefile @@ -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"))