- Timestamp:
- 2019-08-17T12:49:43Z (6 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/grub/meson.build
r5b586b9 ra73a1453 5 5 dist_dirname = 'grub_dist' 6 6 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() 7 if 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() 11 12 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 27 endif 28 29 if 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 ] 39 endif 15 40 16 41 build_dist_sh = configure_file( … … 20 45 ) 21 46 22 23 MODULES = rd_init + [ 'boot/initrd.img' ]24 47 25 48 if GRUB_ARCH == 'pc' … … 31 54 MODULE_CMD = 'module2' 32 55 INSMODS = [ 'insmod efi_gop', 'insmod efi_uga' ] 33 endif34 35 if GRUB_LOADER == 'multiboot'36 LOADS = [ 'echo \'Loading kernel\'' ]37 LOADS += [ MULTIBOOT_CMD + ' /boot/kernel.elf' ]38 39 foreach module : MODULES40 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 endforeach44 endif45 46 if GRUB_LOADER == 'chainloader'47 LOADS = [48 'echo \'Loading ' + BOOT_OUTPUT + '\'',49 'chainloader /boot/' + BOOT_OUTPUT,50 'boot',51 ]52 56 endif 53 57
Note:
See TracChangeset
for help on using the changeset viewer.