Changeset d3357e9 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:
f69d5a8
Parents:
56440a5
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-30 15:23:58)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

Make building bootable images optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/meson.build

    r56440a5 rd3357e9  
    8181        endif
    8282
     83        boot_files = static_library('bootfiles', boot_src,
     84                include_directories: boot_include_dirs,
     85                implicit_include_directories: false,
     86                c_args: boot_c_args,
     87                pic: false,
     88                build_by_default: true,
     89        )
     90
    8391        # Preprocess linker script using C preprocessor.
    8492        boot_ldscript = custom_target('_link.ld',
     
    97105                ],
    98106                capture: true,
     107                build_by_default: true
    99108        )
    100109
     
    133142        boot_image_map_path = meson.current_build_dir()/boot_image_name + '.map'
    134143
    135         boot_elf = executable(boot_image_name + '.elf', boot_src, boot_comps_o,
     144        boot_elf = executable(boot_image_name + '.elf', boot_comps_o,
    136145                include_directories: boot_include_dirs,
    137                 implicit_include_directories: false,
    138146                c_args: boot_c_args,
    139147                link_args: boot_c_args + boot_link_args + [
     
    141149                ],
    142150                link_depends: boot_ldscript,
    143                 install: true,
    144                 install_dir: 'boot',
     151                link_whole: boot_files,
    145152                pie: false,
     153                build_by_default: false,
    146154        )
    147155
     
    160168endif
    161169
    162 if POSTBUILD == 'none'
    163         POST_INPUT = disabler()
    164 endif
    165 
    166170if POSTBUILD == 'raw'
    167171        POST_INPUT = boot_image
Note: See TracChangeset for help on using the changeset viewer.