Changeset e28175d in mainline for meson/arch/arm64/meson.build


Ignore:
Timestamp:
2020-03-15T10:44:02Z (6 years ago)
Author:
GitHub <noreply@…>
Parents:
b401b33 (diff), 44dde42 (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:
heiducteam <tristanided@…> (2020-03-15 10:44:02)
git-committer:
GitHub <noreply@…> (2020-03-15 10:44:02)
Message:

Merge pull request #1 from HelenOS/master

sync

File:
1 moved

Legend:

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

    rb401b33 re28175d  
    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 BFD_ARCH = aarch64
    39 
    40 BITS = 64
    41 ENDIANESS = LE
    4234
    4335# UEFI binaries should be relocatable, the EFI boot service LoadImage() will
     
    5143# processor is in the execution mode that has unaligned access enabled. The
    5244# -mstrict-align option is therefore not needed.
    53 EXTRA_CFLAGS = -fpic -fvisibility=hidden
    54 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' ]
    5547
    56 ifeq ($(MACHINE), virt)
    57         RD_DRVS_ESSENTIAL += \
    58                 char/pl011 \
    59                 intctl/gicv2 \
    60                 platform/arm64virt
     48
     49if MACHINE == 'virt'
     50        rd_essential += [
     51                'drv/char/pl011',
     52                'drv/intctl/gicv2',
     53                'drv/platform/arm64virt',
     54        ]
    6155endif
    62 
    63 SOURCES = \
    64         arch/$(BARCH)/src/asm.S \
    65         arch/$(BARCH)/src/main.c \
    66         arch/$(BARCH)/src/relocate.c \
    67         $(COMPS).o \
    68         genarch/src/efi.c \
    69         generic/src/gzip.c \
    70         generic/src/inflate.c \
    71         generic/src/kernel.c \
    72         generic/src/memstr.c \
    73         generic/src/payload.c \
    74         generic/src/printf.c \
    75         generic/src/printf_core.c \
    76         generic/src/str.c \
    77         generic/src/tar.c \
    78         generic/src/version.c \
    79         generic/src/vprintf.c
Note: See TracChangeset for help on using the changeset viewer.