Lines Matching +full:project +full:- +full:level

7 	rm -rf -- "$(BUILDROOT)"/build-*
14 -include local.mk
18 # matching project/goal.mk, then we should re-invoke make with
19 # that project name specified...
21 project-name := $(firstword $(MAKECMDGOALS))
23 ifneq ($(project-name),)
24 ifneq ($(strip $(foreach d,$(LKINC),$(wildcard $(d)/project/$(project-name).mk))),)
25 do-nothing := 1
26 $(MAKECMDGOALS) _all: make-make
28 make-make:
29 …@PROJECT=$(project-name) $(MAKE) -rR -f $(LOCAL_MAKEFILE) $(filter-out $(project-name), $(MAKECMDG…
31 .PHONY: make-make
38 ifeq ($(do-nothing),)
40 ifeq ($(PROJECT),)
43 PROJECT := $(DEFAULT_PROJECT)
45 $(error No project specified. Use 'make list' for a list of projects or 'make help' for additional …
54 # when LOG_LEVEL_KERNEL = 1, dprintf INFO level is enabled
55 # when LOG_LEVEL_KERNEL = 2, dprintf SPEW level is enabled
59 # when LOG_LEVEL_KERNEL_RUST = 0, Rust max log level is LevelFilter::Off
60 # when LOG_LEVEL_KERNEL_RUST = 1, Rust max log level is LevelFilter::Error
61 # when LOG_LEVEL_KERNEL_RUST = 2, Rust max log level is LogLevel::Warning
62 # when LOG_LEVEL_KERNEL_RUST = 3, Rust max log level is LogLevel::Info
63 # when LOG_LEVEL_KERNEL_RUST = 4, Rust max log level is LogLevel::Debug
64 # when LOG_LEVEL_KERNEL_RUST = 5 or greater, the max log level is LogLevel::Trace
72 BUILDDIR := $(BUILDROOT)/build-$(PROJECT)
81 GLOBAL_KERNEL_COMPILEFLAGS += --sysroot=fake_sysroot
90 GLOBAL_SHARED_COMPILEFLAGS := -glldb -fdebug-macro -include $(CONFIGHEADER)
91 GLOBAL_SHARED_COMPILEFLAGS += -Werror -Wall -Wsign-compare -Wno-multichar -Wno-unused-function -Wno
92 GLOBAL_SHARED_COMPILEFLAGS += -fno-short-enums -fno-common
93 GLOBAL_SHARED_COMPILEFLAGS += -fno-omit-frame-pointer
94 GLOBAL_SHARED_CFLAGS := --std=c17 -Wstrict-prototypes -Wwrite-strings
95 GLOBAL_SHARED_CPPFLAGS := --std=c++20 -fno-exceptions -fno-rtti -fno-threadsafe-statics
97 GLOBAL_SHARED_CPPFLAGS += -Wno-c99-designator
98 #GLOBAL_CPPFLAGS += -Weffc++
99 GLOBAL_SHARED_ASMFLAGS := -DASSEMBLY
103 GLOBAL_KERNEL_RUSTFLAGS := -L dependency=$(TRUSTY_HOST_LIBRARY_BUILDDIR) -L dependency=$(TRUSTY_KER…
105 # This function is referenced by the linker-generated exidx tables, but seems to
107 GLOBAL_SHARED_LDFLAGS += --undefined=__aeabi_unwind_cpp_pr0
109 GLOBAL_KERNEL_LDFLAGS += $(addprefix -L,$(LKINC))
112 -fvisibility=hidden \
113 -flto=full \
114 -fvirtual-function-elimination \
115 -fvisibility-inlines-hidden \
118 GLOBAL_HOST_RUSTFLAGS := -L "$(RUST_HOST_LIBDIR)" -L dependency=$(TRUSTY_HOST_LIBRARY_BUILDDIR)
121 GLOBAL_SHARED_RUSTFLAGS := -C codegen-units=1 -C debuginfo=2 -C opt-level=3 -C relocation-model=pic
122 GLOBAL_SHARED_RUSTFLAGS += -C overflow-checks=on
124 GLOBAL_SHARED_RUSTFLAGS += -C symbol-mangling-version=v0
125 GLOBAL_SHARED_RUSTFLAGS += -C panic=abort -Z link-native-libraries=no
126 GLOBAL_SHARED_RUSTFLAGS += -Z panic_abort_tests
127 GLOBAL_SHARED_RUSTFLAGS += --deny warnings
135 # top level rule
147 # a linker script needs to be declared in one of the project/target/platform files
160 # these need to be filled out by the project/target/platform rules.mk files
191 GLOBAL_SHARED_COMPILEFLAGS += -Wimplicit-fallthrough
193 GLOBAL_SHARED_COMPILEFLAGS += -Wvla
198 # try to include the project file
199 -include project/$(PROJECT).mk
201 $(error couldn't find project or project doesn't define target)
211 GLOBAL_SHARED_COMPILEFLAGS += -ffunction-sections -fdata-sections
212 GLOBAL_SHARED_LDFLAGS += --gc-sections
218 GLOBAL_KERNEL_COMPILEFLAGS += -finline
220 GLOBAL_KERNEL_COMPILEFLAGS += -fno-inline-functions
226 GLOBAL_KERNEL_LDFLAGS += --whole-archive
231 GLOBAL_SHARED_COMPILEFLAGS += -U__linux__
241 GLOBAL_USER_RUSTFLAGS += -C lto=thin
242 GLOBAL_KERNEL_RUSTFLAGS += -C linker-plugin-lto -Zsplit-lto-unit
244 GLOBAL_SHARED_RUSTFLAGS += -C lto=thin
249 # MODULE_RUSTFLAGS there since the lk-crates.a wrapper obj, which does not
253 GLOBAL_KERNEL_RUSTFLAGS += -Z branch-protection=bti,pac-ret
255 GLOBAL_KERNEL_RUSTFLAGS += -Z branch-protection=bti
259 GLOBAL_KERNEL_RUSTFLAGS += -Z branch-protection=pac-ret
264 $(error Setting GLOBAL_COMPILEFLAGS directly from project or platform makefiles is no longer suppor…
267 $(error Setting GLOBAL_CFLAGS directly from project or platform makefiles is no longer supported. P…
270 $(error Setting GLOBAL_CPPFLAGS directly from project or platform makefiles is no longer supported.…
273 $(error Setting GLOBAL_ASMFLAGS directly from project or platform makefiles is no longer supported.…
276 $(error Setting GLOBAL_LDFLAGS directly from project or platform makefiles is no longer supported. …
286 $(call INFO_LOG,Project entry)
287 $(info PROJECT = $(PROJECT))
294 # Set arch-specific flags for shadow call stack?
307 PROJECT_$(PROJECT)=1 \
308 PROJECT=\"$(PROJECT)\" \
325 --cfg='PLAT_$(call normalize-rust-cfg,$(PLATFORM))' \
326 --cfg='TARGET_$(call normalize-rust-cfg,$(TARGET))'
330 GLOBAL_SHARED_RUSTFLAGS += --cfg='TEST_BUILD'
387 GLOBAL_COMPILEFLAGS += -fPIE -fvisibility=hidden
388 GLOBAL_LDFLAGS += -pie --no-dynamic-linker -z text -Bsymbolic
390 GLOBAL_LDFLAGS += --pack-dyn-relocs=relr
395 # Passing --use-android-relr-tags tells lld to use DT_ANDROID_RELR.
396 GLOBAL_LDFLAGS += --use-android-relr-tags
399 # KERNEL_BASE_ASLR controls run-time randomization for the
402 # and should be enabled manually per project because it has
409 # * Platforms should not use any hard-coded virtual addresses.
421 # prefix all of the paths in GLOBAL_INCLUDES with -I
422 GLOBAL_INCLUDES := $(addprefix -I,$(GLOBAL_INCLUDES))
438 AR := $(CLANG_BINDIR)/llvm-ar
440 OBJDUMP := $(CLANG_BINDIR)/llvm-objdump
441 OBJCOPY := $(CLANG_BINDIR)/llvm-objcopy
442 CPPFILT := $(CLANG_BINDIR)/llvm-cxxfilt
443 SIZE := $(CLANG_BINDIR)/llvm-size
444 NM := $(CLANG_BINDIR)/llvm-nm
445 STRIP := $(CLANG_BINDIR)/llvm-strip
447 CLIPPY_DRIVER := $(RUST_BINDIR)/clippy-driver
460 GLOBAL_HOST_RUST_LINK_ARGS := -B $(CLANG_BINDIR) -B $(CLANG_HOST_SEARCHDIR) \
461 $(addprefix -L ,$(CLANG_HOST_LDDIRS)) --sysroot $(CLANG_HOST_SYSROOT) -fuse-ld=lld
462 GLOBAL_HOST_RUSTFLAGS += -C linker="$(CLANG_BINDIR)/clang++" -C link-args="$(GLOBAL_HOST_RUST_LINK_…
463 GLOBAL_SHARED_RUSTFLAGS += -C linker="$(LD)"
466 …GLOBAL_COMPILEFLAGS) $(ARCH_COMPILEFLAGS) $(THUMBCFLAGS) --rtlib=compiler-rt -print-libgcc-file-na…
467 # However the compiler currently does not contain non-x86 prebuilts for the
468 # linux-gnu ABI. We could either get those prebuilts added to the toolchain or
470 # Note there are two copies of compiler-rt in the toolchain - framework and NDK.
474 LIBGCC := $(CLANG_BINDIR)/../runtimes_ndk_cxx/libclang_rt.builtins-$(STANDARD_ARCH_NAME)-android.a
479 # link all rust rlibs into a single top-level .a
480 include make/rust-toplevel.mk
524 # any extra top level build dependencies that someone declared.
529 …rm -f $(ALLOBJS) $(DEPS) $(GENERATED) $(OUTBIN) $(OUTELF) $(OUTELF).sym $(OUTELF).sym.sorted $(OUT…
546 -include $(DEPS)