Signed-off-by: Jolan Rathelot <jrathelo@student.42nice.fr>
This commit is contained in:
Jolan Rathelot 2024-03-14 17:31:32 +01:00
parent 3f0b033f1b
commit bf5d9ed83b
3 changed files with 14 additions and 4 deletions

6
.idea/workspace.xml generated
View File

@ -16,7 +16,9 @@
<configurations /> <configurations />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="2686ebbf-1c6c-4484-bb57-dec59a208d53" name="Changes" comment="" /> <list default="true" id="2686ebbf-1c6c-4484-bb57-dec59a208d53" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/99-Hotload-Keyboard.rules" beforeDir="false" afterPath="$PROJECT_DIR$/99-Hotload-Keyboard.rules" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -151,7 +153,7 @@
<workItem from="1710406290228" duration="3416000" /> <workItem from="1710406290228" duration="3416000" />
<workItem from="1710410667925" duration="2000" /> <workItem from="1710410667925" duration="2000" />
<workItem from="1710410734122" duration="3818000" /> <workItem from="1710410734122" duration="3818000" />
<workItem from="1710428742857" duration="4430000" /> <workItem from="1710428742857" duration="5381000" />
</task> </task>
<task id="LOCAL-00001" summary="Removed Rust code, added misc device and irq handle. Began work on correctly formatting print msg and logging files."> <task id="LOCAL-00001" summary="Removed Rust code, added misc device and irq handle. Began work on correctly formatting print msg and logging files.">
<option name="closed" value="true" /> <option name="closed" value="true" />

View File

@ -0,0 +1,3 @@
# /etc/udev/rules.d/99-hello_keyboard.rules
ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="03", ATTR{bInterfaceProtocol}=="01", RUN+="/usr/sbin/modprobe driver_and_interrupts"

View File

@ -6,11 +6,16 @@ all: driver_and_interrupts.ko
driver_and_interrupts.ko: $(SRC) driver_and_interrupts.ko: $(SRC)
$(MAKE) -C $(KDIR) M=$$PWD LLVM=1 $(MAKE) -C $(KDIR) M=$$PWD LLVM=1
install: modprobe install: modprobe rules_install
modules_install: driver_and_interrupts.ko modules_install: driver_and_interrupts.ko
$(MAKE) -C $(KDIR) M=$$PWD LLVM=1 modules_install $(MAKE) -C $(KDIR) M=$$PWD LLVM=1 modules_install
rules_install: modules_install 99-Hotload-Keyboard.rules driver_and_interrupts.ko
cp -v 99-Hotload-Keyboard.rules /etc/udev/rules.d/
udevadm control --reload-rules
udevadm trigger
clean: clean:
$(MAKE) -C $(KDIR) M=$$PWD LLVM=1 clean $(MAKE) -C $(KDIR) M=$$PWD LLVM=1 clean
@ -20,4 +25,4 @@ modprobe: modules_install
rmmod: rmmod:
rmmod driver_and_interrupts rmmod driver_and_interrupts
.PHONY: all clean modules_install rmmod modprobe install .PHONY: all clean modules_install rmmod modprobe install rules_install