mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 16:19:16 +08:00
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.
This commit is contained in:
parent
4c22b5c1f2
commit
dd60daaaa3
10
builder.py
10
builder.py
@ -210,10 +210,16 @@ def assertHeaderFile(path):
|
|||||||
|
|
||||||
def assertSourceFile(path):
|
def assertSourceFile(path):
|
||||||
if path[-2] != '.' or (path[-1] != 'c' and path[-1] != 'S'):
|
if path[-2] != '.' or (path[-1] != 'c' and path[-1] != 'S'):
|
||||||
print("*** " + path + " does not end in .c")
|
print("*** " + path + " does not end in .c or .S")
|
||||||
print("*** Move it to a header file list")
|
print("*** Move it to a header file list")
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
|
||||||
|
def assertHeaderOrSourceFile(path):
|
||||||
|
if path[-2] != '.' or (path[-1] != 'h' and path[-1] != 'c'):
|
||||||
|
print("*** " + path + " does not end in .h or .c")
|
||||||
|
print("*** Move it to another list")
|
||||||
|
sys.exit(2)
|
||||||
|
|
||||||
def diffSource(dstLines, srcLines, src, dst):
|
def diffSource(dstLines, srcLines, src, dst):
|
||||||
global filesTotal, filesTotalLines, filesTotalInserts, filesTotalDeletes
|
global filesTotal, filesTotalLines, filesTotalInserts, filesTotalDeletes
|
||||||
#
|
#
|
||||||
@ -664,7 +670,7 @@ class Module(object):
|
|||||||
def addKernelSpaceHeaderFiles(self, files):
|
def addKernelSpaceHeaderFiles(self, files):
|
||||||
self.files += self.addFiles(files,
|
self.files += self.addFiles(files,
|
||||||
FreeBSDPathComposer(), FromFreeBSDToRTEMSHeaderConverter(),
|
FreeBSDPathComposer(), FromFreeBSDToRTEMSHeaderConverter(),
|
||||||
FromRTEMSToFreeBSDHeaderConverter(), assertHeaderFile)
|
FromRTEMSToFreeBSDHeaderConverter(), assertHeaderOrSourceFile)
|
||||||
|
|
||||||
def addUserSpaceHeaderFiles(self, files):
|
def addUserSpaceHeaderFiles(self, files):
|
||||||
self.files += self.addFiles(files,
|
self.files += self.addFiles(files,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user