Files
nvdriver/tests/software-manager/codegen.mk
nvidia-driver-rs 4526e6a816 Baseline: validated 30/30 tree with passing Level 7 hardware regression
- Updated tools/post_reboot.sh to check kernel oops taint bit and stuck driver tasks instead of <86400s uptime
- Level 7 hardware regression passed on 0000:b3:00.0 (module 37e6fa430835eee2b426019db3ad70eeb7a9e9070c09c84bd9b973cf56cbe529, 107 inventory words, 0 static mismatches, CUDA baseline verified before and after)
- Updated .gitignore to exclude build archives (*.a, *.rlib), __pycache__, and raw trace dumps
2026-11-23 23:48:38 +00:00

14 lines
1.5 KiB
Makefile

ROOT := $(abspath .)
include $(ROOT)/utils.mk
TASK_OUT := $(ROOT)/target/software-manager/codegen
TASK_FLAGS := $(filter-out --crate-type=lib --emit=obj,$(RUST_KERNEL_FLAGS)) -C embed-bitcode=yes
.PHONY: all
all:
mkdir -p $(TASK_OUT)
$(RUSTC) $(TASK_FLAGS) --crate-name nv_rs_abi --crate-type=rlib src/common/abi/src/lib.rs -o $(TASK_OUT)/libnv_rs_abi.rlib
$(RUSTC) $(TASK_FLAGS) --crate-name nv_rs_core --crate-type=rlib src/nvidia/src/lib.rs --extern nv_rs_abi=$(TASK_OUT)/libnv_rs_abi.rlib -o $(TASK_OUT)/libnv_rs_core.rlib
$(RUSTC) $(TASK_FLAGS) --crate-type=staticlib -C lto=fat --crate-name software_manager_codegen tests/software-manager/codegen.rs --extern nv_rs_abi=$(TASK_OUT)/libnv_rs_abi.rlib --extern nv_rs_core=$(TASK_OUT)/libnv_rs_core.rlib -L dependency=$(TASK_OUT) -o $(TASK_OUT)/audit.a
ld -r --gc-sections --whole-archive $(TASK_OUT)/audit.a --no-whole-archive -u SM_INIT -u SM_SHUT -u SM_RANGE -u SM_KEY -u SM_WITH -o $(TASK_OUT)/audit.o
objcopy --remove-section=.llvmbc --remove-section=.llvmcmd --remove-section=.eh_frame --remove-section=.eh_frame_hdr --remove-section=.gcc_except_table $(TASK_OUT)/audit.o
python3 tools/check_native_codegen.py --object $(TASK_OUT)/audit.o --report reports/software-manager-production-codegen.json --entrypoint SM_INIT --entrypoint SM_SHUT --entrypoint SM_RANGE --entrypoint SM_KEY --entrypoint SM_WITH --scope 'Compile-only real manager initialize/shutdown/scoped closure/key/range roots, using exact utils.mk production flags. Never loaded/executed. Conservative individual frames, not whole call-chain proof.'