Changeset 623a641 in rtems-tools


Ignore:
Timestamp:
01/31/18 22:42:59 (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
5, master
Children:
005f995
Parents:
0333442
Message:

rtems-bsp-builder: Add a check for invalid ARCH and BSP names.

If invalid characters are in a BSP or ARCH name generate an error.

Add the missing ',' to the line in the PowerPC BSP configuration.

Location:
tester
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tester/rt/check.py

    r0333442 r623a641  
    11#
    22# RTEMS Tools Project (http://www.rtems.org/)
    3 # Copyright 2016-2017 Chris Johns (chrisj@rtems.org)
     3# Copyright 2016-2018 Chris Johns (chrisj@rtems.org)
    44# All rights reserved.
    55#
     
    936936                profile[bsps] = self.config.comma_list(profile['name'], bsps)
    937937            self.profiles[profile['name']] = profile
     938        invalid_chars = re.compile(r'[^a-zA-Z0-9_-]')
    938939        for a in set(archs):
     940            if len(invalid_chars.findall(a)) != 0:
     941                raise error.general('invalid character(s) in arch name: %s' % (a))
    939942            arch = {}
    940943            arch['excludes'] = {}
     
    950953            arch['bsps'] = self.config.comma_list(a, 'bsps', err = False)
    951954            for b in arch['bsps']:
     955                if len(invalid_chars.findall(b)) != 0:
     956                    raise error.general('invalid character(s) in BSP name: %s' % (b))
    952957                arch[b] = {}
    953958                arch[b]['bspopts'] = \
  • tester/rtems/rtems-bsps-powerpc.ini

    r0333442 r623a641  
    4343       psim,
    4444       qemuppc, qemuprep, qemuprep-altivec,
    45        qoriq_core_0, qoriq_core_1, qoriq_e500, qoriq_e6500_32, qoriq_e6500_64
     45       qoriq_core_0, qoriq_core_1, qoriq_e500, qoriq_e6500_32, qoriq_e6500_64,
    4646       ss555,
    4747       t32mppc,
Note: See TracChangeset for help on using the changeset viewer.