Changeset a73a1453 in mainline for boot/grub


Ignore:
Timestamp:
2019-08-17T12:49:43Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
512579c
Parents:
5b586b9
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-28 17:53:10)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

arm64 wip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/grub/meson.build

    r5b586b9 ra73a1453  
    55dist_dirname = 'grub_dist'
    66
    7 build_dist_text = []
    8 build_dist_deps = []
    9 foreach init : rd_init_binaries
    10         target = 'boot/' + run_command(basename, init[1], check: true).stdout().strip()
     7if GRUB_LOADER == 'multiboot'
     8        build_dist_text = []
     9        build_dist_deps = []
     10        foreach init : rd_init_binaries
     11                target = 'boot/' + run_command(basename, init[1], check: true).stdout().strip()
    1112
    12         build_dist_text += install_snippet.format(init[0].full_path(), target)
    13         build_dist_deps += init[0]
    14 endforeach
     13                build_dist_text += install_snippet.format(init[0].full_path(), target)
     14                build_dist_deps += init[0]
     15        endforeach
     16
     17        LOADS = [ 'echo \'Loading kernel\'' ]
     18        LOADS += [ MULTIBOOT_CMD + ' /boot/kernel.elf' ]
     19
     20        MODULES = rd_init + [ 'boot/initrd.img' ]
     21
     22        foreach module : MODULES
     23                module = '/boot/' + run_command(basename, module, check: true).stdout().strip()
     24                LOADS += 'echo \'Loading @0@\''.format(module)
     25                LOADS += '@0@ @1@ @1@'.format(MODULE_CMD, module)
     26        endforeach
     27endif
     28
     29if GRUB_LOADER == 'chainloader'
     30        # init binaries are already part of the chainloaded boot image.
     31        build_dist_text = [ install_snippet.format(boot_image.full_path(), 'boot/' + boot_image_name) ]
     32        build_dist_deps = [ boot_image ]
     33
     34        LOADS = [
     35                'echo \'Loading ' + boot_image_name + '\'',
     36                'chainloader /boot/' + boot_image_name,
     37                'boot',
     38        ]
     39endif
    1540
    1641build_dist_sh = configure_file(
     
    2045)
    2146
    22 
    23 MODULES = rd_init + [ 'boot/initrd.img' ]
    2447
    2548if GRUB_ARCH == 'pc'
     
    3154        MODULE_CMD = 'module2'
    3255        INSMODS = [ 'insmod efi_gop', 'insmod efi_uga' ]
    33 endif
    34 
    35 if GRUB_LOADER == 'multiboot'
    36         LOADS = [ 'echo \'Loading kernel\'' ]
    37         LOADS += [ MULTIBOOT_CMD + ' /boot/kernel.elf' ]
    38 
    39         foreach module : MODULES
    40                 module = '/boot/' + run_command(basename, module, check: true).stdout().strip()
    41                 LOADS += 'echo \'Loading @0@\''.format(module)
    42                 LOADS += '@0@ @1@ @1@'.format(MODULE_CMD, module)
    43         endforeach
    44 endif
    45 
    46 if GRUB_LOADER == 'chainloader'
    47         LOADS = [
    48                 'echo \'Loading ' + BOOT_OUTPUT + '\'',
    49                 'chainloader /boot/' + BOOT_OUTPUT,
    50                 'boot',
    51         ]
    5256endif
    5357
Note: See TracChangeset for help on using the changeset viewer.