• G
    selftests: drop khdr make target · 3bb267a3
    Guillaume Tucker 提交于
    Drop the "khdr" make target as it fails when the build directory is a
    sub-directory of the source tree.  Rely on the "headers_install"
    target to have been run first instead.
    
    For example, here's a typical error this patch is addressing:
    
      $ make O=build -j32 kselftest-gen_tar
      make[1]: Entering directory '/home/kernelci/linux/build'
      make --no-builtin-rules INSTALL_HDR_PATH=/home/kernelci/linux/build/usr \
              ARCH=x86 -C ../../.. headers_install
      make[3]: Entering directory '/home/kernelci/linux'
      Makefile:1022: ../scripts/Makefile.extrawarn: No such file or directory
    
    The source directory is determined in the top-level Makefile as ".."
    relatively to the "build" directory, but then the kselftest Makefile
    switches to "-C ../../.." so "../scripts" then points one level higher
    than the source tree e.g. "linux/../scripts" - which fails obviously.
    There is no other use-case in the kernel tree where a sub-directory
    Makefile tries to call a top-level make target, and it appears this
    isn't really a valid thing to do.
    Signed-off-by: NGuillaume Tucker <guillaume.tucker@collabora.com>
    Tested-by: NAnders Roxell <anders.roxell@linaro.org>
    Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
    3bb267a3
Makefile 7.1 KB