Changeset dd60daa in rtems-libbsd


Ignore:
Timestamp:
Aug 9, 2018, 10:59:55 AM (10 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5cb01f277962d3127d364bf871f799b34e6b6be6, 9a4ed64d5acc20cd3488a633bd78cad7d1708081
Children:
100e66f
Parents:
4c22b5c
git-author:
Sebastian Huber <sebastian.huber@…> (08/09/18 10:59:55)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/27/18 05:44:23)
Message:

Allow *.c as kernel space header files

This is a workaround for the FreeBSD kernel space source file

sys/opencrypto/xform.c

which includes a bunch of *.c files.

Update #3472.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • builder.py

    r4c22b5c rdd60daa  
    211211def assertSourceFile(path):
    212212    if path[-2] != '.' or (path[-1] != 'c' and path[-1] != 'S'):
    213         print("*** " + path + " does not end in .c")
     213        print("*** " + path + " does not end in .c or .S")
    214214        print("*** Move it to a header file list")
     215        sys.exit(2)
     216
     217def assertHeaderOrSourceFile(path):
     218    if path[-2] != '.' or (path[-1] != 'h' and path[-1] != 'c'):
     219        print("*** " + path + " does not end in .h or .c")
     220        print("*** Move it to another list")
    215221        sys.exit(2)
    216222
     
    665671        self.files += self.addFiles(files,
    666672                                    FreeBSDPathComposer(), FromFreeBSDToRTEMSHeaderConverter(),
    667                                     FromRTEMSToFreeBSDHeaderConverter(), assertHeaderFile)
     673                                    FromRTEMSToFreeBSDHeaderConverter(), assertHeaderOrSourceFile)
    668674
    669675    def addUserSpaceHeaderFiles(self, files):
Note: See TracChangeset for help on using the changeset viewer.