Changeset 32b4302 in mainline for meson/arch/arm64/meson.build


Ignore:
Timestamp:
2019-08-18T19:06:02Z (6 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1c39d33b
Parents:
fa70134 (diff), 6c2fac18 (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:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-18 19:06:02)
git-committer:
GitHub <noreply@…> (2019-08-18 19:06:02)
Message:

Merge pull request #174 from le-jzr/meson3

Convert HelenOS build system to Meson

File:
1 moved

Legend:

Unmodified
Added
Removed
  • meson/arch/arm64/meson.build

    rfa70134 r32b4302  
    2727#
    2828
    29 BOOT_OUTPUT = image.boot
    30 POST_OUTPUT = $(ROOT_PATH)/image.iso
    31 POSTBUILD = Makefile.grub
    32 GRUB_LOADER = chainloader
     29arch_uspace_c_args = [ '-D__LE__', '-fno-omit-frame-pointer' ]
     30arch_kernel_c_args = arch_uspace_c_args + [ '-march=armv8-a+nofp+nosimd', '-mgeneral-regs-only' ]
     31arch_kernel_link_args = [ '-nostdlib' ]
     32arch_uspace_link_args = [ '-nostdlib', '-lgcc' ]
    3333
    34 BFD_NAME = elf64-littleaarch64
    35 # Request binary BFD output. The ARM64 port manually prepares the .text
    36 # section to look as a PE file than can be loaded on EFI systems.
    37 BFD_OUTPUT = binary
    38 
    39 BITS = 64
    40 ENDIANESS = LE
    4134
    4235# UEFI binaries should be relocatable, the EFI boot service LoadImage() will
     
    5043# processor is in the execution mode that has unaligned access enabled. The
    5144# -mstrict-align option is therefore not needed.
    52 EXTRA_CFLAGS = -fpic -fvisibility=hidden
    53 EXTRA_LDFLAGS = -Wl,-shared
     45arch_boot_c_args = arch_uspace_c_args + [ '-fpic', '-fvisibility=hidden', '-fno-function-sections' ]
     46arch_boot_link_args = [ '-Wl,-shared', '-Wl,--no-gc-sections' ]
    5447
    55 ifeq ($(MACHINE), virt)
    56         RD_DRVS_ESSENTIAL += \
    57                 char/pl011 \
    58                 intctl/gicv2 \
    59                 platform/arm64virt
     48
     49if MACHINE == 'virt'
     50        rd_essential += [
     51                'drv/char/pl011',
     52                'drv/intctl/gicv2',
     53                'drv/platform/arm64virt',
     54        ]
    6055endif
    61 
    62 SOURCES = \
    63         arch/$(BARCH)/src/asm.S \
    64         arch/$(BARCH)/src/main.c \
    65         arch/$(BARCH)/src/relocate.c \
    66         $(COMPS).o \
    67         genarch/src/efi.c \
    68         generic/src/gzip.c \
    69         generic/src/inflate.c \
    70         generic/src/kernel.c \
    71         generic/src/memstr.c \
    72         generic/src/payload.c \
    73         generic/src/printf.c \
    74         generic/src/printf_core.c \
    75         generic/src/str.c \
    76         generic/src/tar.c \
    77         generic/src/version.c \
    78         generic/src/vprintf.c
Note: See TracChangeset for help on using the changeset viewer.