Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • scripts
  • Makefile.lib
Find file BlameHistoryPermalink
  • Masahiro Yamada's avatar
    kbuild: make multi_depend work with targets in subdirectory · f97cf399
    Masahiro Yamada authored Apr 07, 2022
    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 54b8ae66
    
     ("kbuild:
    change *FLAGS_<basetarget>.o to take the path relative to $(obj)").
    
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
    f97cf399
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7