This merges the android16-6.12 branch into the -lts branch, catching it up with the latest changes in there. It contains the following commits: *eb58d7821aANDROID: Delete unused protected_exports file *97f4744468ANDROID: Remove list of protected modules & exports *4446f7e727Revert "ANDROID: Add IFTTT analyzer markers for GKI modules" *2737d550a6ANDROID: Add ufs headers to aarch64 allowlist *d3ea4f08e5ANDROID: KVM: arm64: allow nvhe/trace.h for in-tree/DDK pKVM modules *67160594b2ANDROID: KVM: arm64: Move pKVM module for headers to its own dir. *7a2f90ea8aANDROID: Create list of protected module names *a3fde76f1eANDROID: enforce symbol import protection *9593e47f47ANDROID: compile / link / clean permitted-imports.o *19ee9bcceaANDROID: modpost: generate permitted imports *cf33526ab7ANDROID: enforce symbol export protection *a16ea85f69ANDROID: enable protected-exports.c generation in modpost *c909fab8b3ANDROID: compile / link / clean protected-exports.o *48559833d1ANDROID: modpost: generate protected exports *54bfd8db38ANDROID: add MODULE_SIG_PROTECT and MODULE_SIG_PROTECT_LIST options *255e2003eeRevert "ANDROID: GKI: Add script to generate symbol protection headers" *e6f5a053f2ANDROID: remove CONFIG_MODULE_SIG_PROTECT from GKI defconfig *39ef94bb72ANDROID: GKI: Add symbols to vivo symbol list *ec4e325796ANDROID: GKI: Update symbol list for Amlogic *b93d53f5ddANDROID: Fix CMA pages placement in correct pcp_list *ae38a8a0e4ANDROID: abi_gki_aarch64_qcom: Add hibernation APIs *0034411d55ANDROID: MEMORY: mm/page_alloc.c the pointer is not initialized *650df1f653ANDROID: GKI: Update the ABI symbol list for qcom *c2416bd002ANDROID: GKI: Add RTK TV KMI symbol list *6cb6c8c42eANDROID: mm/memory_hotplug: implement {add/remove}_memory_subsection *3654b006f0ANDROID: GKI: Export memblock_free to drivers Change-Id: Idbc1a28837026abebe8083d06d9e12a93cc853fb Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
85 lines
2.2 KiB
Makefile
85 lines
2.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
PHONY := __default
|
|
__default: vmlinux
|
|
|
|
include include/config/auto.conf
|
|
include $(srctree)/scripts/Kbuild.include
|
|
|
|
# for c_flags
|
|
include $(srctree)/scripts/Makefile.lib
|
|
|
|
targets :=
|
|
|
|
quiet_cmd_cc_o_c = CC $@
|
|
cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<
|
|
|
|
%.o: %.c FORCE
|
|
$(call if_changed_dep,cc_o_c)
|
|
|
|
ifdef CONFIG_MODULES
|
|
targets += .vmlinux.export.o
|
|
vmlinux: .vmlinux.export.o
|
|
|
|
ifdef CONFIG_MODULE_SIG_PROTECT
|
|
targets += .vmlinux.protected-exports.o
|
|
vmlinux: .vmlinux.protected-exports.o
|
|
endif
|
|
|
|
ifdef CONFIG_TRIM_UNUSED_KSYMS
|
|
targets += .vmlinux.permitted-imports.o
|
|
vmlinux: .vmlinux.permitted-imports.o
|
|
endif
|
|
|
|
endif
|
|
|
|
ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(SRCARCH)/Makefile.postlink)
|
|
|
|
# Final link of vmlinux with optional arch pass after final link
|
|
cmd_link_vmlinux = \
|
|
$< "$(LD)" "$(KBUILD_LDFLAGS)" "$(LDFLAGS_vmlinux)"; \
|
|
$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true)
|
|
|
|
targets += vmlinux
|
|
vmlinux: scripts/link-vmlinux.sh vmlinux.o $(KBUILD_LDS) FORCE
|
|
+$(call if_changed_dep,link_vmlinux)
|
|
|
|
ifdef CONFIG_BUILDTIME_TABLE_SORT
|
|
vmlinux: scripts/sorttable
|
|
endif
|
|
|
|
# module.builtin.ranges
|
|
# ---------------------------------------------------------------------------
|
|
ifdef CONFIG_BUILTIN_MODULE_RANGES
|
|
__default: modules.builtin.ranges
|
|
|
|
quiet_cmd_modules_builtin_ranges = GEN $@
|
|
cmd_modules_builtin_ranges = gawk -f $(real-prereqs) > $@
|
|
|
|
targets += modules.builtin.ranges
|
|
modules.builtin.ranges: $(srctree)/scripts/generate_builtin_ranges.awk \
|
|
modules.builtin vmlinux.map vmlinux.o.map FORCE
|
|
$(call if_changed,modules_builtin_ranges)
|
|
|
|
vmlinux.map: vmlinux
|
|
@:
|
|
|
|
endif
|
|
|
|
# Add FORCE to the prerequisites of a target to force it to be always rebuilt.
|
|
# ---------------------------------------------------------------------------
|
|
|
|
PHONY += FORCE
|
|
FORCE:
|
|
|
|
# Read all saved command lines and dependencies for the $(targets) we
|
|
# may be building above, using $(if_changed{,_dep}). As an
|
|
# optimization, we don't need to read them if the target does not
|
|
# exist, we will rebuild anyway in that case.
|
|
|
|
existing-targets := $(wildcard $(sort $(targets)))
|
|
|
|
-include $(foreach f,$(existing-targets),$(dir $(f)).$(notdir $(f)).cmd)
|
|
|
|
.PHONY: $(PHONY)
|