Changeset 123cd6d in mainline
- Timestamp:
- 2019-08-17T12:49:43Z (5 years ago)
- 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)
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile
rb2695b9 r123cd6d 38 38 39 39 build_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/"51 40 52 ifeq ($(CONFIG_DEVEL_FILES), y)53 cp -L "$(LIBGCC_PATH)" "$(DIST_PATH)/lib/"54 endif55 41 56 42 if ls $(DIST_OVERLAY_PATH)/* >/dev/null 2>/dev/null; then \ -
install.sh.in
rb2695b9 r123cd6d 2 2 3 3 if [ "$#" -ge 1 ]; then 4 DESTDIR="$1" 4 touch "$1" 5 fi 6 7 if [ "$#" -ge 2 ]; then 8 DESTDIR="$2" 5 9 else 6 10 DESTDIR="${MESON_INSTALL_DESTDIR_PREFIX}" 7 11 fi 8 12 13 mkdir -p "${DESTDIR}cfg/" 14 mkdir -p "${DESTDIR}data/" 15 mkdir -p "${DESTDIR}loc/" 16 mkdir -p "${DESTDIR}log/" 17 mkdir -p "${DESTDIR}tmp/" 18 mkdir -p "${DESTDIR}vol/" 19 mkdir -p "${DESTDIR}w/" 20 9 21 @text@ -
meson.build
rb2695b9 r123cd6d 385 385 ) 386 386 387 c ustom_target('config.sh',387 config_sh = custom_target('config.sh', 388 388 input: config_mk, 389 389 output: 'config.sh', … … 393 393 394 394 install_files += [[ 'config', meson.current_build_dir() / 'config.mk', 'config.mk' ]] 395 install_deps += [ config_mk ] 395 396 install_files += [[ 'config', meson.current_build_dir() / 'config.sh', 'config.sh' ]] 397 install_deps += [ config_sh ] 396 398 397 399 # TODO: remove 398 400 install_files += [[ 'config', meson.current_source_dir() / 'Makefile.common', 'Makefile.common' ]] 401 install_deps += files('Makefile.common') 399 402 install_files += [[ 'config', meson.current_source_dir() / 'Makefile.config', 'Makefile.config' ]] 400 401 402 # Emit and register the install script. 403 install_deps += files('Makefile.config') 404 405 if 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) ] 414 endif 415 416 417 # Emit the install script. 403 418 404 419 install_script_text = [] 420 421 # Copy uspace/dist. 422 _uspace = meson.current_source_dir() / 'uspace' 423 install_script_text += 'cp -r -L -T -u "@0@/dist" "${DESTDIR}"'.format(_uspace) 405 424 406 425 foreach f : install_files … … 411 430 install_script_text += uspace_lib_install_script_text 412 431 413 install_script_name = meson.current_build_dir() / 'install.sh'414 415 432 install_script = configure_file( 416 433 configuration: { 'text' : '\n'.join(install_script_text) }, … … 419 436 ) 420 437 421 meson.add_install_script(install_script_name) 422 423 custom_target('DIST',424 output: 'dist. log',438 # Build up dist 439 440 dist = custom_target('DIST', 441 output: 'dist.tag', 425 442 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/' ], 428 444 build_by_default: true, 429 445 ) 430 446 447 #initrd_img = custom_target('initrd.img', 448 # output: 'initrd.img', 449 # input: dist, 450 451 -
uspace/lib/c/meson.build
rb2695b9 r123cd6d 220 220 if CONFIG_DEVEL_FILES 221 221 install_files += [[ 'lib', libstartfiles.full_path(), 'libstartfiles.a' ]] 222 install_deps += [ libstartfiles ] 222 223 endif -
uspace/lib/meson.build
rb2695b9 r123cd6d 131 131 _sdir = meson.current_source_dir() / l 132 132 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) 134 134 endif 135 135 endif -
uspace/meson.build
rb2695b9 r123cd6d 44 44 _dstdir = 'drv' / _basename 45 45 install_files += [[ _dstdir, _src, _basename + '.ma' ]] 46 install_deps += files(_src) 46 47 endif 47 48 endforeach … … 72 73 _src = meson.current_source_dir() / dir / _f.get('name') 73 74 install_files += [[ _dstdir, _src, _f.get('name') ]] 75 install_deps += files(_src) 74 76 endforeach 75 77 endif
Note:
See TracChangeset
for help on using the changeset viewer.