Changeset 5f176da 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:
- bc48242
- Parents:
- 41408d94
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-26 20:32:16)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
- Files:
-
- 1 deleted
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r41408d94 r5f176da 63 63 CROSS_PATH = $(shell dirname "$(CC)") 64 64 65 CROSS_TARGET ?= $(UARCH) 66 65 67 ifeq ($(MACHINE),bmalta) 66 UARCH= mips32eb68 CROSS_TARGET = mips32eb 67 69 endif 68 70 … … 73 75 74 76 $(BUILD_DIR)/build.ninja: Makefile.config version 75 PATH="$(CROSS_PATH):$$PATH" meson . $(BUILD_DIR) --cross-file meson/cross/$( UARCH) $(MESON_ARGS)77 PATH="$(CROSS_PATH):$$PATH" meson . $(BUILD_DIR) --cross-file meson/cross/$(CROSS_TARGET) $(MESON_ARGS) 76 78 77 79 common: $(COMMON_MAKEFILE) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(ERRNO_HEADER) $(BUILD_DIR)/build.ninja -
kernel/meson.build
r41408d94 r5f176da 3 3 4 4 # Fills arch_src. 5 subdir('arch' / h_arch)5 subdir('arch' / KARCH) 6 6 7 7 # Defines genarch_src. … … 21 21 'generic/include', 22 22 'genarch/include', 23 'arch' / h_arch/ 'include',24 '..' / 'abi' / 'arch' / h_arch/ 'include',23 'arch' / KARCH / 'include', 24 '..' / 'abi' / 'arch' / KARCH / 'include', 25 25 '..' / 'abi' / 'include', 26 26 'test', … … 39 39 # Preprocess linker script using C preprocessor. 40 40 kernel_ldscript = custom_target('_link.ld', 41 input: 'arch' / h_arch/ '_link.ld.in',41 input: 'arch' / KARCH / '_link.ld.in', 42 42 output: '_link.ld', 43 43 command: [ … … 45 45 arch_kernel_c_args, 46 46 kernel_defs, 47 '-I' + meson.current_source_dir() / 'arch' / h_arch/ 'include',47 '-I' + meson.current_source_dir() / 'arch' / KARCH / 'include', 48 48 '-D__ASSEMBLER__', 49 49 '-D__LINKER__', -
kernel/test/meson.build
r41408d94 r5f176da 24 24 ) 25 25 26 if h_arch== 'mips32'26 if KARCH == 'mips32' 27 27 test_src += files('debug/mips1.c') 28 28 else … … 30 30 endif 31 31 32 if h_arch== 'ia64'32 if KARCH == 'ia64' 33 33 test_src += files('mm/purge1.c') 34 34 else -
meson.build
r41408d94 r5f176da 111 111 'MACHINE', 112 112 'MEMORY_MODEL', 113 114 'UARCH', 115 'KARCH', 113 116 ] 114 117 … … 155 158 HELENOS_RELEASE = HELENOS_VERSION + '.' + HELENOS_PATCHLEVEL + '.' + HELENOS_SUBLEVEL 156 159 157 h_arch = meson.get_cross_property('h_arch')158 160 159 161 meson.add_install_script('install.sh', CONFIG_DEVEL_FILES.to_string()) … … 205 207 ] 206 208 207 if h_arch!= 'ia64'209 if UARCH != 'ia64' 208 210 extra_common_flags += [ '-fvar-tracking-assignments' ] 209 211 endif … … 307 309 uspace_as_prolog = '' 308 310 309 subdir('meson' / 'arch' / h_arch)311 subdir('meson' / 'arch' / UARCH) 310 312 311 313 subdir('kernel') -
meson/cross/amd64
r41408d94 r5f176da 17 17 18 18 cc_arch = 'amd64' 19 h_arch = 'amd64'20 19 bits = 64 21 20 -
meson/cross/amd64_clang
r41408d94 r5f176da 17 17 18 18 cc_arch = 'amd64' 19 h_arch = 'amd64'20 19 bits = 64 21 20 -
meson/cross/arm32
r41408d94 r5f176da 17 17 18 18 cc_arch = 'arm' 19 h_arch = 'arm32'20 19 bits = 32 21 20 -
meson/cross/arm64
r41408d94 r5f176da 17 17 18 18 cc_arch = 'aarch64' 19 h_arch = 'arm64'20 19 bits = 64 21 20 -
meson/cross/ia32
r41408d94 r5f176da 17 17 18 18 cc_arch = 'i686' 19 h_arch = 'ia32'20 19 bits = 32 21 20 -
meson/cross/ia64
r41408d94 r5f176da 17 17 18 18 cc_arch = 'ia64' 19 h_arch = 'ia64'20 19 bits = 64 21 20 -
meson/cross/mips32
r41408d94 r5f176da 17 17 18 18 cc_arch = 'mipsel' 19 h_arch = 'mips32'20 19 bits = 32 21 20 -
meson/cross/mips32eb
r41408d94 r5f176da 17 17 18 18 cc_arch = 'mips' 19 h_arch = 'mips32'20 19 bits = 32 21 20 -
meson/cross/ppc32
r41408d94 r5f176da 17 17 18 18 cc_arch = 'ppc' 19 h_arch = 'ppc32'20 19 bits = 32 21 20 -
meson/cross/riscv64
r41408d94 r5f176da 17 17 18 18 cc_arch = 'riscv64' 19 h_arch = 'riscv64'20 19 bits = 64 21 20 -
meson/cross/sparc64
r41408d94 r5f176da 17 17 18 18 cc_arch = 'sparc64' 19 h_arch = 'sparc64'20 19 bits = 64 21 20 -
uspace/drv/meson.build
r41408d94 r5f176da 64 64 65 65 # sun4u driver won't compile on 32-bit targets 66 if h_arch== 'sparc64'66 if UARCH == 'sparc64' 67 67 drvs += 'platform/sun4u' 68 68 endif -
uspace/lib/c/arch/riscv64/meson.build
r41408d94 r5f176da 1 # 2 # Copyright (c) 2016 Martin Decky 3 # All rights reserved. 4 # 5 # Redistribution and use in source and binary forms, with or without 6 # modification, are permitted provided that the following conditions 7 # are met: 8 # 9 # - Redistributions of source code must retain the above copyright 10 # notice, this list of conditions and the following disclaimer. 11 # - Redistributions in binary form must reproduce the above copyright 12 # notice, this list of conditions and the following disclaimer in the 13 # documentation and/or other materials provided with the distribution. 14 # - The name of the author may not be used to endorse or promote products 15 # derived from this software without specific prior written permission. 16 # 17 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 # 28 1 29 arch_src += [ autocheck.process('include/libarch/fibril_context.h') ] 2 30 -
uspace/lib/c/meson.build
r41408d94 r5f176da 1 1 # libarch 2 2 arch_src = [] 3 subdir( join_paths('arch', h_arch))3 subdir('arch' / UARCH) 4 4 5 5 c_args = [ '-fno-builtin', '-D_LIBC_SOURCE' ] … … 9 9 incdirs = [ 10 10 'include', 11 'arch' / h_arch/ 'include',12 root_path / 'abi' / 'arch' / h_arch/ 'include',11 'arch' / UARCH / 'include', 12 root_path / 'abi' / 'arch' / UARCH / 'include', 13 13 root_path / 'abi' / 'include', 14 14 ] -
uspace/srv/loader/meson.build
r41408d94 r5f176da 1 1 2 if h_arch== 'ia64'2 if UARCH == 'ia64' 3 3 link_args += [ '-T', meson.current_source_dir() / 'elf64_ia64_loader.x' ] 4 4 else
Note:
See TracChangeset
for help on using the changeset viewer.