Changeset fd6c8b1 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:
- 28fcaee
- Parents:
- 2d75831
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-27 17:44:42)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.initrd
r2d75831 rfd6c8b1 27 27 # 28 28 29 INIT_FILES := $(addprefix $(DIST_PATH).initrd/,$(INIT_TASKS)) 30 INIT_FILES := $(INIT_FILES) $(addsuffix .gz,$(INIT_FILES)) 31 32 $(INITRD).img: 33 rm -rf $(DIST_PATH).initrd 34 cp -R $(DIST_PATH) $(DIST_PATH).initrd 35 rm -f $(INIT_FILES) 36 rm -rf $(DIST_PATH).initrd/boot 37 ifeq ($(RDFMT),tmpfs) 38 tar -c -f $@ -C $(DIST_PATH).initrd . 39 endif 40 ifeq ($(RDFMT),fat) 41 $(MKFAT) 1048576 $(DIST_PATH).initrd $@ 42 endif 43 ifeq ($(RDFMT),ext4fs) 44 $(MKEXT4) 1048576 $(DIST_PATH).initrd $@ 45 endif 29 $(INITRD).img: ../build/initrd.img 30 cp $< $@ -
install.sh.in
r2d75831 rfd6c8b1 11 11 fi 12 12 13 rm -r "${DESTDIR}"13 rm -rf "${DESTDIR}" 14 14 15 15 mkdir -p "${DESTDIR}cfg/" -
meson.build
r2d75831 rfd6c8b1 23 23 which = find_program('which') 24 24 sh = find_program('sh') 25 mkext4 = find_program('tools/mkext4.py') 26 mkfat = find_program('tools/mkfat.py') 25 27 26 28 autocheck = generator(find_program('tools/autocheck.awk'), … … 444 446 # Build up dist 445 447 448 dist_dir = meson.current_build_dir()/'dist/' 449 446 450 dist = custom_target('DIST', 447 451 output: 'dist.tag', 448 452 input: [ install_script, install_deps ], 449 command: [ sh, '-x', '-u', '-e', '@INPUT0@', '@OUTPUT@', meson.current_build_dir()/'dist/'],453 command: [ sh, '-x', '-u', '-e', '@INPUT0@', '@OUTPUT@', dist_dir ], 450 454 build_by_default: true, 451 455 ) 452 456 453 #initrd_img = custom_target('initrd.img', 454 # output: 'initrd.img', 455 # input: dist, 456 457 457 # Build initrd image 458 459 if RDFMT == 'tmpfs' 460 initrd_cmd = [ 'tar', '-c', '-f', '@OUTPUT@', '-C', dist_dir, '.' ] 461 elif RDFMT == 'fat' 462 initrd_cmd = [ mkfat, '1048576', dist_dir, '@OUTPUT@' ] 463 elif RDFMT == 'ext4fs' 464 initrd_cmd = [ mkext4, '1048576', dist_dir, '@OUTPUT@' ] 465 else 466 error('Unknown RDFMT: ' + RDFMT) 467 endif 468 469 initrd_img = custom_target('initrd.img', 470 output: 'initrd.img', 471 input: dist, 472 command: initrd_cmd, 473 build_by_default: true, 474 ) 475
Note:
See TracChangeset
for help on using the changeset viewer.