Changeset 3e828ea in mainline for kernel/arch/mips32/meson.build


Ignore:
Timestamp:
2019-09-23T12:49:29Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9be2358
Parents:
9259d20 (diff), 1a4ec93f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiri Svoboda <jiri@…> (2019-09-22 12:49:07)
git-committer:
Jiri Svoboda <jiri@…> (2019-09-23 12:49:29)
Message:

Merge changes from master, especially Meson build

File:
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/meson.build

    r9259d20 r3e828ea  
    11#
    22# Copyright (c) 2005 Martin Decky
    3 # Copyright (c) 2007 Jakub Jermar
    43# All rights reserved.
    54#
     
    2827#
    2928
    30 USPACE_PREFIX = ../..
    31 ROOT_PATH = $(USPACE_PREFIX)/..
    32 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
     29arch_src += files(
     30        'src/start.S',
     31        'src/context.S',
     32        'src/mips32.c',
     33        'src/asm.S',
     34        'src/exception.c',
     35        'src/interrupt.c',
     36        'src/cache.c',
     37        'src/debugger.c',
     38        'src/cpu/cpu.c',
     39        'src/debug/stacktrace.c',
     40        'src/debug/stacktrace_asm.S',
     41        'src/mm/km.c',
     42        'src/mm/frame.c',
     43        'src/mm/page.c',
     44        'src/mm/tlb.c',
     45        'src/mm/as.c',
     46        'src/fpu_context.c',
     47        'src/smc.c',
     48        'src/smp/smp.c',
     49        'src/machine_func.c',
     50)
    3351
    34 include $(CONFIG_MAKEFILE)
     52if MACHINE == 'lmalta' or MACHINE == 'bmalta'
     53        arch_src += files('src/mach/malta/malta.c')
    3554
    36 ifeq ($(UARCH),ia64)
    37         # IA64 has a peculiar linker script with a fixed data segment address.
    38         # Because the loader is a separate nonrelocatable binary in the same
    39         # address space as the application, we provide a modified copy of
    40         # the default linker script to work around that.
    41         EXTRA_LDFLAGS = -T elf64_ia64_loader.x
    42 else
    43         # On all other architectures, we can simply move the text segment.
    44         EXTRA_LDFLAGS = -Wl,-Ttext-segment=0x70000000
     55elif MACHINE == 'msim'
     56        arch_src += files(
     57                'src/mach/msim/msim.c',
     58                'src/mach/msim/dorder.c',
     59        )
     60
    4561endif
    4662
    47 BINARY = loader
    48 STATIC_ONLY = y
    4963
    50 GENERIC_SOURCES = \
    51         main.c
     64_check_headers = [
     65        'include/arch/istate_struct.h',
     66        'include/arch/context_struct.h',
     67        'include/arch/fpu_context_struct.h',
     68]
    5269
    53 SOURCES = \
    54         $(GENERIC_SOURCES) \
    55         $(ARCH_SOURCES)
    56 
    57 include $(USPACE_PREFIX)/Makefile.common
     70foreach h : _check_headers
     71        arch_src += [ autocheck.process(h) ]
     72endforeach
Note: See TracChangeset for help on using the changeset viewer.