diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-04-07 00:30:18 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-05-08 03:16:59 +0900 |
commit | f97cf399915bc928f5f97ce93e15ce40da514e16 (patch) | |
tree | 9688ff42ea760fa015bb03f5db786be5d804f3f6 /.mailmap | |
parent | 9eef99f7a335e4ffc6dfe65fc29c7d38dafae915 (diff) | |
download | lwn-f97cf399915bc928f5f97ce93e15ce40da514e16.tar.gz lwn-f97cf399915bc928f5f97ce93e15ce40da514e16.zip |
kbuild: make multi_depend work with targets in subdirectory
Precisely speaking, when you get the stem of the path, you should use
$(patsubst $(obj)/%,%,...) instead of $(notdir ...).
I do not see this usecase, but if you create a composite object in a
subdirectory, the Makefile should look like this:
obj-$(CONFIG_FOO) += dir/foo.o
dir/foo-objs := dir/foo1.o dir/foo2.o
The member objects should be assigned to dir/foo-objs instead of
foo-objs.
This syntax is more consistent with commit 54b8ae66ae1a ("kbuild:
change *FLAGS_<basetarget>.o to take the path relative to $(obj)").
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions