Re: Re: [PATCH bpf-next v1 1/2] selftests/bpf: Update "vmtest.sh" for cross-compile arm64 on x86_64 host.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2024-08-28 at 11:10:38, yikai.lin@xxxxxxxx reply: 





>



>On 2024/8/27 21:39, Lin Yikai wrote:



>> Identify "$CROSS_COMPILE" to enable vm_test for cross-compile situation.



>> Additionally, use "-cpu cortex-a57" flag to accommodate the majority of QEMU CPU lists,



>> avoiding using "-cpu host," which can cause qemu_system_aarch64 start failure on x86_64 host.



>> 



>> Signed-off-by: Lin Yikai <yikai.lin@xxxxxxxx>



>> ---



>>   tools/testing/selftests/bpf/README.rst | 12 ++++++++-



>>   tools/testing/selftests/bpf/vmtest.sh  | 37 +++++++++++++++++++++-----



>>   2 files changed, 42 insertions(+), 7 deletions(-)



>> 



>Hi Yikai,



>



>Your patch reminds me of a previous commit [0], which was able to 



>support running vmtest in cross platform for all arch.



>



>Link: 



>https://lore.kernel.org/all/20240328124916.293173-2-pulehui@xxxxxxxxxxxxxxx/ 



>[0]



>
Hi, lehui, thank you for your reply.
I noticed you patch mainly targeted on riscv64 and also extended support to other ARCH.
While these changes are to have not been merged into the mainline yet.

Becuse currently I want to use and extend BPF on Android.
So my focus is primarily on cross-compiling for arm64 on x86.






[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux