From ade05eecd03ec2f0116f83f3b5fb33c902059932 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 18 Mar 2022 14:28:04 +0000 Subject: tools: generate bootable arm64 images with buildroot --- tools/create-buildroot-image.sh | 37 +++++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) (limited to 'tools/create-buildroot-image.sh') diff --git a/tools/create-buildroot-image.sh b/tools/create-buildroot-image.sh index 7f704770d..07c763da6 100755 --- a/tools/create-buildroot-image.sh +++ b/tools/create-buildroot-image.sh @@ -7,7 +7,7 @@ # TARGETARCH={amd64,arm64,arm,riscv64,s390x,mips64le,ppc64le} [NOMAKE=yes] create-buildroot-image.sh # If no NOMAKE=yes is specified, then it will just prepare the buildroot config, # but will not run the final make. -# For amd64 it creates a bootable image with root partition +# For amd64 and arm64 it creates a bootable image with root partition # on /dev/sda1 in output/images/disk.img file. # For other architectures it creates a non-bootable disk # suitable qemu injected boot with root partition on /dev/sda @@ -23,7 +23,7 @@ case "$TARGETARCH" in amd64) DEFCONFIG="pc_x86_64_bios_defconfig";; arm64) - DEFCONFIG="qemu_aarch64_virt_defconfig";; + DEFCONFIG="aarch64_efi_defconfig";; arm) DEFCONFIG="qemu_arm_vexpress_defconfig";; riscv64) @@ -40,7 +40,7 @@ case "$TARGETARCH" in esac git fetch origin -git checkout 2021.11.x +git checkout 2022.02 make "${DEFCONFIG}" @@ -117,8 +117,11 @@ EOF arm64) cat >>.config <post_image_script.sh <<'EOFEOF' +cat >${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg <