Changeset 3706d93 in mainline for boot/meson.build


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:
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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.