Changeset 1783f75 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:
- e503cea9
- Parents:
- b3ff685
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-29 14:08:34)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rb3ff685 r1783f75 35 35 CHECK = tools/check.sh 36 36 CONFIG = tools/config.py 37 AUTOTOOL = tools/autotool.py38 SANDBOX = autotool39 37 MESON = meson 40 38 … … 42 40 43 41 CONFIG_RULES = HelenOS.config 44 45 COMMON_MAKEFILE = Makefile.common46 42 47 43 CONFIG_MAKEFILE = Makefile.config … … 61 57 endif 62 58 63 CROSS_PATH = $(shell dirname "$(CC)") 59 CROSS_PREFIX ?= /usr/local/cross 60 CROSS_PATH = $(CROSS_PREFIX)/bin 64 61 65 62 CROSS_TARGET ?= $(UARCH) … … 69 66 endif 70 67 71 .PHONY: all precheck cscope cscope_parts autotoolconfig_default config distclean clean check releasefile release meson export-posix space68 .PHONY: all precheck cscope cscope_parts config_default config distclean clean check releasefile release meson export-posix space 72 69 73 all: meson export-cross test-xcw70 all: meson 74 71 75 72 $(BUILD_DIR)/build.ninja: Makefile.config version … … 79 76 PATH="$(CROSS_PATH):$$PATH" ninja -C $(BUILD_DIR) 80 77 81 test-xcw: meson export-cross78 test-xcw: meson 82 79 ifeq ($(CONFIG_DEVEL_FILES),y) 83 80 export PATH=$$PATH:$(abspath tools/xcw/bin) && $(MAKE) -r -C tools/xcw/demo 84 81 endif 85 86 export-posix: meson87 ifndef EXPORT_DIR88 @echo ERROR: Variable EXPORT_DIR is not defined. && false89 else90 mkdir -p $(EXPORT_DIR)91 $(MAKE) -r -C uspace/lib/posix export EXPORT_DIR=$(abspath $(EXPORT_DIR)) UARCH=$(UARCH)92 endif93 94 export-cross: meson95 mkdir -p uspace/export96 $(MAKE) -r -C uspace export EXPORT_DIR=$(abspath uspace/export) UARCH=$(UARCH)97 82 98 83 precheck: clean … … 143 128 git grep -n -f - -- ':(exclude)abi' ':(exclude)uspace/lib/posix' 144 129 145 # Autotool (detects compiler features)146 147 autotool $(COMMON_MAKEFILE): $(CONFIG_MAKEFILE) $(AUTOTOOL)148 $(AUTOTOOL)149 150 130 # Build-time configuration 151 131 … … 177 157 178 158 clean: 179 rm -fr $(SANDBOX)180 $(MAKE) -r -C kernel clean181 $(MAKE) -r -C uspace clean182 $(MAKE) -r -C boot clean183 159 $(MAKE) -r -C doxygen clean 184 160 $(MAKE) -r -C tools/xcw/demo clean -
meson.build
rb3ff685 r1783f75 437 437 438 438 # TODO: remove 439 install_files += [[ 'config', meson.current_source_dir() / 'Makefile.common', 'Makefile.common' ]]440 install_deps += files('Makefile.common')441 439 install_files += [[ 'config', meson.current_source_dir() / 'Makefile.config', 'Makefile.config' ]] 442 440 install_deps += files('Makefile.config') -
tools/ew.py
rb3ff685 r1783f75 34 34 35 35 import os 36 import platform 37 import re 38 import subprocess 36 39 import sys 37 import subprocess38 import autotool39 import platform40 40 import thread 41 41 import time 42 42 43 43 overrides = {} 44 45 CONFIG = 'Makefile.config' 46 47 def read_config(): 48 "Read HelenOS build configuration" 49 50 inf = open(CONFIG, 'r') 51 config = {} 52 53 for line in inf: 54 res = re.match(r'^(?:#!# )?([^#]\w*)\s*=\s*(.*?)\s*$', line) 55 if (res): 56 config[res.group(1)] = res.group(2) 57 58 inf.close() 59 return config 44 60 45 61 def is_override(str): … … 494 510 exit() 495 511 496 config = {} 497 autotool.read_config(autotool.CONFIG, config) 512 config = read_config() 498 513 499 514 if 'PLATFORM' in config.keys(): -
uspace/lib/pcut/update-from-master.sh
rb3ff685 r1783f75 28 28 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 29 # 30 31 # FIXME: update for meson config 30 32 31 33 run_echo() {
Note:
See TracChangeset
for help on using the changeset viewer.