1 2# modules 3# 4# args: 5# MODULE : module name (required) 6# MODULE_SRCS : list of source files, local path (required) 7# MODULE_DEPS : other modules that this one depends on 8# MODULE_DEFINES : #defines local to this module 9# MODULE_OPTFLAGS : OPTFLAGS local to this module 10# MODULE_COMPILEFLAGS : COMPILEFLAGS local to this module 11# MODULE_CFLAGS : CFLAGS local to this module 12# MODULE_CPPFLAGS : CPPFLAGS local to this module 13# MODULE_ASMFLAGS : ASMFLAGS local to this module 14# MODULE_RUSTFLAGS : RUSTFLAGS local to this module 15# MODULE_RUSTDOCFLAGS : RUSTDOCFLAGS local to this module 16# MODULE_RUSTDOC_OBJECT : marker file to use as target when building Rust docs 17# MODULE_INCLUDES : include directories local to this module 18# MODULE_SRCDEPS : extra dependencies that all of this module's files depend on 19# MODULE_EXTRA_ARCHIVES : extra .a files that should be linked with the module 20# MODULE_EXTRA_OBJS : extra .o files that should be linked with the module 21# MODULE_DISABLE_LTO : disable LTO for this module 22# MODULE_DISABLE_CFI : disable CFI for this module 23# MODULE_DISABLE_STACK_PROTECTOR : disable stack protector for this module 24# MODULE_DISABLE_SCS : disable shadow call stack for this module 25# MODULE_SKIP_DOCS : skip generating docs for this module 26 27# MODULE_ARM_OVERRIDE_SRCS : list of source files, local path that should be force compiled with ARM (if applicable) 28 29# the minimum module rules.mk file is as follows: 30# 31# LOCAL_DIR := $(GET_LOCAL_DIR) 32# MODULE := $(LOCAL_DIR) 33# 34# MODULE_SRCS := $(LOCAL_DIR)/at_least_one_source_file.c 35# 36# include make/module.mk 37 38# if QUERY_MODULE is set, the rules.mk that included us was itself included not 39# to define a module's make targets but to query the variables it sets for the 40# rest of the build. in this case, skip all further processing 41ifeq ($(QUERY_MODULE),) 42 43# test for old style rules.mk 44ifneq ($(MODULE_OBJS),) 45$(warning MODULE_OBJS = $(MODULE_OBJS)) 46$(error MODULE $(MODULE) is setting MODULE_OBJS, change to MODULE_SRCS) 47endif 48ifneq ($(OBJS),) 49$(warning OBJS = $(OBJS)) 50$(error MODULE $(MODULE) is probably setting OBJS, change to MODULE_SRCS) 51endif 52 53ifeq ($(call TOBOOL,$(TRUSTY_NEW_MODULE_SYSTEM)),true) 54$(error MODULE $(MODULE) was included through the new module system and therefore must include library.mk or trusted_app.mk) 55endif 56 57MODULE_SRCDIR := $(MODULE) 58MODULE_BUILDDIR := $(call TOBUILDDIR,$(MODULE_SRCDIR)) 59 60# add a local include dir to the global include path 61GLOBAL_INCLUDES += $(MODULE_SRCDIR)/include 62 63$(foreach MOD,$(MODULE_DEPS), $(if $(call FIND_MODULE,$(MOD)),,$(error Module doesn't exist: $(MOD) (included from $(MODULE))))) 64 65# add the listed module deps to the global list 66MODULES += $(MODULE_DEPS) 67 68#$(info module $(MODULE)) 69#$(info MODULE_SRCDIR $(MODULE_SRCDIR)) 70#$(info MODULE_BUILDDIR $(MODULE_BUILDDIR)) 71#$(info MODULE_DEPS $(MODULE_DEPS)) 72#$(info MODULE_SRCS $(MODULE_SRCS)) 73 74# Turn spaces into underscores and escape quotes for the module_config.h header 75define clean_defines 76$(subst $(SPACE),_,$(subst \",\\\\\",$(subst $(BUILDROOT),__BUILDROOT__,$(1)))) 77endef 78 79MODULE_DEFINES += MODULE_COMPILEFLAGS=\"$(call clean_defines,$(MODULE_COMPILEFLAGS))\" 80MODULE_DEFINES += MODULE_CFLAGS=\"$(call clean_defines,$(MODULE_CFLAGS))\" 81MODULE_DEFINES += MODULE_CPPFLAGS=\"$(call clean_defines,$(MODULE_CPPFLAGS))\" 82MODULE_DEFINES += MODULE_ASMFLAGS=\"$(call clean_defines,$(MODULE_ASMFLAGS))\" 83MODULE_DEFINES += MODULE_RUSTFLAGS=\"$(call clean_defines,$(MODULE_RUSTFLAGS))\" 84MODULE_DEFINES += MODULE_RUSTDOCFLAGS=\"$(call clean_defines,$(MODULE_RUSTDOCFLAGS))\" 85MODULE_DEFINES += MODULE_RUST_ENV=\"$(call clean_defines,$(MODULE_RUST_ENV))\" 86MODULE_DEFINES += MODULE_LDFLAGS=\"$(call clean_defines,$(MODULE_LDFLAGS))\" 87MODULE_DEFINES += MODULE_OPTFLAGS=\"$(call clean_defines,$(MODULE_OPTFLAGS))\" 88MODULE_DEFINES += MODULE_INCLUDES=\"$(call clean_defines,$(MODULE_INCLUDES))\" 89MODULE_DEFINES += MODULE_SRCDEPS=\"$(call clean_defines,$(MODULE_SRCDEPS))\" 90MODULE_DEFINES += MODULE_DEPS=\"$(call clean_defines,$(MODULE_DEPS))\" 91MODULE_DEFINES += MODULE_SRCS=\"$(call clean_defines,$(MODULE_SRCS))\" 92 93# Handle common kernel module flags. Common userspace flags are found in 94# user/base/make/common_flags.mk 95ifneq (true,$(call TOBOOL,$(USER_TASK_MODULE))) 96 97# LTO 98ifneq (true,$(call TOBOOL,$(MODULE_DISABLE_LTO))) 99ifeq (true,$(call TOBOOL,$(KERNEL_LTO_ENABLED))) 100MODULE_COMPILEFLAGS += $(GLOBAL_LTO_COMPILEFLAGS) 101 102# CFI 103MODULE_CFI_ENABLED := false 104ifneq (true,$(call TOBOOL,$(MODULE_DISABLE_CFI))) 105ifeq (true,$(call TOBOOL,$(CFI_ENABLED))) 106MODULE_CFI_ENABLED := true 107endif 108 109ifdef KERNEL_CFI_ENABLED 110MODULE_CFI_ENABLED := $(call TOBOOL,$(KERNEL_CFI_ENABLED)) 111endif 112 113endif 114 115ifeq (true,$(call TOBOOL,$(MODULE_CFI_ENABLED))) 116MODULE_COMPILEFLAGS += \ 117 -fsanitize-blacklist=trusty/kernel/lib/ubsan/exemptlist \ 118 -fsanitize=cfi \ 119 -fsanitize-cfi-icall-experimental-normalize-integers \ 120 -DCFI_ENABLED 121 122ifeq (true,$(call TOBOOL,$(ARCH_$(ARCH)_SUPPORTS_RUST_CFI))) 123# CFI rust <-> C cfi 124MODULE_RUSTFLAGS += -Zsanitizer=cfi -Zsanitizer-cfi-normalize-integers 125endif 126 127MODULES += trusty/kernel/lib/ubsan 128 129ifeq (true,$(call TOBOOL,$(CFI_DIAGNOSTICS))) 130MODULE_COMPILEFLAGS += -fno-sanitize-trap=cfi 131endif 132endif 133 134endif 135endif 136 137# Branch Target Identification 138ifeq (true,$(call TOBOOL,$(KERNEL_BTI_ENABLED))) 139MODULE_COMPILEFLAGS += -DKERNEL_BTI_ENABLED \ 140 -DBTI_ENABLED 141endif 142 143# Pointer Authentication Codes 144ifeq (true,$(call TOBOOL,$(KERNEL_PAC_ENABLED))) 145ifeq (true,$(call TOBOOL,$(SCS_ENABLED))) 146# See https://github.com/llvm/llvm-project/issues/63457 147$(error Error: Kernel shadow call stack is not supported when Kernel PAC is enabled) 148endif 149 150MODULE_COMPILEFLAGS += -DKERNEL_PAC_ENABLED 151endif 152 153# Decide on the branch protection scheme 154ifeq (true,$(call TOBOOL,$(KERNEL_BTI_ENABLED))) 155ifeq (true,$(call TOBOOL,$(KERNEL_PAC_ENABLED))) 156MODULE_COMPILEFLAGS += -mbranch-protection=bti+pac-ret 157else 158MODULE_COMPILEFLAGS += -mbranch-protection=bti 159endif 160else # !KERNEL_BTI_ENABLED 161ifeq (true,$(call TOBOOL,$(KERNEL_PAC_ENABLED))) 162MODULE_COMPILEFLAGS += -mbranch-protection=pac-ret 163endif 164endif 165 166# Shadow call stack 167ifeq (true,$(call TOBOOL,$(SCS_ENABLED))) 168# set in arch/$(ARCH)/toolchain.mk iff shadow call stack is supported 169ifeq (false,$(call TOBOOL,$(ARCH_$(ARCH)_SUPPORTS_SCS))) 170$(error Error: Shadow call stack is not supported for $(ARCH)) 171endif 172 173ifeq (false,$(call TOBOOL,$(MODULE_DISABLE_SCS))) 174# architectures that support SCS should set the flag that reserves 175# a register for the shadow call stack in their toolchain.mk file 176MODULE_COMPILEFLAGS += \ 177 -fsanitize=shadow-call-stack \ 178 179endif 180endif 181 182endif 183 184# Initialize all automatic var to 0 if not initialized 185MODULE_COMPILEFLAGS += -ftrivial-auto-var-init=zero 186 187# Rebuild every module if the toolchain changes 188MODULE_SRCDEPS += $(TOOLCHAIN_CONFIG) 189 190MODULE_IS_RUST := $(if $(filter %.rs,$(MODULE_SRCS)),true,false) 191 192# generate a per-module config.h file 193ifeq ($(MODULE_IS_RUST),false) 194MODULE_CONFIG := $(MODULE_BUILDDIR)/module_config.h 195 196$(MODULE_CONFIG): MODULE_DEFINES:=$(MODULE_DEFINES) 197$(MODULE_CONFIG): MODULE:=$(MODULE) 198$(MODULE_CONFIG): configheader 199 @$(call INFO_DONE,$(MODULE),generating config header, $@) 200 @$(call MAKECONFIGHEADER,$@,MODULE_DEFINES) 201 202GENERATED += $(MODULE_CONFIG) 203 204MODULE_COMPILEFLAGS += --include=$(MODULE_CONFIG) 205 206MODULE_SRCDEPS += $(MODULE_CONFIG) 207 208MODULE_INCLUDES := $(addprefix -I,$(MODULE_INCLUDES)) 209endif 210 211# include the rules to compile the module's object files 212include make/compile.mk 213 214# MODULE_OBJS is passed back from compile.mk 215#$(info MODULE_OBJS = $(MODULE_OBJS)) 216 217ifeq ($(MODULE_IS_RUST),true) 218 219# ensure that proc-macro libraries are considered host libraries. userspace does 220# this in library.mk, but we also compile proc-macro crates for the kernel here 221ifeq ($(MODULE_RUST_CRATE_TYPES),proc-macro) 222MODULE_RUST_HOST_LIB := true 223endif 224 225MODULE_IS_KERNEL := 226# is module using old module system? (using module.mk directly) 227ifeq ($(TRUSTY_USERSPACE),) 228ifeq ($(call TOBOOL,$(MODULE_RUST_HOST_LIB)),false) 229MODULE_IS_KERNEL := true 230endif 231endif 232 233# is module being built as kernel code? 234ifeq ($(call TOBOOL,$(MODULE_IS_KERNEL)),true) 235 236# validate crate name 237ifeq ($(MODULE_CRATE_NAME),) 238$(error rust module $(MODULE) does not set MODULE_CRATE_NAME) 239endif 240 241# Generate Rust bindings with bindgen if requested 242ifneq ($(strip $(MODULE_BINDGEN_SRC_HEADER)),) 243include make/bindgen.mk 244endif 245 246# library and module deps are set mutually exclusively, so it's safe to simply 247# concatenate them to use whichever is set 248MODULE_ALL_DEPS := $(MODULE_LIBRARY_DEPS) $(MODULE_LIBRARY_EXPORTED_DEPS) $(MODULE_DEPS) 249 250ifeq ($(call TOBOOL,$(MODULE_ADD_IMPLICIT_DEPS)),true) 251 252# In userspace, MODULE_ADD_IMPLICIT_DEPS adds std. 253# In the kernel, it adds core, compiler_builtins and 254# lib/rust_support (except for external crates). 255MODULE_ALL_DEPS += \ 256 trusty/user/base/lib/libcore-rust/ \ 257 trusty/user/base/lib/libcompiler_builtins-rust/ \ 258 259# rust_support depends on some external crates. We cannot 260# add it as an implicit dependency to any of them because 261# that would create a circular dependency. External crates 262# are either under external/rust/crates or in the monorepo 263# external/rust/android-crates-io/crates. 264ifeq ($(filter external/rust/crates/%,$(MODULE)),) 265ifeq ($(filter external/rust/android-crates-io/crates/%,$(MODULE)),) 266MODULE_ALL_DEPS += $(LKROOT)/lib/rust_support 267endif 268endif 269 270endif 271 272define READ_CRATE_INFO 273QUERY_MODULE := $1 274QUERY_VARIABLES := MODULE_CRATE_NAME MODULE_RUST_STEM MODULE_RUST_CRATE_TYPES 275$$(eval include make/query.mk) 276 277# assign queried variables for later use 278MODULE_$(1)_CRATE_NAME := $$(QUERY_MODULE_CRATE_NAME) 279MODULE_$(1)_CRATE_STEM := $$(if $$(QUERY_MODULE_RUST_STEM),$$(QUERY_MODULE_RUST_STEM),$$(QUERY_MODULE_CRATE_NAME)) 280MODULE_$(1)_RUST_CRATE_TYPES := $$(if $$(QUERY_MODULE_RUST_CRATE_TYPES),$$(QUERY_MODULE_RUST_CRATE_TYPES),rlib) 281endef 282 283# ensure that MODULE_..._CRATE_NAME, _CRATE_STEM, and _RUST_CRATE_TYPES are populated 284$(foreach rust_dep,$(MODULE_ALL_DEPS),$(eval $(call READ_CRATE_INFO,$(rust_dep)))) 285 286MODULE_RUST_DEPS := $(foreach dep, $(MODULE_ALL_DEPS), $(if $(MODULE_$(dep)_CRATE_NAME),$(dep),)) 287 288# split deps into proc-macro and non- because the former are built for the host 289KERNEL_RUST_DEPS := $(foreach dep, $(MODULE_RUST_DEPS), $(if $(filter proc-macro,$(MODULE_$(dep)_RUST_CRATE_TYPES)),,$(dep))) 290 291HOST_RUST_DEPS := $(foreach dep, $(MODULE_RUST_DEPS), $(if $(filter proc-macro,$(MODULE_$(dep)_RUST_CRATE_TYPES)),$(dep),)) 292 293# add kernel rust deps to the set of modules 294MODULES += $(KERNEL_RUST_DEPS) 295HOST_MODULES += $(HOST_RUST_DEPS) 296 297# determine crate names of dependency modules so we can depend on their rlibs. 298# because of ordering, we cannot simply e.g. set/read MODULE_$(dep)_CRATE_NAME, 299# so we must manually read the variable value from the Makefile 300DEP_CRATE_NAMES := $(foreach dep, $(KERNEL_RUST_DEPS), $(MODULE_$(dep)_CRATE_NAME)) 301DEP_CRATE_STEMS := $(foreach dep, $(KERNEL_RUST_DEPS), $(MODULE_$(dep)_CRATE_STEM)) 302 303# compute paths of host (proc-macro) dependencies 304HOST_DEP_CRATE_NAMES := $(foreach dep, $(HOST_RUST_DEPS), $(MODULE_$(dep)_CRATE_NAME)) 305HOST_DEP_CRATE_STEMS := $(foreach dep, $(HOST_RUST_DEPS), $(MODULE_$(dep)_CRATE_STEM)) 306MODULE_KERNEL_RUST_HOST_LIBS := $(foreach stem, $(HOST_DEP_CRATE_STEMS), $(TRUSTY_HOST_LIBRARY_BUILDDIR)/lib$(stem).so) 307gen_host_rlib_assignment = $(1)=$(TRUSTY_HOST_LIBRARY_BUILDDIR)/lib$(2).so 308MODULE_RLIBS += $(call pairmap,gen_host_rlib_assignment,$(HOST_DEP_CRATE_NAMES),$(HOST_DEP_CRATE_STEMS)) 309 310# Stem defaults to the crate name 311ifeq ($(MODULE_RUST_STEM),) 312MODULE_RUST_STEM := $(MODULE_CRATE_NAME) 313endif 314 315# save dep crate names so we can topologically sort them for top-level rust build 316MODULE_$(MODULE_RUST_STEM)_CRATE_DEPS := $(DEP_CRATE_STEMS) 317ALL_KERNEL_HOST_CRATE_NAMES := $(ALL_KERNEL_HOST_CRATE_NAMES) $(HOST_DEP_CRATE_NAMES) 318ALL_KERNEL_HOST_CRATE_STEMS := $(ALL_KERNEL_HOST_CRATE_STEMS) $(HOST_DEP_CRATE_STEMS) 319 320# save all --cfg RUSTFLAGS so they can be included in rust-project.json 321MODULE_$(MODULE_RUST_STEM)_CRATE_CFG := $(patsubst --cfg=%,%,$(filter --cfg=%,$(subst --cfg ,--cfg=,$(GLOBAL_RUSTFLAGS) $(ARCH_RUSTFLAGS) $(MODULE_RUSTFLAGS)))) 322 323# change BUILDDIR so RSOBJS for kernel are distinct targets from userspace ones 324OLD_BUILDDIR := $(BUILDDIR) 325BUILDDIR := $(TRUSTY_KERNEL_LIBRARY_BUILDDIR) 326 327# compute paths of dependencies 328MODULE_KERNEL_RUST_LIBS := $(foreach dep, $(DEP_CRATE_STEMS), $(call TOBUILDDIR,lib$(dep).rlib)) 329gen_rlib_assignment = $(1)=$(call TOBUILDDIR,lib$(2).rlib) 330MODULE_RLIBS += $(call pairmap,gen_rlib_assignment,$(DEP_CRATE_NAMES),$(DEP_CRATE_STEMS)) 331 332# include rust lib deps in lib deps 333MODULE_LIBRARIES += $(MODULE_KERNEL_RUST_LIBS) $(MODULE_KERNEL_RUST_HOST_LIBS) 334 335# determine MODULE_RSOBJS and MODULE_RUST_CRATE_TYPES for rust kernel modules 336include make/rust.mk 337 338# save extra information for constructing kernel rust-project.json in rust-toplevel.mk 339MODULE_$(MODULE_RUST_STEM)_RUST_SRC := $(filter %.rs,$(MODULE_SRCS)) 340MODULE_$(MODULE_RUST_STEM)_RUST_EDITION := $(MODULE_RUST_EDITION) 341 342# only allow rlibs because we build rlibs, then link them all into one .a 343ifneq ($(MODULE_RUST_CRATE_TYPES),rlib) 344$(error rust crates for the kernel must be built as rlibs only, but $(MODULE) builds $(MODULE_RUST_CRATE_TYPES)) 345endif 346 347# accumulate list of all crates we built (for linking, so skip proc-macro crates) 348ALLMODULE_CRATE_STEMS := $(MODULE_RUST_STEM) $(ALLMODULE_CRATE_STEMS) 349 350# reset BUILDDIR 351BUILDDIR := $(OLD_BUILDDIR) 352 353else # userspace rust 354 355MODULE_OBJECT := $(MODULE_RSOBJS) 356 357# make the rest of the build depend on our output 358ALLMODULE_OBJS := $(MODULE_INIT_OBJS) $(ALLMODULE_OBJS) $(MODULE_OBJECT) $(MODULE_EXTRA_ARCHIVES) 359 360endif # kernel/userspace rust 361 362# Build Rust sources 363$(addsuffix .d,$(MODULE_RSOBJS)): 364 365MODULE_RSSRC := $(filter %.rs,$(MODULE_SRCS)) 366$(MODULE_RSOBJS): MODULE := $(MODULE) 367$(MODULE_RSOBJS): $(MODULE_RSSRC) $(MODULE_SRCDEPS) $(MODULE_EXTRA_OBJECTS) $(MODULE_LIBRARIES) $(addsuffix .d,$(MODULE_RSOBJS)) 368 @$(MKDIR) 369 @$(call ECHO,$(MODULE),compiling rust module,$<) 370ifeq ($(call TOBOOL,$(MODULE_RUST_USE_CLIPPY)),true) 371 +$(NOECHO) set -e ; \ 372 TEMP_CLIPPY_DIR=$$(mktemp -d) ;\ 373 mkdir -p $(dir $$TEMP_CLIPPY_DIR/$@) ;\ 374 $(MODULE_RUST_ENV) $(CLIPPY_DRIVER) $(GLOBAL_RUSTFLAGS) $(ARCH_RUSTFLAGS) $(MODULE_RUSTFLAGS) $< -o $$TEMP_CLIPPY_DIR/$@ ;\ 375 rm -rf $$TEMP_CLIPPY_DIR 376endif 377 +$(NOECHO)$(MODULE_RUST_ENV) $(RUSTC) $(GLOBAL_RUSTFLAGS) $(ARCH_RUSTFLAGS) $(MODULE_RUSTFLAGS) $< --emit "[email protected]" -o $@ 378 @$(call ECHO_DONE_SILENT,$(MODULE),compiling rust module,$<) 379 380ifneq ($(call TOBOOL,$(MODULE_SKIP_DOCS)),true) 381 382# Pass rustdoc the same flags as rustc such that the generated documentation 383# matches the code that gets compiled and run. Note: $(GLOBAL_RUSTFLAGS) adds 384# $(TRUSTY_HOST_LIBRARY_BUILDDIR) to the library search path. This is necessary 385# to pick up dependencies that are proc macros and thus built in the host dir. 386$(MODULE_RUSTDOC_OBJECT): $(MODULE_RSSRC) | $(MODULE_RSOBJS) 387 @$(MKDIR) 388 @$(call ECHO,rustdoc,generating documentation,for $(MODULE_CRATE_NAME)) 389 +$(NOECHO)$(MODULE_RUST_ENV) $(RUSTDOC) $(GLOBAL_RUSTFLAGS) $(ARCH_RUSTFLAGS) $(MODULE_RUSTFLAGS_PRELINK) $(MODULE_RUSTDOCFLAGS) -L $(TRUSTY_LIBRARY_BUILDDIR) --out-dir $(MODULE_RUSTDOC_OUT_DIR) $< 390 @touch $@ 391 @$(call ECHO_DONE_SILENT,rustdoc,generating documentation,for $(MODULE_CRATE_NAME)) 392 393EXTRA_BUILDDEPS += $(MODULE_RUSTDOC_OBJECT) 394 395endif 396 397-include $(addsuffix .d,$(MODULE_RSOBJS)) 398 399# track the module rlib for make clean 400GENERATED += $(MODULE_RSOBJS) 401 402 403else # not rust 404# Archive the module's object files into a static library. 405MODULE_OBJECT := $(call TOBUILDDIR,$(MODULE_SRCDIR).mod.a) 406$(MODULE_OBJECT): MODULE := $(MODULE) 407$(MODULE_OBJECT): $(MODULE_OBJS) $(MODULE_EXTRA_OBJS) 408 @$(MKDIR) 409 @$(call ECHO,$(MODULE),creating,$@) 410 $(NOECHO)rm -f $@ 411 $(NOECHO)$(AR) rcs $@ $^ 412 @$(call ECHO_DONE_SILENT,$(MODULE),creating,$@) 413 414# track the module object for make clean 415GENERATED += $(MODULE_OBJECT) 416 417# make the rest of the build depend on our output 418ALLMODULE_OBJS := $(MODULE_INIT_OBJS) $(ALLMODULE_OBJS) $(MODULE_OBJECT) $(MODULE_EXTRA_ARCHIVES) 419 420endif # rust or not 421 422# track all of the source files compiled 423ALLSRCS += $(MODULE_SRCS_FIRST) $(MODULE_SRCS) 424 425# track all the objects built 426ALLOBJS += $(MODULE_INIT_OBJS) $(MODULE_OBJS) 427 428# empty out any vars set here 429MODULE := 430MODULE_SRCDIR := 431MODULE_BUILDDIR := 432MODULE_DEPS := 433MODULE_SRCS := 434MODULE_OBJS := 435MODULE_DEFINES := 436MODULE_OPTFLAGS := 437MODULE_COMPILEFLAGS := 438MODULE_CFLAGS := 439MODULE_CPPFLAGS := 440MODULE_ASMFLAGS := 441MODULE_RUSTFLAGS := 442MODULE_RUSTDOCFLAGS := 443MODULE_SRCDEPS := 444MODULE_INCLUDES := 445MODULE_EXTRA_ARCHIVES := 446MODULE_EXTRA_OBJS := 447MODULE_CONFIG := 448MODULE_OBJECT := 449MODULE_ARM_OVERRIDE_SRCS := 450MODULE_SRCS_FIRST := 451MODULE_INIT_OBJS := 452MODULE_DISABLE_LTO := 453MODULE_LTO_ENABLED := 454MODULE_DISABLE_CFI := 455MODULE_DISABLE_STACK_PROTECTOR := 456MODULE_DISABLE_SCS := 457MODULE_RSSRC := 458MODULE_IS_RUST := 459MODULE_RUST_USE_CLIPPY := 460MODULE_RSOBJS := 461MODULE_RUST_EDITION := 462MODULE_RUSTDOC_OBJECT := 463MODULE_RUSTDOCFLAGS := 464MODULE_ALL_DEPS := 465MODULE_RUST_DEPS := 466MODULE_RUST_STEM := 467MODULE_SKIP_DOCS := 468MODULE_ADD_IMPLICIT_DEPS := true 469 470endif # QUERY_MODULE (this line should stay after all other processing) 471