Ignore:
File:
1 edited

Legend:

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

    rc21d4d6 r2944b5a  
    11#
     2# Copyright (c) 2021 Jiri Svoboda
    23# Copyright (c) 2019 Jiří Zárevúcky
    34# All rights reserved.
     
    4142]
    4243
     44arch_kernel_c_args = arch_uspace_c_args + [ '-mno-unaligned-access', '-mfpu=vfpv3' ]
     45arch_kernel_c_args += cc.get_supported_arguments(['-mgeneral-regs-only' ])
     46arch_kernel_link_args = [ '-nostdlib', '-Wl,-z,max-page-size=0x1000' ]
     47
    4348if CONFIG_FPU
    44         # This is necessary for kernel too, to allow vmsr insn and fpexc manipulation.
    45         # Use vfp32 to allow context save/restore of d16-d31 regs.
    46         arch_uspace_c_args += [ '-mfloat-abi=hard' ]
     49    # Need to use softfp because our libgcc.a uses it too
     50    # softfp - generate code with soft-float calling conventions but allow use
     51    # of "hard" float instructions
     52    arch_uspace_c_args += [ '-mfloat-abi=softfp' ]
    4753endif
    48 
    49 arch_kernel_c_args = arch_uspace_c_args + [ '-mno-unaligned-access', '-mfpu=vfpv3' ]
    50 arch_kernel_link_args = [ '-nostdlib', '-Wl,-z,max-page-size=0x1000' ]
    5154arch_uspace_link_args = [ '-nostdlib', '-lgcc', '-Wl,-z,max-page-size=0x1000' ]
    5255
     
    5457arch_boot_link_args = arch_kernel_link_args
    5558
    56 
    57 rd_essential += [
     59rd_essential_drv += [
    5860        'drv/bus/usb/ehci',
    5961        'drv/bus/usb/ohci',
     
    7375
    7476elif MACHINE == 'beagleboardxm' or MACHINE == 'beaglebone'
    75         rd_essential += [
     77        rd_essential_drv += [
    7678                'drv/platform/amdm37x',
    7779                'drv/fb/amdm37x_dispc',
     
    7981
    8082elif MACHINE == 'integratorcp'
    81         rd_essential += [
     83        rd_essential_drv += [
    8284                'drv/char/pl050',
    8385                'drv/hid/atkbd',
     
    8789        ]
    8890endif
     91
     92rd_drv += rd_essential_drv
Note: See TracChangeset for help on using the changeset viewer.