Changeset a114e09 in mainline for tools/grub/grub-update.sh


Ignore:
Timestamp:
2019-04-10T15:04:17Z (6 years ago)
Author:
Jakub Jermář <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c7c3508
Parents:
3ef901d0
git-author:
Petr Pavlu <setup@…> (2019-03-31 10:06:45)
git-committer:
Jakub Jermář <jakub@…> (2019-04-10 15:04:17)
Message:

Allow per-boot-architecture GRUB files

Organize pre-compiled GRUB binaries per-architecture in order to prepare
the layout for adding an AArch64-EFI version of this bootloader:

  • Rename boot/grub.pc to boot/grub/ia32-pc.
  • Rename boot/grub.efi to boot/grub/ia32-efi.
  • Create symlinks boot/grub/amd64-pc and amd64-efi pointing to boot/grub/ia32-pc and ia32-efi, respectively.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/grub/grub-update.sh

    r3ef901d0 ra114e09  
    7272git reset --hard "$grub_rev" || exit 1
    7373
    74 echo "$grub_rev" >"$helenosdir"/boot/grub.pc/REVISION || exit 1
    75 echo "$grub_rev" > "$helenosdir"/boot/grub.efi/REVISION || exit 1
     74echo "$grub_rev" >"$helenosdir"/boot/grub/ia32-pc/REVISION || exit 1
     75echo "$grub_rev" > "$helenosdir"/boot/grub/ia32-efi/REVISION || exit 1
    7676
    7777# Build each platform to a different directory
     
    8282
    8383# Extract El Torrito boot image for i386-pc
    84 cd "$helenosdir"/boot/grub.pc || exit 1
     84cd "$helenosdir"/boot/grub/ia32-pc || exit 1
    8585rm -f pc.img || exit 1
    8686"$builddir"/i386-pc/bin/grub-mkrescue -o phony --xorriso="$origdir/getimage.sh" || exit 1
    8787
    8888# Extract El Torrito boot image for i386-efi
    89 cd "$helenosdir"/boot/grub.efi || exit 1
     89cd "$helenosdir"/boot/grub/ia32-efi || exit 1
    9090rm -f efi.img.gz || exit 1
    9191"$builddir"/i386-efi/bin/grub-mkrescue -o phony --xorriso="$origdir/getimage.sh" || exit 1
     
    9393
    9494# Extract El Torrito boot image for x86_64-efi
    95 cd "$helenosdir"/boot/grub.efi || exit 1
     95cd "$helenosdir"/boot/grub/ia32-efi || exit 1
    9696rm -f efi.img.gz || exit 1
    9797"$builddir"/x86_64-efi/bin/grub-mkrescue -o phony --xorriso="$origdir/getimage.sh" || exit 1
     
    106106
    107107# Update Grub files for all platforms
    108 grub_files_update grub.pc i386-pc
    109 grub_files_update grub.efi i386-efi
    110 grub_files_update grub.efi x86_64-efi
     108grub_files_update grub/ia32-pc i386-pc
     109grub_files_update grub/ia32-efi i386-efi
     110grub_files_update grub/ia32-efi x86_64-efi
    111111
    112112echo "GRUB update successful."
Note: See TracChangeset for help on using the changeset viewer.