Changes in uspace/meson.build [cd981f2a:4d58bac] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/meson.build

    rcd981f2a r4d58bac  
    5858endforeach
    5959
     60if CONFIG_BAREBONE
     61        drv_list = rd_essential_drv
     62else
     63        drv_list = rd_drv
     64endif
     65
    6066foreach drv : drvs
    6167        _basename = run_command(basename, drv, check: true).stdout().strip()
     
    6874
    6975        # Install driver metadata.
    70         if not CONFIG_BAREBONE or rd_essential.contains('drv' / drv)
     76        if drv_list.contains('drv' / drv)
    7177                _src = meson.current_source_dir() / 'drv' / drv / _basename + '.ma'
    7278                _dstdir = 'drv' / _basename
     
    8793        language = 'c'
    8894        installed_data = []
     95        platform_specific = false
    8996
    9097        subdir(appdirs.get('subdir'))
     
    93100        installdir = appdirs.get('installdir')
    94101
    95         install = not CONFIG_BAREBONE or rd_essential.contains(dir)
     102        is_drv = (dir.split('/')[0] == 'drv')
     103
     104        if is_drv
     105                # Drivers are installed based on rd_[essential_]drv list
     106                install = drv_list.contains(dir)
     107        else
     108                #
     109                # Servers and applications are installed all (unless
     110                # platform-specific) or based on rd_essential in case
     111                # of barebone build or platform-specific
     112                #
     113                install = (not CONFIG_BAREBONE and not platform_specific) \
     114                    or rd_essential.contains(dir)
     115        endif
    96116
    97117        if install
     
    129149        # Binaries in the 'drv' subdirectory link libdrv by default.
    130150
    131         is_drv = (dir.split('/')[0] == 'drv')
    132151
    133152        if is_drv
Note: See TracChangeset for help on using the changeset viewer.