SNAPKITTYWEST's picture
push from SNAPKITTYWEST/asos-syscall-os
96dc096 verified
Raw
History Blame Contribute Delete
933 Bytes
# Makefile for ASOS Kernel Module
# المرحلة 1: الأساس - Ring Buffer + Intent Schema
# Phase 1: Foundation - Ring Buffer + Intent Schema
#
# Author: Ahmad Ali Parr
# License: Sovereign Source
obj-m += asos_kar.o
asos_kar-objs := kar_dispatcher.o ring_buffer.o intent_router.o
# Kernel build directory (adjust for your system)
KERNEL_DIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
# Build flags
ccflags-y := -Wall -Wextra -O2 -DDEBUG
all:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules
clean:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) clean
install:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules_install
depmod -a
# Load module
load:
sudo insmod asos_kar.ko
# Unload module
unload:
sudo rmmod asos_kar
# Reload (unload + load)
reload: unload load
# Show kernel logs
logs:
dmesg | tail -50 | grep -i "asos\|kar"
.PHONY: all clean install load unload reload logs