Files
ack-tegra/scripts/Makefile.vmlinux
Greg Kroah-Hartman 26bd1ac1ad Merge android16-6.12 into android16-6.12-lts
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:

* eb58d7821a ANDROID: Delete unused protected_exports file
* 97f4744468 ANDROID: Remove list of protected modules & exports
* 4446f7e727 Revert "ANDROID: Add IFTTT analyzer markers for GKI modules"
* 2737d550a6 ANDROID: Add ufs headers to aarch64 allowlist
* d3ea4f08e5 ANDROID: KVM: arm64: allow nvhe/trace.h for in-tree/DDK pKVM modules
* 67160594b2 ANDROID: KVM: arm64: Move pKVM module for headers to its own dir.
* 7a2f90ea8a ANDROID: Create list of protected module names
* a3fde76f1e ANDROID: enforce symbol import protection
* 9593e47f47 ANDROID: compile / link / clean permitted-imports.o
* 19ee9bccea ANDROID: modpost: generate permitted imports
* cf33526ab7 ANDROID: enforce symbol export protection
* a16ea85f69 ANDROID: enable protected-exports.c generation in modpost
* c909fab8b3 ANDROID: compile / link / clean protected-exports.o
* 48559833d1 ANDROID: modpost: generate protected exports
* 54bfd8db38 ANDROID: add MODULE_SIG_PROTECT and MODULE_SIG_PROTECT_LIST options
* 255e2003ee Revert "ANDROID: GKI: Add script to generate symbol protection headers"
* e6f5a053f2 ANDROID: remove CONFIG_MODULE_SIG_PROTECT from GKI defconfig
* 39ef94bb72 ANDROID: GKI: Add symbols to vivo symbol list
* ec4e325796 ANDROID: GKI: Update symbol list for Amlogic
* b93d53f5dd ANDROID: Fix CMA pages placement in correct pcp_list
* ae38a8a0e4 ANDROID: abi_gki_aarch64_qcom: Add hibernation APIs
* 0034411d55 ANDROID: MEMORY: mm/page_alloc.c the pointer is not initialized
* 650df1f653 ANDROID: GKI: Update the ABI symbol list for qcom
* c2416bd002 ANDROID: GKI: Add RTK TV KMI symbol list
* 6cb6c8c42e ANDROID: mm/memory_hotplug: implement {add/remove}_memory_subsection
* 3654b006f0 ANDROID: GKI: Export memblock_free to drivers

Change-Id: Idbc1a28837026abebe8083d06d9e12a93cc853fb
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2025-05-30 13:37:58 +00:00

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)