|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
#/*
|
|
|
|
|
# * FreeRTOS Kernel <DEVELOPMENT BRANCH>
|
|
|
|
|
# * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
|
|
|
# * Copyright (C) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
|
|
|
# *
|
|
|
|
|
# * SPDX-License-Identifier: MIT
|
|
|
|
|
# *
|
|
|
|
@ -135,12 +135,16 @@ KERNEL_HEADER = [
|
|
|
|
|
' */\n',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FREERTOS_COPYRIGHT_REGEX = r"^(;|#)?( *(\/\*|\*|#|\/\/))? Copyright \(C\) 20\d\d Amazon.com, Inc. or its affiliates. All Rights Reserved\.( \*\/)?$"
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
|
parser = HeaderChecker.configArgParser()
|
|
|
|
|
args = parser.parse_args()
|
|
|
|
|
|
|
|
|
|
# Configure the checks then run
|
|
|
|
|
checker = HeaderChecker(KERNEL_HEADER,
|
|
|
|
|
copyright_regex=FREERTOS_COPYRIGHT_REGEX,
|
|
|
|
|
ignored_files=KERNEL_IGNORED_FILES,
|
|
|
|
|
ignored_ext=KERNEL_IGNORED_EXTENSIONS,
|
|
|
|
|
ignored_patterns=KERNEL_IGNORED_PATTERNS,
|
|
|
|
|