Changeset 123cd6d 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:
2d75831
Parents:
b2695b9
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-27 17:28:06)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

Move more of build_dist

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile

    rb2695b9 r123cd6d  
    3838
    3939build_dist: clean_dist
    40         cp -r -L -T -u "$(USPACE_PATH)/dist" "$(DIST_PATH)"
    41         mkdir -p "$(DIST_PATH)/app/"
    42         mkdir -p "$(DIST_PATH)/cfg/"
    43         mkdir -p "$(DIST_PATH)/data/"
    44         mkdir -p "$(DIST_PATH)/lib/"
    45         mkdir -p "$(DIST_PATH)/loc/"
    46         mkdir -p "$(DIST_PATH)/log/"
    47         mkdir -p "$(DIST_PATH)/test/"
    48         mkdir -p "$(DIST_PATH)/tmp/"
    49         mkdir -p "$(DIST_PATH)/vol/"
    50         mkdir -p "$(DIST_PATH)/w/"
    5140
    52 ifeq ($(CONFIG_DEVEL_FILES), y)
    53         cp -L "$(LIBGCC_PATH)" "$(DIST_PATH)/lib/"
    54 endif
    5541
    5642        if ls $(DIST_OVERLAY_PATH)/* >/dev/null 2>/dev/null; then \
  • install.sh.in

    rb2695b9 r123cd6d  
    22
    33if [ "$#" -ge 1 ]; then
    4         DESTDIR="$1"
     4        touch "$1"
     5fi
     6
     7if [ "$#" -ge 2 ]; then
     8        DESTDIR="$2"
    59else
    610        DESTDIR="${MESON_INSTALL_DESTDIR_PREFIX}"
    711fi
    812
     13mkdir -p "${DESTDIR}cfg/"
     14mkdir -p "${DESTDIR}data/"
     15mkdir -p "${DESTDIR}loc/"
     16mkdir -p "${DESTDIR}log/"
     17mkdir -p "${DESTDIR}tmp/"
     18mkdir -p "${DESTDIR}vol/"
     19mkdir -p "${DESTDIR}w/"
     20
    921@text@
  • meson.build

    rb2695b9 r123cd6d  
    385385)
    386386
    387 custom_target('config.sh',
     387config_sh = custom_target('config.sh',
    388388        input: config_mk,
    389389        output: 'config.sh',
     
    393393
    394394install_files += [[ 'config', meson.current_build_dir() / 'config.mk', 'config.mk' ]]
     395install_deps += [ config_mk ]
    395396install_files += [[ 'config', meson.current_build_dir() / 'config.sh', 'config.sh' ]]
     397install_deps += [ config_sh ]
    396398
    397399# TODO: remove
    398400install_files += [[ 'config', meson.current_source_dir() / 'Makefile.common', 'Makefile.common' ]]
     401install_deps += files('Makefile.common')
    399402install_files += [[ 'config', meson.current_source_dir() / 'Makefile.config', 'Makefile.config' ]]
    400 
    401 
    402 # Emit and register the install script.
     403install_deps += files('Makefile.config')
     404
     405if CONFIG_DEVEL_FILES
     406        # Also install libgcc
     407        libgcc = run_command(
     408                cc.cmd_array(), arch_uspace_c_args, '-print-libgcc-file-name',
     409                check: true,
     410        ).stdout().strip()
     411
     412        install_files += [[ 'lib', libgcc, 'libgcc.a' ]]
     413        install_deps += [ files(libgcc) ]
     414endif
     415
     416
     417# Emit the install script.
    403418
    404419install_script_text = []
     420
     421# Copy uspace/dist.
     422_uspace = meson.current_source_dir() / 'uspace'
     423install_script_text += 'cp -r -L -T -u "@0@/dist" "${DESTDIR}"'.format(_uspace)
    405424
    406425foreach f : install_files
     
    411430install_script_text += uspace_lib_install_script_text
    412431
    413 install_script_name = meson.current_build_dir() / 'install.sh'
    414 
    415432install_script = configure_file(
    416433        configuration: { 'text' : '\n'.join(install_script_text) },
     
    419436)
    420437
    421 meson.add_install_script(install_script_name)
    422 
    423 custom_target('DIST',
    424         output: 'dist.log',
     438# Build up dist
     439
     440dist = custom_target('DIST',
     441        output: 'dist.tag',
    425442        input: [ install_script, install_deps ],
    426         command: [ sh, '@INPUT0@', meson.current_build_dir()/'dist/' ],
    427         capture: true,
     443        command: [ sh, '-x', '-u', '-e', '@INPUT0@', '@OUTPUT@', meson.current_build_dir()/'dist/' ],
    428444        build_by_default: true,
    429445)
    430446
     447#initrd_img = custom_target('initrd.img',
     448#       output: 'initrd.img',
     449#       input: dist,
     450
     451
  • uspace/lib/c/meson.build

    rb2695b9 r123cd6d  
    220220if CONFIG_DEVEL_FILES
    221221        install_files += [[ 'lib', libstartfiles.full_path(), 'libstartfiles.a' ]]
     222        install_deps += [ libstartfiles ]
    222223endif
  • uspace/lib/meson.build

    rb2695b9 r123cd6d  
    131131                                _sdir = meson.current_source_dir() / l
    132132                                uspace_lib_install_script_text += 'mkdir -p "${DESTDIR}include/lib@0@"'.format(l)
    133                                 uspace_lib_install_script_text += 'cp -L -t "${DESTDIR}include/lib@0@" "@1@"/*.h'.format(l, _sdir)
     133                                uspace_lib_install_script_text += 'cp -L -t "${DESTDIR}include/lib@0@" "@1@"/*.h || true'.format(l, _sdir)
    134134                        endif
    135135                endif
  • uspace/meson.build

    rb2695b9 r123cd6d  
    4444                _dstdir = 'drv' / _basename
    4545                install_files += [[ _dstdir, _src, _basename + '.ma' ]]
     46                install_deps += files(_src)
    4647        endif
    4748endforeach
     
    7273                        _src = meson.current_source_dir() / dir / _f.get('name')
    7374                        install_files += [[ _dstdir, _src, _f.get('name') ]]
     75                        install_deps += files(_src)
    7476                endforeach
    7577        endif
Note: See TracChangeset for help on using the changeset viewer.