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.'