make rules for subject
This commit is contained in:
parent
354f123b74
commit
18b55744c0
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
.idea
|
||||
obj
|
||||
ps_tester
|
||||
ps_tester
|
||||
patch_kernel
|
||||
|
15
Makefile
15
Makefile
@ -32,14 +32,21 @@ fclean: clean
|
||||
re: fclean
|
||||
@$(MAKE) -C $$PWD
|
||||
|
||||
patch_kernel:
|
||||
patch_kernel: patch.diff
|
||||
git -C $(KDIR) apply $$PWD/patch.diff
|
||||
touch patch_kernel
|
||||
|
||||
compile_kernel: #patch_kernel
|
||||
$(MAKE) -C $(KDIR) LLVM=1 -j 6
|
||||
restore_kernel: patch_kernel
|
||||
git -C $(KDIR) checkout .
|
||||
rm -rf $(KDIR)/kernel/get_pid_info
|
||||
rm -rf patch_kernel
|
||||
|
||||
mount_boot:
|
||||
mount /dev/vda1
|
||||
|
||||
compile_kernel: patch_kernel
|
||||
$(MAKE) -C $(KDIR) LLVM=1 -j 6
|
||||
|
||||
install_kernel: mount_boot compile_kernel
|
||||
$(MAKE) -C $(KDIR) LLVM=1 modules_install
|
||||
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
|
||||
reboot
|
||||
|
||||
.PHONY: install compile_kernel install_kernel patch_kernel mount_boot
|
||||
.PHONY: install compile_kernel install_kernel mount_boot restore_kernel
|
||||
|
Reference in New Issue
Block a user