mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-02 23:23:49 +00:00
As the current AArch64 integration test builds kernel every time, which would take unnecessary time in CI and therefore not ideal. This commit refactors the AArch64 kernel building strategy to: 1. Keep the Linux kernel source code directory instead of deleting it everytime after the kernel is built. 2. In integration test script, check if the Linux kernel source code directory exists. If so use `git fetch && git checkout -f` to keep the source code always updated, else run `git clone` to get the source code. 3. Copy config file in and then compile the kernel. Fixes: https://github.com/cloud-hypervisor/cloud-hypervisor/issues/1444 Signed-off-by: Henry Wang <Henry.Wang@arm.com>