[LTP] [PATCH] kernel/kvm: don't hardcode objcopy

Petr Vorel pvorel@suse.cz
Thu Feb 27 16:33:51 CET 2025


Hi Ross,

> testcases/kernel/kvm uses objcopy to contruct a payload binary, but in
> cross builds the host objcopy may not know how to handle target
> binaries:

>  CC testcases/kernel/kvm/lib_host.o
>  objcopy: Unable to recognise the format of the input file `kvm_svm03-payload.elf'
>  make[3]: *** [ltp/testcases/kernel/kvm/Makefile:67: kvm_svm03-payload.o] Error 1

> This is trivially fixed by searching for an objcopy tool (so
> host-prefixed in cross builds) and using that instead.

Thanks for the fix, merged!

Kind regards,
Petr


More information about the ltp mailing list