make rules for subject

This commit is contained in:
Jolan Rathelot 2024-11-21 10:57:19 +01:00
parent 354f123b74
commit 18b55744c0
2 changed files with 13 additions and 5 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
.idea .idea
obj obj
ps_tester ps_tester
patch_kernel

View File

@ -32,14 +32,21 @@ fclean: clean
re: fclean re: fclean
@$(MAKE) -C $$PWD @$(MAKE) -C $$PWD
patch_kernel: patch_kernel: patch.diff
git -C $(KDIR) apply $$PWD/patch.diff
touch patch_kernel
compile_kernel: #patch_kernel restore_kernel: patch_kernel
$(MAKE) -C $(KDIR) LLVM=1 -j 6 git -C $(KDIR) checkout .
rm -rf $(KDIR)/kernel/get_pid_info
rm -rf patch_kernel
mount_boot: mount_boot:
mount /dev/vda1 mount /dev/vda1
compile_kernel: patch_kernel
$(MAKE) -C $(KDIR) LLVM=1 -j 6
install_kernel: mount_boot compile_kernel install_kernel: mount_boot compile_kernel
$(MAKE) -C $(KDIR) LLVM=1 modules_install $(MAKE) -C $(KDIR) LLVM=1 modules_install
cp -iv $(KDIR)/System.map /boot/System.map-6.12.0-modded cp -iv $(KDIR)/System.map /boot/System.map-6.12.0-modded
@ -50,4 +57,4 @@ install_kernel: mount_boot compile_kernel
install: install_kernel install: install_kernel
reboot reboot
.PHONY: install compile_kernel install_kernel patch_kernel mount_boot .PHONY: install compile_kernel install_kernel mount_boot restore_kernel