massive restructure

This commit is contained in:
2026-07-30 01:02:17 +02:00
parent 0b0634530f
commit 438ce4c58e
32 changed files with 3558 additions and 0 deletions
@@ -0,0 +1,23 @@
obj-m += cpuid_fault_emulation.o
cpuid_fault_emulation-y := src/cpuid_fault_emulation.o src/capture_context.o src/run_vm.o
PWD := $(CURDIR)
ccflags-y += -I$(src)/inc
asflags-y += -I$(src)/inc
NOCLANG := CONFIG_CLANG_VERSION=0
KERNEL := $(if $(KERNEL),$(KERNEL),$(shell uname -r))
ifneq ($(shell grep "CONFIG_CLANG_VERSION" /lib/modules/$(KERNEL)/build/.config), $(NOCLANG))
LLVM := LLVM=1
endif
all:
echo $(MAKE) $(LLVM) -C /lib/modules/$(KERNEL)/build M=$(PWD) modules
$(MAKE) $(LLVM) -C /lib/modules/$(KERNEL)/build M=$(PWD) modules
clean:
$(MAKE) -C /lib/modules/$(KERNEL)/build M=$(PWD) clean