|
|
@@ -2,19 +2,8 @@
|
|
|
#
|
|
|
# Checks all public headers in IDF in the ci
|
|
|
#
|
|
|
-# Copyright 2020 Espressif Systems (Shanghai) PTE LTD
|
|
|
-#
|
|
|
-# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
-# you may not use this file except in compliance with the License.
|
|
|
-# You may obtain a copy of the License at
|
|
|
-#
|
|
|
-# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
-#
|
|
|
-# Unless required by applicable law or agreed to in writing, software
|
|
|
-# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
-# See the License for the specific language governing permissions and
|
|
|
-# limitations under the License.
|
|
|
+# SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD
|
|
|
+# SPDX-License-Identifier: Apache-2.0
|
|
|
#
|
|
|
|
|
|
from __future__ import print_function, unicode_literals
|
|
|
@@ -213,7 +202,7 @@ class PublicHeaderChecker:
|
|
|
self.log('{}: Error directive failure: OK'.format(header))
|
|
|
return self.COMPILE_ERR_ERROR_MACRO_HDR_OK
|
|
|
self.log('{}: FAILED: compilation issue'.format(header), True)
|
|
|
- self.log(err)
|
|
|
+ self.log(err, True)
|
|
|
return self.COMPILE_ERR_HDR_FAILED
|
|
|
# compile with C compiler, outputs to another temp file
|
|
|
rc, c99_out, err, c99_out_file = exec_cmd_to_temp_file([self.gcc, '--std=c99'] + all_compilation_flags)
|