Skip to content

Commit 0c286e7

Browse files
committed
autogen: alias always-y onto always for kernel < 5.10
autogen.lua writes `always-y := dump_N.pp extract.s` to targets.mk so kbuild builds those targets alongside the usual obj-y/obj-m chain. `always-y` was introduced in 5.10 (f9a4210b1ab9); earlier kernels only honor the legacy `always`. Without this alias the declaration is a no-op on 5.4, kbuild only links built-in.a, and the first .pp file autogen tries to read doesn't exist: autogen.lua: cannot read .../autogen/dump_1.pp: No such file or directory
1 parent 5e2e8d4 commit 0c286e7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

autogen/Kbuild

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
-include $(src)/targets.mk
55

6+
# Kernel < 5.10 has no `always-y`; alias it onto the legacy `always` so the
7+
# targets in targets.mk are still picked up by kbuild there.
8+
always := $(always-y)
9+
610
quiet_cmd_cpp_dD = CPP -dD $@
711
cmd_cpp_dD = $(CPP) $(c_flags) -E -dD -o $@ $<
812

0 commit comments

Comments
 (0)