Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 835 Bytes

File metadata and controls

34 lines (28 loc) · 835 Bytes

Read this section if there are some SPDX warnings above. Adding correct SPDX headers to new files can be tricky because:

  • a different SPDX style is expected for .c versus .h files. This is because some .h files are included in linker scripts or assembly code.
  • Some SOF reviewers reject C99 comments starting with //

A trick is to keep the SPDX separate, see solution below.

References:

Start .h files like this:

/* SPDX-License-Identifier: ... */
/*
 * Copyright(c) ...
 *
 * Author: ...
 */

Start .c files like this:

// SPDX-License-Identifier: ...
/*
 * Copyright(c) ...
 *
 * Author: ...
 */