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
  • tools
  • testing
  • selftests
  • lib.mk
Find file BlameHistoryPermalink
  • John Hubbard's avatar
    selftests: error out if kernel header files are not yet built · 9fc96c7c
    John Hubbard authored Jun 06, 2023
    As per a discussion with Muhammad Usama Anjum [1], the following is how
    one is supposed to build selftests:
    
        make headers && make -C tools/testing/selftests/mm
    
    Change the selftest build system's lib.mk to fail out with a helpful
    message if that prerequisite "make headers" has not been done yet.
    
    [1] https://lore.kernel.org/all/bf910fa5-0c96-3707-cce4-5bcc656b6274@collabora.com/
    
    [jhubbard@nvidia.com: abort the make process the first time headers aren't detected]
      Link: https://lkml.kernel.org/r/14573e7e-f2ad-ff34-dfbd-3efdebee51ed@nvidia.com
    [anders.roxell@linaro.org: fix out-of-tree builds]
      Link: https://lkml.kernel.org/r/20230613074931.666966-1-anders.roxell@linaro.org
    Link: https://lkml.kernel.org/r/20230606071637.267103-12-jhubbard@nvidia.com
    
    
    Signed-off-by: default avatarJohn Hubbard <jhubbard@nvidia.com>
    Signed-off-by: default avatarAnders Roxell <anders.roxell@linaro.org>
    Reviewed-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
    Tested-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
    Cc: David Hildenbrand <david@redhat.com>
    Cc: Peter Xu <peterx@redhat.com>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: Nathan Chancellor <nathan@kernel.org>
    Cc: Shuah Khan <shuah@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    9fc96c7c
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7