Changeset 3706d93 in mainline


Ignore:
Timestamp:
2019-08-17T12:49:43Z (5 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:
318af1a
Parents:
512579c
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-29 10:48:33)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

Honor CONFIG_COMPRESSED_INIT

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm64/meson.build

    r512579c r3706d93  
    3333GRUB_LOADER = 'chainloader'
    3434
     35# FIXME: The loader crashed without explanation when CONFIG_COMPRESSED_INIT is disabled.
     36
    3537# Request binary output. The ARM64 port manually prepares the .text
    3638# section to look as a PE file than can be loaded on EFI systems.
  • boot/grub/meson.build

    r512579c r3706d93  
    1 
     1if GRUB_ARCH == 'pc'
     2        MULTIBOOT_CMD = 'multiboot'
     3        MODULE_CMD = 'module'
     4        INSMODS = [ 'insmod vbe', 'insmod vga' ]
     5elif GRUB_ARCH == 'efi'
     6        MULTIBOOT_CMD = 'multiboot2'
     7        MODULE_CMD = 'module2'
     8        INSMODS = [ 'insmod efi_gop', 'insmod efi_uga' ]
     9endif
    210
    311# TODO
     
    4654
    4755
    48 if GRUB_ARCH == 'pc'
    49         MULTIBOOT_CMD = 'multiboot'
    50         MODULE_CMD = 'module'
    51         INSMODS = [ 'insmod vbe', 'insmod vga' ]
    52 elif GRUB_ARCH == 'efi'
    53         MULTIBOOT_CMD = 'multiboot2'
    54         MODULE_CMD = 'module2'
    55         INSMODS = [ 'insmod efi_gop', 'insmod efi_uga' ]
    56 endif
    57 
    5856grub_cfg = configure_file(
    5957        input: 'grub.cfg.in',
  • boot/meson.build

    r512579c r3706d93  
    1616                foreach bin : rd_init_binaries
    1717                        if bin[1] == m
    18                                 moddeps += bin[0]
     18                                _dep = bin[0]
     19                                _newname = run_command(basename, bin[1], check: true).stdout().strip()
     20                                _oldname = run_command(basename, bin[0].full_path(), check: true).stdout().strip()
     21
     22                                if CONFIG_COMPRESSED_INIT
     23                                        _dep = custom_target(_newname + '.gz',
     24                                                output: _newname + '.gz',
     25                                                input: _dep,
     26                                                command: gzip,
     27                                                capture: true,
     28                                        )
     29                                        _newname += '.gz'
     30                                        _oldname = _newname
     31                                endif
     32
     33                                moddeps += _dep
     34                                name_transform += 's:.*/@0@:@1@:;'.format(_oldname, _newname)
    1935                                found = true
    20 
    21                                 _oldname = run_command(basename, bin[0].full_path(), check: true).stdout().strip()
    22                                 _newname = run_command(basename, bin[1], check: true).stdout().strip()
    23 
    24                                 name_transform += 's:.*/@0@:@1@:;'.format(_oldname, _newname)
    2536                                break
    2637                        endif
  • meson.build

    r512579c r3706d93  
    5252)
    5353
    54 gzip = generator(find_program('gzip',
    55         arguments: [ '--no-name', '-9', '--stdout', '@INPUT@' ]
    56         output: '@PLAINNAME@.gz',
    57         capture: true,
    58 )
     54# TODO: bug in Meson
     55#gzip = generator(find_program('gzip'),
     56#       arguments: [ '--no-name', '-9', '--stdout', '@INPUT@' ],
     57#       output: '@PLAINNAME@.gz',
     58#       capture: true,
     59#)
     60
     61gzip = [ find_program('gzip'), '--no-name', '-9', '--stdout', '@INPUT@' ]
    5962
    6063# Tar's arguments make sure that the archive is reproducible.
     
    165168        'GRUB_ARCH',
    166169        'UIMAGE_OS',
     170        'CONFIG_COMPRESSED_INIT',
    167171]
    168172
Note: See TracChangeset for help on using the changeset viewer.