Changeset 63660a3 in mainline for meson.build


Ignore:
Timestamp:
2019-08-17T12:49:43Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
41408d94
Parents:
2c38a55b
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-26 14:31:18)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

shuffle some variables around

File:
1 edited

Legend:

Unmodified
Added
Removed
  • meson.build

    r2c38a55b r63660a3  
    173173)
    174174
    175 if h_arch == 'arm32'
    176         add_project_arguments(
    177                 '-mcpu=' + '-'.join(PROCESSOR.split('_')),
    178                 CONFIG_FPU ? '-mfloat-abi=hard' : [],
    179                 language : [ 'c', 'cpp' ],
    180         )
    181 
    182         add_project_link_arguments(
    183                 '-mcpu=' + '-'.join(PROCESSOR.split('_')),
    184                 CONFIG_FPU ? '-mfloat-abi=hard' : [],
    185                 language : [ 'c', 'cpp' ],
    186         )
    187 
    188 elif h_arch == 'ia32'
    189 # FIXME: enabling -march for uspace makes malloc tests crash. Investigate.
    190 
    191 #       if PROCESSOR == 'core'
    192 #               # FIXME
    193 #               add_project_arguments('-march=prescott', language : [ 'c', 'cpp' ])
    194 #               add_project_link_arguments('-march=prescott', language : [ 'c', 'cpp' ])
    195 #       else
    196 #               add_project_arguments('-march=' + '-'.join(PROCESSOR.split('_')), language : [ 'c', 'cpp' ])
    197 #               add_project_link_arguments('-march=' + '-'.join(PROCESSOR.split('_')), language : [ 'c', 'cpp' ])
    198 #       endif
    199 
    200 elif h_arch == 'mips32'
    201 
    202         if MACHINE == 'msim'
    203                 add_project_arguments('-march=r4000', language : [ 'c', 'cpp' ])
    204                 add_project_link_arguments('-march=r4000', language : [ 'c', 'cpp' ])
    205 
    206         elif MACHINE == 'bmalta'
    207                 add_project_arguments('-march=4kc', language : [ 'c', 'cpp' ])
    208                 add_project_link_arguments('-march=4kc', language : [ 'c', 'cpp' ])
    209 
    210         elif MACHINE == 'lmalta'
    211                 add_project_arguments('-march=4kc', language : [ 'c', 'cpp' ])
    212                 add_project_link_arguments('-march=4kc', language : [ 'c', 'cpp' ])
    213 
    214         else
    215                 error('Unknown machine')
    216 
    217         endif
    218 
    219 elif h_arch == 'ppc32'
    220 
    221         if CONFIG_FPU
    222                 float = '-mhard-float'
    223         else
    224                 float = '-msoft-float'
    225         endif
    226 
    227         add_project_arguments(float, language : [ 'c', 'cpp' ])
    228         add_project_link_arguments(float, language : [ 'c', 'cpp' ])
    229 
    230 endif
    231 
    232175# TODO: enable more warnings
    233176# FIXME: -fno-builtin-strftime works around seemingly spurious format warning.
     
    310253endforeach
    311254
     255# Init binaries.
     256rd_init = [
     257        'app/init',
     258        'srv/bd/rd',
     259        'srv/fs/' + RDFMT,
     260        'srv/loader',
     261        'srv/locsrv',
     262        'srv/logger',
     263        'srv/ns',
     264        'srv/vfs',
     265]
     266
     267# Binaries allowed on the initrd image when CONFIG_BAREBONE is enabled.
     268rd_essential = rd_init + [
     269        'app/bdsh',
     270        'app/getterm',
     271        'app/kio',
     272
     273        'srv/devman',
     274        'srv/fs/locfs',
     275        'srv/hid/input',
     276        'srv/hid/output',
     277        'srv/hid/compositor',
     278        'srv/hid/console',
     279        'srv/klog',
     280
     281        'drv/root/root',
     282        'drv/root/virt',
     283        'drv/fb/kfb',
     284]
     285
     286if CONFIG_FB
     287        rd_essential += [
     288                'app/vlaunch',
     289                'app/vterm',
     290        ]
     291endif
     292
     293
     294## The at-sign
     295#
     296# The `atsign` variable holds the ASCII character representing the at-sign
     297# ('@') used in various $(AS) constructs (e.g. @progbits). On architectures that
     298# don't use '@' for starting a comment, `atsign` is merely '@'. However, on
     299# those that do use it for starting a comment (e.g. arm32), `atsign` must be
     300# defined as the percentile-sign ('%') in the architecture-dependent files.
     301#
     302atsign = '@'
     303
     304## Some architectures need a particular string at the beginning of assembly files.
     305kernel_as_prolog = ''
     306uspace_as_prolog = ''
     307
     308subdir('meson' / 'arch' / h_arch)
     309
    312310subdir('kernel')
    313311subdir('uspace')
     
    351349        'HELENOS_CROSS_PATH' : cc_path,
    352350        'HELENOS_ARCH' : cc_arch,
    353         'HELENOS_CFLAGS' : ' '.join(meson.get_cross_property('c_args')),
    354         'HELENOS_CXXFLAGS' : ' '.join(meson.get_cross_property('cpp_args')),
     351        'HELENOS_CFLAGS' : ' '.join(arch_uspace_c_args),
     352        'HELENOS_CXXFLAGS' : ' '.join(arch_uspace_c_args),
    355353        'HELENOS_CPPFLAGS' : ' '.join(export_cppflags),
    356354        'HELENOS_LDFLAGS' : ' '.join(export_ldflags),
Note: See TracChangeset for help on using the changeset viewer.