Changeset 740e952 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:
b2695b9
Parents:
71069a9
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-27 16:04:58)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

more install tweaks

Files:
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • Makefile

    r71069a9 r740e952  
    7979meson: $(COMMON_MAKEFILE) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(ERRNO_HEADER) $(BUILD_DIR)/build.ninja
    8080        PATH="$(CROSS_PATH):$$PATH" ninja -C $(BUILD_DIR)
    81         PATH="$(CROSS_PATH):$$PATH" DESTDIR="$(BUILD_DIR)/dist" meson install --no-rebuild --only-changed -C $(BUILD_DIR) > $(BUILD_DIR)/install.log
     81        PATH="$(CROSS_PATH):$$PATH" DESTDIR="$(BUILD_DIR)/dist" meson install --no-rebuild --only-changed -C $(BUILD_DIR)
    8282
    8383test-xcw: meson export-cross
  • kernel/meson.build

    r71069a9 r740e952  
    140140                link_depends: kernel_ldscript,
    141141                link_whole: all_kernel_objects,
    142                 install: is_last,
    143                 install_dir: 'boot',
    144142                pie: false,
    145143        )
     
    168166endforeach
    169167
     168install_files += [[ 'boot', kernel_elf.full_path(), 'kernel.elf' ]]
     169
    170170kernel_disasm = custom_target(kernel_name + '.disasm',
    171171        command: [ objdump, '-S', '@INPUT@' ],
     
    174174        capture: true,
    175175        build_by_default: true,
    176         # TODO: Add configuration option for installing debug files
    177         install: false,
    178         install_dir: 'debug' / 'kernel',
    179176)
     177
     178# TODO: Add configuration option for installing debug files
     179if false
     180        install_files += [[ 'boot', kernel_disasm.full_path(), 'kernel.elf.disasm' ]]
     181endif
  • meson.build

    r71069a9 r740e952  
    326326subdir('meson' / 'arch' / UARCH)
    327327
     328install_files = []
     329install_deps = []
     330
    328331subdir('kernel')
    329332subdir('uspace')
     
    393396
    394397install_data('Makefile.common', 'Makefile.config', install_dir: 'config')
     398
     399
     400# Emit and register the install script.
     401
     402install_script_text = []
     403
     404foreach f : install_files
     405        _cmd = 'mkdir -p "${MESON_INSTALL_DESTDIR_PREFIX}@0@" && cp -L -T "@1@" "${MESON_INSTALL_DESTDIR_PREFIX}@0@/@2@"'
     406        install_script_text += _cmd.format(f[0], f[1], f[2])
     407endforeach
     408
     409install_script_text += uspace_lib_install_script_text
     410
     411configure_file(
     412        configuration: { 'text' : '\n'.join(install_script_text) },
     413        input: 'install.sh.in',
     414        output: 'install.sh',
     415)
     416
     417meson.add_install_script(meson.current_build_dir() / 'install.sh')
  • uspace/lib/meson.build

    r71069a9 r740e952  
    317317                cpp_args: arch_uspace_c_args,
    318318                link_args: arch_uspace_c_args + arch_uspace_link_args + _ldargs,
     319                build_by_default: true,
    319320        )
    320321
     
    328329                        output: _test_binname + '.disasm',
    329330                        capture: true,
    330                         install: install_debug_files,
    331                         install_dir: 'debug' / 'test',
    332                 )
    333 
    334                 install_files += [[ 'debug/test', _disasm.full_path(), _test_binname + '.disasm' ]]
    335                 install_deps += [ _disasm ]
     331                        build_by_default: true,
     332                )
     333
     334                if install_debug_files
     335                        install_files += [[ 'debug/test', _disasm.full_path(), _test_binname + '.disasm' ]]
     336                        install_deps += [ _disasm ]
     337                endif
    336338        endif
    337339endforeach
  • uspace/meson.build

    r71069a9 r740e952  
    66# This is currently disabled due to boot image size restrictions.
    77install_debug_files = false
    8 
    9 install_files = []
    10 install_deps = []
    118
    129subdir('lib')
     
    203200        endif
    204201endforeach
    205 
    206 uspace_bin_install_script_text = []
    207 
    208 foreach f : install_files
    209         _cmd = 'mkdir -p "${MESON_INSTALL_DESTDIR_PREFIX}@0@" && cp -L -T "@1@" "${MESON_INSTALL_DESTDIR_PREFIX}@0@/@2@"'
    210         uspace_bin_install_script_text += _cmd.format(f[0], f[1], f[2])
    211 endforeach
    212 
    213 uspace_install_script_text = uspace_lib_install_script_text + uspace_bin_install_script_text
    214 
    215 # Emit and register the install script.
    216 
    217 configure_file(
    218         configuration: { 'text' : '\n'.join(uspace_install_script_text) },
    219         input: 'install.sh.in',
    220         output: 'install.sh',
    221 )
    222 
    223 meson.add_install_script(meson.current_build_dir() / 'install.sh')
Note: See TracChangeset for help on using the changeset viewer.