mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 01:24:12 +08:00
8afc66e8d4
- Remove potentially incomplete targets when Kbuid is interrupted by SIGINT etc. in case GNU Make may miss to do that when stderr is piped to another program. - Rewrite the single target build so it works more correctly. - Fix rpm-pkg builds with V=1. - List top-level subdirectories in ./Kbuild. - Ignore auto-generated __kstrtab_* and __kstrtabns_* symbols in kallsyms. - Avoid two different modules in lib/zstd/ having shared code, which potentially causes building the common code as build-in and modular back-and-forth. - Unify two modpost invocations to optimize the build process. - Remove head-y syntax in favor of linker scripts for placing particular sections in the head of vmlinux. - Bump the minimal GNU Make version to 3.82. - Clean up misc Makefiles and scripts. -----BEGIN PGP SIGNATURE----- iQJJBAABCgAzFiEEbmPs18K1szRHjPqEPYsBB53g2wYFAmM+4vcVHG1hc2FoaXJv eUBrZXJuZWwub3JnAAoJED2LAQed4NsGY2IQAInr0JUNnkkxwUSXtOcQuA3IK8RJ FbU9HXJRoV9H+7+l3SMlN7mIbrs5eE5fTY3iwQ3CVe139d1+1q7nvTMRv8owywJx GBgzswncuu1lk7iQQ//CxiqMwSCG8GJdYn1uDVy4I5jg3o+DtFZJtyq2Wb7pqsMm ZhZ4PozRN+idYQJSF6Vx/zEVLHI7quMBwfe4CME8/0Kg2+hnYzbXV/aUf0ED2emq zdCMDQgIOK5AhY+8qgMXKYnBUJMTqBp6LoR4p3ApfUkwRFY0sGa0/LK3U/B22OE7 uWyR4fCUExGyerlcHEVev+9eBfmsLLPyqlchNwpSDOPf5OSdnKmgqJEBR/Cvx0eh URerPk7EHxyH3G8yi+cU2GtofNTGc5RHPRgJE2ADsQEi5TAUKGmbXMlsFRL/51Vn lTANZObBNa1d4enljF6TfTL5nuccOa+DKvXnH9fQ49t0QdtSikv6J/lGwilwm1Sr BctmCsySPuURZfkpI9OQnLuouloMXl9f7Q/+S39haS/tSgvPpyITyO71nxDnXn/s BbFObZJUk9QkqOACjBP1hNErTLt83uBxQ9z+rDCw/SbLIe4nw0wyneuygfHI5rI8 3RZB2DbGauuJHX2Zs6YGS14SLSY33IsLqKR1/Vy3LrPvOHuEvNiOR8LITq5E0YCK OffK2Y5cIlXR0QWf =DHiN -----END PGP SIGNATURE----- Merge tag 'kbuild-v6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild Pull Kbuild updates from Masahiro Yamada: - Remove potentially incomplete targets when Kbuid is interrupted by SIGINT etc in case GNU Make may miss to do that when stderr is piped to another program. - Rewrite the single target build so it works more correctly. - Fix rpm-pkg builds with V=1. - List top-level subdirectories in ./Kbuild. - Ignore auto-generated __kstrtab_* and __kstrtabns_* symbols in kallsyms. - Avoid two different modules in lib/zstd/ having shared code, which potentially causes building the common code as build-in and modular back-and-forth. - Unify two modpost invocations to optimize the build process. - Remove head-y syntax in favor of linker scripts for placing particular sections in the head of vmlinux. - Bump the minimal GNU Make version to 3.82. - Clean up misc Makefiles and scripts. * tag 'kbuild-v6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (41 commits) docs: bump minimal GNU Make version to 3.82 ia64: simplify esi object addition in Makefile Revert "kbuild: Check if linker supports the -X option" kbuild: rebuild .vmlinux.export.o when its prerequisite is updated kbuild: move modules.builtin(.modinfo) rules to Makefile.vmlinux_o zstd: Fixing mixed module-builtin objects kallsyms: ignore __kstrtab_* and __kstrtabns_* symbols kallsyms: take the input file instead of reading stdin kallsyms: drop duplicated ignore patterns from kallsyms.c kbuild: reuse mksysmap output for kallsyms mksysmap: update comment about __crc_* kbuild: remove head-y syntax kbuild: use obj-y instead extra-y for objects placed at the head kbuild: hide error checker logs for V=1 builds kbuild: re-run modpost when it is updated kbuild: unify two modpost invocations kbuild: move vmlinux.o rule to the top Makefile kbuild: move .vmlinux.objs rule to Makefile.modpost kbuild: list sub-directories in ./Kbuild Makefile.compiler: replace cc-ifversion with compiler-specific macros ...
109 lines
4.1 KiB
Makefile
109 lines
4.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the linux kernel.
|
|
#
|
|
|
|
extra-y := vmlinux.lds
|
|
asflags-y := $(KBUILD_CFLAGS)
|
|
ccflags-y := -Wno-sign-compare
|
|
|
|
obj-y := head.o entry.o traps.o process.o osf_sys.o irq.o \
|
|
irq_alpha.o signal.o setup.o ptrace.o time.o \
|
|
systbls.o err_common.o io.o bugs.o termios.o
|
|
|
|
obj-$(CONFIG_VGA_HOSE) += console.o
|
|
obj-$(CONFIG_SMP) += smp.o
|
|
obj-$(CONFIG_PCI) += pci.o pci_iommu.o pci-sysfs.o
|
|
obj-$(CONFIG_SRM_ENV) += srm_env.o
|
|
obj-$(CONFIG_MODULES) += module.o
|
|
obj-$(CONFIG_PERF_EVENTS) += perf_event.o
|
|
obj-$(CONFIG_RTC_DRV_ALPHA) += rtc.o
|
|
obj-$(CONFIG_AUDIT) += audit.o
|
|
|
|
ifdef CONFIG_ALPHA_GENERIC
|
|
|
|
obj-y += core_apecs.o core_cia.o core_irongate.o core_lca.o \
|
|
core_mcpcia.o core_polaris.o core_t2.o \
|
|
core_tsunami.o
|
|
|
|
obj-y += sys_alcor.o sys_cabriolet.o sys_dp264.o sys_eb64p.o sys_eiger.o \
|
|
sys_jensen.o sys_miata.o sys_mikasa.o sys_nautilus.o \
|
|
sys_noritake.o sys_rawhide.o sys_ruffian.o sys_rx164.o \
|
|
sys_sable.o sys_sio.o sys_sx164.o sys_takara.o
|
|
|
|
ifndef CONFIG_ALPHA_LEGACY_START_ADDRESS
|
|
obj-y += core_marvel.o core_titan.o core_wildfire.o
|
|
obj-y += sys_marvel.o sys_titan.o sys_wildfire.o
|
|
obj-y += err_ev7.o err_titan.o err_marvel.o
|
|
endif
|
|
|
|
obj-y += irq_pyxis.o irq_i8259.o irq_srm.o
|
|
obj-y += err_ev6.o
|
|
obj-y += es1888.o smc37c669.o smc37c93x.o pc873xx.o gct.o
|
|
obj-y += srmcons.o
|
|
|
|
else
|
|
|
|
# Misc support
|
|
obj-$(CONFIG_ALPHA_SRM) += srmcons.o
|
|
|
|
# Core logic support
|
|
obj-$(CONFIG_ALPHA_APECS) += core_apecs.o
|
|
obj-$(CONFIG_ALPHA_CIA) += core_cia.o
|
|
obj-$(CONFIG_ALPHA_IRONGATE) += core_irongate.o
|
|
obj-$(CONFIG_ALPHA_LCA) += core_lca.o
|
|
obj-$(CONFIG_ALPHA_MARVEL) += core_marvel.o gct.o
|
|
obj-$(CONFIG_ALPHA_MCPCIA) += core_mcpcia.o
|
|
obj-$(CONFIG_ALPHA_POLARIS) += core_polaris.o
|
|
obj-$(CONFIG_ALPHA_T2) += core_t2.o
|
|
obj-$(CONFIG_ALPHA_TSUNAMI) += core_tsunami.o
|
|
obj-$(CONFIG_ALPHA_TITAN) += core_titan.o
|
|
obj-$(CONFIG_ALPHA_WILDFIRE) += core_wildfire.o
|
|
|
|
# Board support
|
|
obj-$(CONFIG_ALPHA_ALCOR) += sys_alcor.o irq_i8259.o irq_srm.o
|
|
obj-$(CONFIG_ALPHA_CABRIOLET) += sys_cabriolet.o irq_i8259.o irq_srm.o \
|
|
pc873xx.o
|
|
obj-$(CONFIG_ALPHA_EB164) += sys_cabriolet.o irq_i8259.o irq_srm.o \
|
|
pc873xx.o
|
|
obj-$(CONFIG_ALPHA_EB66P) += sys_cabriolet.o irq_i8259.o irq_srm.o \
|
|
pc873xx.o
|
|
obj-$(CONFIG_ALPHA_LX164) += sys_cabriolet.o irq_i8259.o irq_srm.o \
|
|
smc37c93x.o
|
|
obj-$(CONFIG_ALPHA_PC164) += sys_cabriolet.o irq_i8259.o irq_srm.o \
|
|
smc37c93x.o
|
|
obj-$(CONFIG_ALPHA_DP264) += sys_dp264.o irq_i8259.o es1888.o smc37c669.o
|
|
obj-$(CONFIG_ALPHA_SHARK) += sys_dp264.o irq_i8259.o es1888.o smc37c669.o
|
|
obj-$(CONFIG_ALPHA_TITAN) += sys_titan.o irq_i8259.o smc37c669.o
|
|
obj-$(CONFIG_ALPHA_EB64P) += sys_eb64p.o irq_i8259.o
|
|
obj-$(CONFIG_ALPHA_EB66) += sys_eb64p.o irq_i8259.o
|
|
obj-$(CONFIG_ALPHA_EIGER) += sys_eiger.o irq_i8259.o
|
|
obj-$(CONFIG_ALPHA_JENSEN) += sys_jensen.o pci-noop.o irq_i8259.o
|
|
obj-$(CONFIG_ALPHA_MARVEL) += sys_marvel.o
|
|
obj-$(CONFIG_ALPHA_MIATA) += sys_miata.o irq_pyxis.o irq_i8259.o \
|
|
es1888.o smc37c669.o
|
|
obj-$(CONFIG_ALPHA_MIKASA) += sys_mikasa.o irq_i8259.o irq_srm.o
|
|
obj-$(CONFIG_ALPHA_NAUTILUS) += sys_nautilus.o irq_i8259.o irq_srm.o
|
|
obj-$(CONFIG_ALPHA_NORITAKE) += sys_noritake.o irq_i8259.o
|
|
obj-$(CONFIG_ALPHA_RAWHIDE) += sys_rawhide.o irq_i8259.o
|
|
obj-$(CONFIG_ALPHA_RUFFIAN) += sys_ruffian.o irq_pyxis.o irq_i8259.o
|
|
obj-$(CONFIG_ALPHA_RX164) += sys_rx164.o irq_i8259.o
|
|
obj-$(CONFIG_ALPHA_SABLE) += sys_sable.o
|
|
obj-$(CONFIG_ALPHA_LYNX) += sys_sable.o
|
|
obj-$(CONFIG_ALPHA_BOOK1) += sys_sio.o irq_i8259.o irq_srm.o pc873xx.o
|
|
obj-$(CONFIG_ALPHA_AVANTI) += sys_sio.o irq_i8259.o irq_srm.o pc873xx.o
|
|
obj-$(CONFIG_ALPHA_NONAME) += sys_sio.o irq_i8259.o irq_srm.o pc873xx.o
|
|
obj-$(CONFIG_ALPHA_P2K) += sys_sio.o irq_i8259.o irq_srm.o pc873xx.o
|
|
obj-$(CONFIG_ALPHA_XL) += sys_sio.o irq_i8259.o irq_srm.o pc873xx.o
|
|
obj-$(CONFIG_ALPHA_SX164) += sys_sx164.o irq_pyxis.o irq_i8259.o \
|
|
irq_srm.o smc37c669.o
|
|
obj-$(CONFIG_ALPHA_TAKARA) += sys_takara.o irq_i8259.o pc873xx.o
|
|
obj-$(CONFIG_ALPHA_WILDFIRE) += sys_wildfire.o irq_i8259.o
|
|
|
|
# Error support
|
|
obj-$(CONFIG_ALPHA_MARVEL) += err_ev7.o err_marvel.o
|
|
obj-$(CONFIG_ALPHA_NAUTILUS) += err_ev6.o
|
|
obj-$(CONFIG_ALPHA_TITAN) += err_ev6.o err_titan.o
|
|
|
|
endif # GENERIC
|