Changeset 5b586b9 in mainline for boot/meson.build


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:
a73a1453
Parents:
98975a8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-28 17:03:11)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

rest of arms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/meson.build

    r98975a8 r5b586b9  
    11subdir('arch' / BARCH)
     2
     3if POSTBUILD == 'uimage'
     4        boot_image_format = 'binary'
     5endif
    26
    37if BUILD
     
    137141        if boot_image_format == 'binary'
    138142                # Some platforms can't ELF.
    139                 boot_image = custom_target(boot_image_name,
     143                boot_image = custom_target(boot_image_name + '.bin',
    140144                        input: boot_elf,
    141                         output: boot_image_name,
     145                        output: boot_image_name + '.bin',
    142146                        command: [ objcopy, '-O', 'binary', '@INPUT@', '@OUTPUT@' ],
    143147                )
     
    154158
    155159if POSTBUILD == 'uboot'
    156         # TODO
    157         error('unfinished')
     160        IMAGE_NAME = 'HelenOS-' + HELENOS_RELEASE
     161
     162        POST_INPUT = custom_target('uboot-image',
     163                output: 'uboot-image.bin',
     164                input: boot_image,
     165                command: [
     166                        mkuimage,
     167                        '-name', IMAGE_NAME,
     168                        '-laddr', LADDR,
     169                        '-saddr', SADDR,
     170                        '-ostype', UIMAGE_OS,
     171                        '@INPUT@',
     172                        '@OUTPUT@',
     173                ],
     174        )
    158175endif
    159176
Note: See TracChangeset for help on using the changeset viewer.