• Li Zhijian's avatar
    selftests: be sure to make khdr before other targets · 8914a7a2
    Li Zhijian authored
    LKP/0Day reported some building errors about kvm, and errors message
    are not always same:
    - lib/x86_64/processor.c:1083:31: error: ‘KVM_CAP_NESTED_STATE’ undeclared
    (first use in this function); did you mean ‘KVM_CAP_PIT_STATE2’?
    - lib/test_util.c:189:30: error: ‘MAP_HUGE_16KB’ undeclared (first use
    in this function); did you mean ‘MAP_HUGE_16GB’?
    
    Although kvm relies on the khdr, they still be built in parallel when -j
    is specified. In this case, it will cause compiling errors.
    
    Here we mark target khdr as NOTPARALLEL to make it be always built
    first.
    
    CC: Philip Li <philip.li@intel.com>
    Reported-by: default avatarkernel test robot <lkp@intel.com>
    Signed-off-by: default avatarLi Zhijian <lizhijian@cn.fujitsu.com>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    8914a7a2
lib.mk 4.96 KB