- UTSM panic_full returns in fallback mode (logs [PANIC:FALLBACK] + code + hit count); panic_halt keeps always-halt sites (CPU exception, VMM-E11 LA57, VMM-E15 DSK jump, UTSM-E42 test hook). Call sites given safe continuations. - Mode passed to DSK/FirstInit/login/desktop via DSK_BOOT_FLAG_PANIC_FALLBACK; DKM kernel_api.panic / kern.log.panic return to driver; ext4 fatal aborts the op via setjmp/longjmp and DSK falls back to FAT32 ESP. - build.ps1/Makefile: dev=strict, release=fallback, new realtest (release options + strict); default -Variant all; serialized iso packing under -j. - Fix '*/' inside comments (dkm.h, kernel_api.h, bus.c) that broke the build. - Includes pending work: dkm_bus service bus, mt7920/wlan drivers, desktop files/startmenu/prank, pe-tools, diskinfo, docs. Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
739 B
Makefile
26 lines
739 B
Makefile
CC ?= clang
|
|
LD ?= ld.lld
|
|
|
|
ROOT := ../../..
|
|
OUT := $(ROOT)/SYSTEM/bin/diskinfo.elf
|
|
|
|
CFLAGS := -target x86_64-unknown-none -std=c11 -ffreestanding -fno-builtin -fno-stack-protector -fpie -mno-red-zone -mno-sse -mno-sse2 -mno-mmx -msoft-float -m64 -Wall -Wextra -I../../sdk/include -I../.. -O2
|
|
LDFLAGS := -nostdlib -static -pie -z max-page-size=0x1000 -T linker.ld
|
|
|
|
C_SOURCES := main.c
|
|
OBJECTS := $(C_SOURCES:.c=.o)
|
|
|
|
.PHONY: all clean
|
|
|
|
all: $(OUT)
|
|
|
|
$(OUT): $(OBJECTS) linker.ld
|
|
@mkdir -p "$(dir $(OUT))"
|
|
$(LD) $(LDFLAGS) -o $@ $(OBJECTS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
powershell -NoProfile -Command "Get-ChildItem -Path . -Recurse -Filter *.o | Remove-Item -Force; if (Test-Path '$(OUT)') { Remove-Item '$(OUT)' -Force }"
|