Changeset 2670afc 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:
- d27a505e
- Parents:
- 43255da
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-07-01 19:28:37)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r43255da r2670afc 27 27 # 28 28 29 # Just for this Makefile. Sub-makes will run in parallel if requested.30 .NOTPARALLEL:31 32 29 CCHECK = tools/sycek/ccheck 33 30 CSCOPE = cscope 34 31 FORMAT = clang-format 35 32 CHECK = tools/check.sh 36 CONFIG = $(abspath tools/config.py)37 MESON = meson38 33 39 BUILD_DIR=$(abspath build)40 41 CONFIG_RULES = HelenOS.config42 43 CONFIG_MAKEFILE = $(BUILD_DIR)/Makefile.config44 CONFIG_HEADER = $(BUILD_DIR)/config.h45 34 ERRNO_HEADER = abi/include/abi/errno.h 46 35 ERRNO_INPUT = abi/include/abi/errno.in 47 VERSION_FILE = version48 36 49 -include $(CONFIG_MAKEFILE) 50 -include $(COMMON_MAKEFILE) 37 .PHONY: all cscope cscope_parts format ccheck ccheck-fix space doxy check check_errno releasefile release 51 38 52 CROSS_TARGET ?= $(UARCH) 53 54 ifeq ($(MACHINE),bmalta) 55 CROSS_TARGET = mips32eb 56 endif 57 58 .PHONY: all precheck cscope cscope_parts config_default config distclean clean check releasefile release meson space 59 60 all: meson 61 62 $(BUILD_DIR)/build.ninja: $(CONFIG_MAKEFILE) $(VERSION_FILE) 63 meson . $(BUILD_DIR) --cross-file meson/cross/$(CROSS_TARGET) 64 65 meson: $(COMMON_MAKEFILE) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(ERRNO_HEADER) $(BUILD_DIR)/build.ninja 66 ninja -C $(BUILD_DIR) 67 68 test-xcw: meson 69 ifeq ($(CONFIG_DEVEL_FILES),y) 70 export PATH=$$PATH:$(abspath tools/xcw/bin) && $(MAKE) -r -C tools/xcw/demo 71 endif 72 73 precheck: clean 74 $(MAKE) -r all PRECHECK=y 39 all: 75 40 76 41 cscope: … … 93 58 cd tools && ./build-ccheck.sh 94 59 tools/ccheck.sh --fix 95 96 $(CCHECK):97 cd tools && ./build-ccheck.sh98 60 99 61 space: … … 118 80 git grep -n -f - -- ':(exclude)abi' ':(exclude)uspace/lib/posix' 119 81 120 # Build-time configuration121 122 config_default $(CONFIG_MAKEFILE) $(CONFIG_HEADER): $(CONFIG_RULES)123 mkdir -p $(BUILD_DIR)124 ifeq ($(HANDS_OFF),y)125 cd $(BUILD_DIR) && $(CONFIG) $(abspath $<) $(abspath defaults) hands-off $(PROFILE)126 else127 cd $(BUILD_DIR) && $(CONFIG) $(abspath $<) $(abspath defaults) default $(PROFILE)128 endif129 130 config: $(CONFIG_RULES)131 mkdir -p $(BUILD_DIR)132 cd $(BUILD_DIR) && $(CONFIG) $(abspath $<) $(abspath defaults)133 134 random-config: $(CONFIG_RULES)135 mkdir -p $(BUILD_DIR)136 cd $(BUILD_DIR) && $(CONFIG) $(abspath $<) $(abspath defaults) random137 138 82 # Release files 139 83 … … 144 88 $(MAKE) -r -C release release 145 89 146 # Cleaning147 148 distclean: clean149 rm -f $(CSCOPE).out $(COMMON_MAKEFILE) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) tools/*.pyc tools/checkers/*.pyc release/HelenOS-*150 151 clean:152 $(MAKE) -r -C tools/xcw/demo clean153 154 90 $(ERRNO_HEADER): $(ERRNO_INPUT) 155 91 echo '/* Generated file. Edit errno.in instead. */' > $@.new 156 92 sed 's/__errno_entry(\([^,]*\),\([^,]*\),.*/#define \1 __errno_t(\2)/' < $< >> $@.new 157 93 mv $@.new $@ 158 159 -include Makefile.local -
meson.build
r43255da r2670afc 553 553 554 554 # TODO: Check when cross target has changed, since it won't work. 555 556 if false 557 # TODO: doesn't work because it changes cross target 558 run_target('random-config', 559 command: [ 560 sh, 561 '-c', 'cd $1 && $2 $3 $4 random', 562 '--', 563 meson.build_root(), 564 config_py.path(), 565 meson.source_root() / 'HelenOS.config', 566 meson.source_root() / 'defaults', 567 ] 568 ) 569 endif 570 571 572 # TODO text-xcw 573 #ifeq ($(CONFIG_DEVEL_FILES),y) 574 # export PATH=$$PATH:$(abspath tools/xcw/bin) && $(MAKE) -r -C tools/xcw/demo 575 #endif 576
Note:
See TracChangeset
for help on using the changeset viewer.