This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit d5754ec7daec82d6dc970099dcad9c379aca6799
Author: Alin Jerpelea <[email protected]>
AuthorDate: Fri Sep 13 14:21:52 2024 +0200

    libs/libm: migrate to SPDX identifier
    
    Most tools used for compliance and SBOM generation use SPDX identifiers
    This change brings us a step closer to an easy SBOM generation.
    
    Signed-off-by: Alin Jerpelea <[email protected]>
---
 libs/libm/CMakeLists.txt                     |  2 ++
 libs/libm/Makefile                           |  2 ++
 libs/libm/bin/Makefile                       |  2 ++
 libs/libm/kbin/Makefile                      |  2 ++
 libs/libm/libm/CMakeLists.txt                |  2 ++
 libs/libm/libm/Make.defs                     |  2 ++
 libs/libm/libm/__cos.c                       |  3 ++-
 libs/libm/libm/__sin.c                       |  3 ++-
 libs/libm/libm/arm/CMakeLists.txt            |  2 ++
 libs/libm/libm/arm/Make.defs                 |  2 ++
 libs/libm/libm/arm/armv7-m/CMakeLists.txt    |  2 ++
 libs/libm/libm/arm/armv7-m/Make.defs         |  2 ++
 libs/libm/libm/arm/armv7-m/arch_fabsf.c      |  2 ++
 libs/libm/libm/arm/armv7-m/arch_sqrtf.c      |  2 ++
 libs/libm/libm/arm/armv8-m/CMakeLists.txt    |  2 ++
 libs/libm/libm/arm/armv8-m/Make.defs         |  2 ++
 libs/libm/libm/arm/armv8-m/arch_ceil.c       |  3 ++-
 libs/libm/libm/arm/armv8-m/arch_ceilf.c      |  3 ++-
 libs/libm/libm/arm/armv8-m/arch_floor.c      |  3 ++-
 libs/libm/libm/arm/armv8-m/arch_floorf.c     |  3 ++-
 libs/libm/libm/arm/armv8-m/arch_nearbyint.c  |  3 ++-
 libs/libm/libm/arm/armv8-m/arch_nearbyintf.c |  3 ++-
 libs/libm/libm/arm/armv8-m/arch_rint.c       |  3 ++-
 libs/libm/libm/arm/armv8-m/arch_rintf.c      |  3 ++-
 libs/libm/libm/arm/armv8-m/arch_round.c      |  3 ++-
 libs/libm/libm/arm/armv8-m/arch_roundf.c     |  3 ++-
 libs/libm/libm/arm/armv8-m/arch_trunc.c      |  3 ++-
 libs/libm/libm/arm/armv8-m/arch_truncf.c     |  3 ++-
 libs/libm/libm/lib_acos.c                    |  7 +++----
 libs/libm/libm/lib_acosf.c                   |  7 +++----
 libs/libm/libm/lib_acosh.c                   |  2 ++
 libs/libm/libm/lib_acoshf.c                  |  2 ++
 libs/libm/libm/lib_acoshl.c                  |  2 ++
 libs/libm/libm/lib_acosl.c                   |  7 +++----
 libs/libm/libm/lib_asin.c                    |  7 +++----
 libs/libm/libm/lib_asinf.c                   |  7 +++----
 libs/libm/libm/lib_asinh.c                   |  2 ++
 libs/libm/libm/lib_asinhf.c                  |  2 ++
 libs/libm/libm/lib_asinhl.c                  |  2 ++
 libs/libm/libm/lib_asinl.c                   |  7 +++----
 libs/libm/libm/lib_atan.c                    |  7 +++----
 libs/libm/libm/lib_atan2.c                   |  7 +++----
 libs/libm/libm/lib_atan2f.c                  |  7 +++----
 libs/libm/libm/lib_atan2l.c                  |  7 +++----
 libs/libm/libm/lib_atanf.c                   |  7 +++----
 libs/libm/libm/lib_atanh.c                   |  2 ++
 libs/libm/libm/lib_atanhf.c                  |  2 ++
 libs/libm/libm/lib_atanhl.c                  |  2 ++
 libs/libm/libm/lib_atanl.c                   |  7 +++----
 libs/libm/libm/lib_cbrt.c                    |  4 +++-
 libs/libm/libm/lib_ceil.c                    |  7 +++----
 libs/libm/libm/lib_ceilf.c                   |  7 +++----
 libs/libm/libm/lib_ceill.c                   |  7 +++----
 libs/libm/libm/lib_copysign.c                |  2 ++
 libs/libm/libm/lib_copysignf.c               |  3 ++-
 libs/libm/libm/lib_copysignl.c               |  2 ++
 libs/libm/libm/lib_cos.c                     |  7 +++----
 libs/libm/libm/lib_cosf.c                    |  7 +++----
 libs/libm/libm/lib_cosh.c                    |  7 +++----
 libs/libm/libm/lib_coshf.c                   |  7 +++----
 libs/libm/libm/lib_coshl.c                   |  7 +++----
 libs/libm/libm/lib_cosl.c                    |  7 +++----
 libs/libm/libm/lib_erf.c                     |  2 ++
 libs/libm/libm/lib_erfc.c                    |  2 ++
 libs/libm/libm/lib_erfcf.c                   |  2 ++
 libs/libm/libm/lib_erfcl.c                   |  2 ++
 libs/libm/libm/lib_erff.c                    |  2 ++
 libs/libm/libm/lib_erfl.c                    |  2 ++
 libs/libm/libm/lib_exp.c                     |  7 +++----
 libs/libm/libm/lib_expf.c                    |  7 +++----
 libs/libm/libm/lib_expl.c                    |  7 +++----
 libs/libm/libm/lib_expm1.c                   |  2 ++
 libs/libm/libm/lib_expm1f.c                  |  2 ++
 libs/libm/libm/lib_expm1l.c                  |  2 ++
 libs/libm/libm/lib_fabs.c                    |  7 +++----
 libs/libm/libm/lib_fabsf.c                   |  7 +++----
 libs/libm/libm/lib_fabsl.c                   |  7 +++----
 libs/libm/libm/lib_floor.c                   |  7 +++----
 libs/libm/libm/lib_floorf.c                  |  7 +++----
 libs/libm/libm/lib_floorl.c                  |  7 +++----
 libs/libm/libm/lib_fmax.c                    |  2 ++
 libs/libm/libm/lib_fmaxf.c                   |  2 ++
 libs/libm/libm/lib_fmaxl.c                   |  2 ++
 libs/libm/libm/lib_fmin.c                    |  2 ++
 libs/libm/libm/lib_fminf.c                   |  2 ++
 libs/libm/libm/lib_fminl.c                   |  2 ++
 libs/libm/libm/lib_fmod.c                    |  7 +++----
 libs/libm/libm/lib_fmodf.c                   |  7 +++----
 libs/libm/libm/lib_fmodl.c                   |  7 +++----
 libs/libm/libm/lib_frexp.c                   |  7 +++----
 libs/libm/libm/lib_frexpf.c                  |  7 +++----
 libs/libm/libm/lib_frexpl.c                  |  7 +++----
 libs/libm/libm/lib_gamma.c                   |  3 ++-
 libs/libm/libm/lib_ldexp.c                   |  7 +++----
 libs/libm/libm/lib_ldexpf.c                  |  7 +++----
 libs/libm/libm/lib_ldexpl.c                  |  7 +++----
 libs/libm/libm/lib_lgamma.c                  |  3 ++-
 libs/libm/libm/lib_libexpi.c                 |  7 +++----
 libs/libm/libm/lib_libexpif.c                |  7 +++----
 libs/libm/libm/lib_libsqrtapprox.c           |  7 +++----
 libs/libm/libm/lib_llround.c                 |  2 ++
 libs/libm/libm/lib_llroundf.c                |  2 ++
 libs/libm/libm/lib_llroundl.c                |  2 ++
 libs/libm/libm/lib_log.c                     |  7 +++----
 libs/libm/libm/lib_log10.c                   |  7 +++----
 libs/libm/libm/lib_log10f.c                  |  7 +++----
 libs/libm/libm/lib_log10l.c                  |  7 +++----
 libs/libm/libm/lib_log2.c                    |  7 +++----
 libs/libm/libm/lib_log2f.c                   |  7 +++----
 libs/libm/libm/lib_log2l.c                   |  7 +++----
 libs/libm/libm/lib_logf.c                    |  7 +++----
 libs/libm/libm/lib_logl.c                    |  7 +++----
 libs/libm/libm/lib_lround.c                  |  2 ++
 libs/libm/libm/lib_lroundf.c                 |  2 ++
 libs/libm/libm/lib_lroundl.c                 |  2 ++
 libs/libm/libm/lib_modf.c                    |  7 +++----
 libs/libm/libm/lib_modff.c                   |  7 +++----
 libs/libm/libm/lib_modfl.c                   |  7 +++----
 libs/libm/libm/lib_nan.c                     |  2 ++
 libs/libm/libm/lib_nanf.c                    |  2 ++
 libs/libm/libm/lib_nanl.c                    |  2 ++
 libs/libm/libm/lib_pow.c                     |  7 +++----
 libs/libm/libm/lib_powf.c                    |  7 +++----
 libs/libm/libm/lib_powl.c                    |  7 +++----
 libs/libm/libm/lib_rint.c                    |  2 ++
 libs/libm/libm/lib_rintf.c                   |  2 ++
 libs/libm/libm/lib_rintl.c                   |  2 ++
 libs/libm/libm/lib_round.c                   |  2 ++
 libs/libm/libm/lib_roundf.c                  |  2 ++
 libs/libm/libm/lib_roundl.c                  |  2 ++
 libs/libm/libm/lib_sin.c                     |  7 +++----
 libs/libm/libm/lib_sincos.c                  |  2 ++
 libs/libm/libm/lib_sincosf.c                 |  2 ++
 libs/libm/libm/lib_sincosl.c                 |  2 ++
 libs/libm/libm/lib_sinf.c                    |  7 +++----
 libs/libm/libm/lib_sinh.c                    |  7 +++----
 libs/libm/libm/lib_sinhf.c                   |  7 +++----
 libs/libm/libm/lib_sinhl.c                   |  7 +++----
 libs/libm/libm/lib_sinl.c                    |  7 +++----
 libs/libm/libm/lib_sqrt.c                    |  7 +++----
 libs/libm/libm/lib_sqrtf.c                   |  7 +++----
 libs/libm/libm/lib_sqrtl.c                   |  7 +++----
 libs/libm/libm/lib_tan.c                     |  7 +++----
 libs/libm/libm/lib_tanf.c                    |  7 +++----
 libs/libm/libm/lib_tanh.c                    |  7 +++----
 libs/libm/libm/lib_tanhf.c                   |  7 +++----
 libs/libm/libm/lib_tanhl.c                   |  7 +++----
 libs/libm/libm/lib_tanl.c                    |  7 +++----
 libs/libm/libm/lib_trunc.c                   |  2 ++
 libs/libm/libm/lib_truncf.c                  |  2 ++
 libs/libm/libm/lib_truncl.c                  |  2 ++
 libs/libm/libm/libm.h                        |  2 ++
 libs/libm/libmcs/Make.defs                   |  2 ++
 libs/libm/newlib/CMakeLists.txt              |  2 ++
 libs/libm/newlib/Make.defs                   |  2 ++
 libs/libm/newlib/include/complex.h           |  2 ++
 libs/libm/newlib/include/ieeefp.h            |  2 ++
 libs/libm/newlib/include/machine/ieeefp.h    |  2 ++
 libs/libm/newlib/include/math.h              |  2 ++
 libs/libm/newlib/include/tgmath.h            | 11 ++++++-----
 libs/libm/newlib/sincosl.c                   |  2 ++
 libs/libm/openlibm/Make.defs                 |  2 ++
 162 files changed, 401 insertions(+), 311 deletions(-)

diff --git a/libs/libm/CMakeLists.txt b/libs/libm/CMakeLists.txt
index 2568ce3f65..211f080e8f 100644
--- a/libs/libm/CMakeLists.txt
+++ b/libs/libm/CMakeLists.txt
@@ -1,6 +1,8 @@
 # 
##############################################################################
 # libs/libm/CMakeLists.txt
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
 # license agreements.  See the NOTICE file distributed with this work for
 # additional information regarding copyright ownership.  The ASF licenses this
diff --git a/libs/libm/Makefile b/libs/libm/Makefile
index ed20d5baf1..f3dd77d6fe 100644
--- a/libs/libm/Makefile
+++ b/libs/libm/Makefile
@@ -1,6 +1,8 @@
 ############################################################################
 # libs/libm/Makefile
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/bin/Makefile b/libs/libm/bin/Makefile
index 2700e42298..db15a994aa 100644
--- a/libs/libm/bin/Makefile
+++ b/libs/libm/bin/Makefile
@@ -1,6 +1,8 @@
 ############################################################################
 # libs/libm/bin/Makefile
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/kbin/Makefile b/libs/libm/kbin/Makefile
index 4e2655b352..ce9d1532ee 100644
--- a/libs/libm/kbin/Makefile
+++ b/libs/libm/kbin/Makefile
@@ -1,6 +1,8 @@
 ############################################################################
 # libs/libm/kbin/Makefile
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/CMakeLists.txt b/libs/libm/libm/CMakeLists.txt
index c0f26965db..72a23c433f 100644
--- a/libs/libm/libm/CMakeLists.txt
+++ b/libs/libm/libm/CMakeLists.txt
@@ -1,6 +1,8 @@
 # 
##############################################################################
 # libs/libm/libm/CMakeLists.txt
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
 # license agreements.  See the NOTICE file distributed with this work for
 # additional information regarding copyright ownership.  The ASF licenses this
diff --git a/libs/libm/libm/Make.defs b/libs/libm/libm/Make.defs
index 95410afa59..f42211a202 100644
--- a/libs/libm/libm/Make.defs
+++ b/libs/libm/libm/Make.defs
@@ -1,6 +1,8 @@
 ############################################################################
 # libs/libm/libm/Make.defs
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/__cos.c b/libs/libm/libm/__cos.c
index 9e6e77fce0..1a59752d0c 100644
--- a/libs/libm/libm/__cos.c
+++ b/libs/libm/libm/__cos.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/__cos.c
  *
- *   Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (C) 1993 by Sun Microsystems, Inc.
  *
  *   Developed at SunSoft, a Sun Microsystems, Inc. business.
  *   Permission to use, copy, modify, and distribute this
diff --git a/libs/libm/libm/__sin.c b/libs/libm/libm/__sin.c
index 4954623419..fd9af09e63 100644
--- a/libs/libm/libm/__sin.c
+++ b/libs/libm/libm/__sin.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/__sin.c
  *
- *   Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (C) 1993 by Sun Microsystems, Inc.
  *
  *   Developed at SunSoft, a Sun Microsystems, Inc. business.
  *   Permission to use, copy, modify, and distribute this
diff --git a/libs/libm/libm/arm/CMakeLists.txt 
b/libs/libm/libm/arm/CMakeLists.txt
index cf5ec49e22..82e2622a5c 100644
--- a/libs/libm/libm/arm/CMakeLists.txt
+++ b/libs/libm/libm/arm/CMakeLists.txt
@@ -1,6 +1,8 @@
 # 
##############################################################################
 # libs/libm/libm/arm/CMakeLists.txt
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
 # license agreements.  See the NOTICE file distributed with this work for
 # additional information regarding copyright ownership.  The ASF licenses this
diff --git a/libs/libm/libm/arm/Make.defs b/libs/libm/libm/arm/Make.defs
index aaf17eacb4..e9eec74ae5 100644
--- a/libs/libm/libm/arm/Make.defs
+++ b/libs/libm/libm/arm/Make.defs
@@ -1,6 +1,8 @@
 ############################################################################
 # libs/libm/libm/arm/Make.defs
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/arm/armv7-m/CMakeLists.txt 
b/libs/libm/libm/arm/armv7-m/CMakeLists.txt
index d1f5cf5b00..a946ca9f3f 100644
--- a/libs/libm/libm/arm/armv7-m/CMakeLists.txt
+++ b/libs/libm/libm/arm/armv7-m/CMakeLists.txt
@@ -1,6 +1,8 @@
 # 
##############################################################################
 # libs/libm/libm/arm/armv7-m/CMakeLists.txt
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
 # license agreements.  See the NOTICE file distributed with this work for
 # additional information regarding copyright ownership.  The ASF licenses this
diff --git a/libs/libm/libm/arm/armv7-m/Make.defs 
b/libs/libm/libm/arm/armv7-m/Make.defs
index 27f429a547..413f609378 100644
--- a/libs/libm/libm/arm/armv7-m/Make.defs
+++ b/libs/libm/libm/arm/armv7-m/Make.defs
@@ -1,6 +1,8 @@
 ############################################################################
 # libs/libm/libm/arm/armv7-m/Make.defs
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/arm/armv7-m/arch_fabsf.c 
b/libs/libm/libm/arm/armv7-m/arch_fabsf.c
index f0ce23e043..1a073fe4a5 100644
--- a/libs/libm/libm/arm/armv7-m/arch_fabsf.c
+++ b/libs/libm/libm/arm/armv7-m/arch_fabsf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv7-m/arch_fabsf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/arm/armv7-m/arch_sqrtf.c 
b/libs/libm/libm/arm/armv7-m/arch_sqrtf.c
index d29441967b..76ae80a40a 100644
--- a/libs/libm/libm/arm/armv7-m/arch_sqrtf.c
+++ b/libs/libm/libm/arm/armv7-m/arch_sqrtf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv7-m/arch_sqrtf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/arm/armv8-m/CMakeLists.txt 
b/libs/libm/libm/arm/armv8-m/CMakeLists.txt
index 6eafa9c5b3..e5c9dca983 100644
--- a/libs/libm/libm/arm/armv8-m/CMakeLists.txt
+++ b/libs/libm/libm/arm/armv8-m/CMakeLists.txt
@@ -1,6 +1,8 @@
 # 
##############################################################################
 # libs/libm/libm/arm/armv8-m/CMakeLists.txt
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
 # license agreements.  See the NOTICE file distributed with this work for
 # additional information regarding copyright ownership.  The ASF licenses this
diff --git a/libs/libm/libm/arm/armv8-m/Make.defs 
b/libs/libm/libm/arm/armv8-m/Make.defs
index 379b0682f7..20e83ff9a2 100644
--- a/libs/libm/libm/arm/armv8-m/Make.defs
+++ b/libs/libm/libm/arm/armv8-m/Make.defs
@@ -1,6 +1,8 @@
 ############################################################################
 # libs/libm/libm/arm/armv8-m/Make.defs
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/arm/armv8-m/arch_ceil.c 
b/libs/libm/libm/arm/armv8-m/arch_ceil.c
index 6b5f95ec32..8d49992171 100644
--- a/libs/libm/libm/arm/armv8-m/arch_ceil.c
+++ b/libs/libm/libm/arm/armv8-m/arch_ceil.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv8-m/arch_ceil.c
  *
- *   Copyright (c) 2011, 2012 ARM Ltd.  All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (c) 2011, 2012 ARM Ltd.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
diff --git a/libs/libm/libm/arm/armv8-m/arch_ceilf.c 
b/libs/libm/libm/arm/armv8-m/arch_ceilf.c
index 5477e92c92..a471211a4a 100644
--- a/libs/libm/libm/arm/armv8-m/arch_ceilf.c
+++ b/libs/libm/libm/arm/armv8-m/arch_ceilf.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv8-m/arch_ceilf.c
  *
- *   Copyright (c) 2011, 2012 ARM Ltd.  All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (c) 2011, 2012 ARM Ltd.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
diff --git a/libs/libm/libm/arm/armv8-m/arch_floor.c 
b/libs/libm/libm/arm/armv8-m/arch_floor.c
index f2f8a9f893..17455dd45e 100644
--- a/libs/libm/libm/arm/armv8-m/arch_floor.c
+++ b/libs/libm/libm/arm/armv8-m/arch_floor.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv8-m/arch_floor.c
  *
- *   Copyright (c) 2011, 2012 ARM Ltd.  All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (c) 2011, 2012 ARM Ltd.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
diff --git a/libs/libm/libm/arm/armv8-m/arch_floorf.c 
b/libs/libm/libm/arm/armv8-m/arch_floorf.c
index f85bbd2aa2..1ee78368ee 100644
--- a/libs/libm/libm/arm/armv8-m/arch_floorf.c
+++ b/libs/libm/libm/arm/armv8-m/arch_floorf.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv8-m/arch_floorf.c
  *
- *   Copyright (c) 2011, 2012 ARM Ltd.  All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (c) 2011, 2012 ARM Ltd.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
diff --git a/libs/libm/libm/arm/armv8-m/arch_nearbyint.c 
b/libs/libm/libm/arm/armv8-m/arch_nearbyint.c
index 242bf8d2fa..ae52916380 100644
--- a/libs/libm/libm/arm/armv8-m/arch_nearbyint.c
+++ b/libs/libm/libm/arm/armv8-m/arch_nearbyint.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv8-m/arch_nearbyint.c
  *
- *   Copyright (c) 2011, 2012 ARM Ltd.  All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (c) 2011, 2012 ARM Ltd.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
diff --git a/libs/libm/libm/arm/armv8-m/arch_nearbyintf.c 
b/libs/libm/libm/arm/armv8-m/arch_nearbyintf.c
index a0715041d8..f6b36b3878 100644
--- a/libs/libm/libm/arm/armv8-m/arch_nearbyintf.c
+++ b/libs/libm/libm/arm/armv8-m/arch_nearbyintf.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv8-m/arch_nearbyintf.c
  *
- *   Copyright (c) 2011, 2012 ARM Ltd.  All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (c) 2011, 2012 ARM Ltd.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
diff --git a/libs/libm/libm/arm/armv8-m/arch_rint.c 
b/libs/libm/libm/arm/armv8-m/arch_rint.c
index 2ce874d29d..2918f02926 100644
--- a/libs/libm/libm/arm/armv8-m/arch_rint.c
+++ b/libs/libm/libm/arm/armv8-m/arch_rint.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv8-m/arch_rint.c
  *
- *   Copyright (c) 2011, 2012 ARM Ltd.  All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (c) 2011, 2012 ARM Ltd.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
diff --git a/libs/libm/libm/arm/armv8-m/arch_rintf.c 
b/libs/libm/libm/arm/armv8-m/arch_rintf.c
index 3307f7f22e..cfab0c31dd 100644
--- a/libs/libm/libm/arm/armv8-m/arch_rintf.c
+++ b/libs/libm/libm/arm/armv8-m/arch_rintf.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv8-m/arch_rintf.c
  *
- *   Copyright (c) 2011, 2012 ARM Ltd.  All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (c) 2011, 2012 ARM Ltd.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
diff --git a/libs/libm/libm/arm/armv8-m/arch_round.c 
b/libs/libm/libm/arm/armv8-m/arch_round.c
index f0a754f27b..630fb3c76a 100644
--- a/libs/libm/libm/arm/armv8-m/arch_round.c
+++ b/libs/libm/libm/arm/armv8-m/arch_round.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv8-m/arch_round.c
  *
- *   Copyright (c) 2011, 2012 ARM Ltd.  All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (c) 2011, 2012 ARM Ltd.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
diff --git a/libs/libm/libm/arm/armv8-m/arch_roundf.c 
b/libs/libm/libm/arm/armv8-m/arch_roundf.c
index 2d03d6bf71..487533317e 100644
--- a/libs/libm/libm/arm/armv8-m/arch_roundf.c
+++ b/libs/libm/libm/arm/armv8-m/arch_roundf.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv8-m/arch_roundf.c
  *
- *   Copyright (c) 2011, 2012 ARM Ltd.  All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (c) 2011, 2012 ARM Ltd.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
diff --git a/libs/libm/libm/arm/armv8-m/arch_trunc.c 
b/libs/libm/libm/arm/armv8-m/arch_trunc.c
index e3b8d0fd53..da3bb544ef 100644
--- a/libs/libm/libm/arm/armv8-m/arch_trunc.c
+++ b/libs/libm/libm/arm/armv8-m/arch_trunc.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv8-m/arch_trunc.c
  *
- *   Copyright (c) 2011, 2012 ARM Ltd.  All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (c) 2011, 2012 ARM Ltd.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
diff --git a/libs/libm/libm/arm/armv8-m/arch_truncf.c 
b/libs/libm/libm/arm/armv8-m/arch_truncf.c
index 46b976ee8f..f869c31d10 100644
--- a/libs/libm/libm/arm/armv8-m/arch_truncf.c
+++ b/libs/libm/libm/arm/armv8-m/arch_truncf.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/arm/armv8-m/arch_truncf.c
  *
- *   Copyright (c) 2011, 2012 ARM Ltd.  All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (c) 2011, 2012 ARM Ltd.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
diff --git a/libs/libm/libm/lib_acos.c b/libs/libm/libm/lib_acos.c
index 3d39198b11..8e312b9d4d 100644
--- a/libs/libm/libm/lib_acos.c
+++ b/libs/libm/libm/lib_acos.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_acos.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_acosf.c b/libs/libm/libm/lib_acosf.c
index 48de567ba5..4d3dc30ecd 100644
--- a/libs/libm/libm/lib_acosf.c
+++ b/libs/libm/libm/lib_acosf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_acosf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_acosh.c b/libs/libm/libm/lib_acosh.c
index 7f2bb9f952..cc4bddf015 100644
--- a/libs/libm/libm/lib_acosh.c
+++ b/libs/libm/libm/lib_acosh.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_acosh.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_acoshf.c b/libs/libm/libm/lib_acoshf.c
index cf4089b8c3..2e6da7840e 100644
--- a/libs/libm/libm/lib_acoshf.c
+++ b/libs/libm/libm/lib_acoshf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_acoshf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_acoshl.c b/libs/libm/libm/lib_acoshl.c
index e40b22c49d..46f086d76f 100644
--- a/libs/libm/libm/lib_acoshl.c
+++ b/libs/libm/libm/lib_acoshl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_acoshl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_acosl.c b/libs/libm/libm/lib_acosl.c
index f0a273cd29..fc7ad4bd1f 100644
--- a/libs/libm/libm/lib_acosl.c
+++ b/libs/libm/libm/lib_acosl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_acosl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_asin.c b/libs/libm/libm/lib_asin.c
index 668ec8af0e..9539a41e9c 100644
--- a/libs/libm/libm/lib_asin.c
+++ b/libs/libm/libm/lib_asin.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_asin.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012, 2015-2016 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2015-2016 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_asinf.c b/libs/libm/libm/lib_asinf.c
index a529db23fb..4cc1ed646e 100644
--- a/libs/libm/libm/lib_asinf.c
+++ b/libs/libm/libm/lib_asinf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_asinf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012, 2016 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_asinh.c b/libs/libm/libm/lib_asinh.c
index ccdeb85a3c..a319893c1c 100644
--- a/libs/libm/libm/lib_asinh.c
+++ b/libs/libm/libm/lib_asinh.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_asinh.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_asinhf.c b/libs/libm/libm/lib_asinhf.c
index 0ee95aa3e0..9c972100f1 100644
--- a/libs/libm/libm/lib_asinhf.c
+++ b/libs/libm/libm/lib_asinhf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_asinhf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_asinhl.c b/libs/libm/libm/lib_asinhl.c
index abfd5c0303..d4f3a444a4 100644
--- a/libs/libm/libm/lib_asinhl.c
+++ b/libs/libm/libm/lib_asinhl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_asinhl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_asinl.c b/libs/libm/libm/lib_asinl.c
index bf91fdec5b..14dbe50fee 100644
--- a/libs/libm/libm/lib_asinl.c
+++ b/libs/libm/libm/lib_asinl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_asinl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012, 2016 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_atan.c b/libs/libm/libm/lib_atan.c
index 2c02c0f84e..1265a3952b 100644
--- a/libs/libm/libm/lib_atan.c
+++ b/libs/libm/libm/lib_atan.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_atan.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_atan2.c b/libs/libm/libm/lib_atan2.c
index 93efbfe51a..0596bb6cb7 100644
--- a/libs/libm/libm/lib_atan2.c
+++ b/libs/libm/libm/lib_atan2.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_atan2.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_atan2f.c b/libs/libm/libm/lib_atan2f.c
index b8d46f8c2c..49567644c1 100644
--- a/libs/libm/libm/lib_atan2f.c
+++ b/libs/libm/libm/lib_atan2f.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_atan2f.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_atan2l.c b/libs/libm/libm/lib_atan2l.c
index 17a9bff267..b8778df4b8 100644
--- a/libs/libm/libm/lib_atan2l.c
+++ b/libs/libm/libm/lib_atan2l.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_atan2l.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_atanf.c b/libs/libm/libm/lib_atanf.c
index 505063e06b..08547152c4 100644
--- a/libs/libm/libm/lib_atanf.c
+++ b/libs/libm/libm/lib_atanf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_atanf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_atanh.c b/libs/libm/libm/lib_atanh.c
index 47959da6c5..ef4cddfa31 100644
--- a/libs/libm/libm/lib_atanh.c
+++ b/libs/libm/libm/lib_atanh.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_atanh.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_atanhf.c b/libs/libm/libm/lib_atanhf.c
index b440bf6096..c021459535 100644
--- a/libs/libm/libm/lib_atanhf.c
+++ b/libs/libm/libm/lib_atanhf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_atanhf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_atanhl.c b/libs/libm/libm/lib_atanhl.c
index 2b2addb103..8e456d34a8 100644
--- a/libs/libm/libm/lib_atanhl.c
+++ b/libs/libm/libm/lib_atanhl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_atanhl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_atanl.c b/libs/libm/libm/lib_atanl.c
index 73932e5bc6..1067d6e229 100644
--- a/libs/libm/libm/lib_atanl.c
+++ b/libs/libm/libm/lib_atanl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_atanl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_cbrt.c b/libs/libm/libm/lib_cbrt.c
index 6fc820a685..264aec9ee4 100644
--- a/libs/libm/libm/lib_cbrt.c
+++ b/libs/libm/libm/lib_cbrt.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_cbrt.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
@@ -52,4 +54,4 @@ double cbrt(double x)
     }
 }
 
-#endif
\ No newline at end of file
+#endif
diff --git a/libs/libm/libm/lib_ceil.c b/libs/libm/libm/lib_ceil.c
index c719ce28af..2fdd5e1b4c 100644
--- a/libs/libm/libm/lib_ceil.c
+++ b/libs/libm/libm/lib_ceil.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_ceil.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_ceilf.c b/libs/libm/libm/lib_ceilf.c
index 7acfc278bc..89db8575d2 100644
--- a/libs/libm/libm/lib_ceilf.c
+++ b/libs/libm/libm/lib_ceilf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_ceilf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_ceill.c b/libs/libm/libm/lib_ceill.c
index 77e24387af..5f4f5fac59 100644
--- a/libs/libm/libm/lib_ceill.c
+++ b/libs/libm/libm/lib_ceill.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_ceill.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_copysign.c b/libs/libm/libm/lib_copysign.c
index 171b476aaa..3fd09430a4 100644
--- a/libs/libm/libm/lib_copysign.c
+++ b/libs/libm/libm/lib_copysign.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_copysign.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_copysignf.c b/libs/libm/libm/lib_copysignf.c
index b28aab55eb..2b521da0f8 100644
--- a/libs/libm/libm/lib_copysignf.c
+++ b/libs/libm/libm/lib_copysignf.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_copysignf.c
  *
- *   Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (C) 1993 by Sun Microsystems, Inc.
  *
  *   Developed at SunPro, a Sun Microsystems, Inc. business.
  *   Permission to use, copy, modify, and distribute this
diff --git a/libs/libm/libm/lib_copysignl.c b/libs/libm/libm/lib_copysignl.c
index 824403904d..4b411f2b21 100644
--- a/libs/libm/libm/lib_copysignl.c
+++ b/libs/libm/libm/lib_copysignl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_copysignl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_cos.c b/libs/libm/libm/lib_cos.c
index 8f5ab0addb..b7a1f36658 100644
--- a/libs/libm/libm/lib_cos.c
+++ b/libs/libm/libm/lib_cos.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_cos.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_cosf.c b/libs/libm/libm/lib_cosf.c
index b53be8befd..a7b19ff6fa 100644
--- a/libs/libm/libm/lib_cosf.c
+++ b/libs/libm/libm/lib_cosf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_cosf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_cosh.c b/libs/libm/libm/lib_cosh.c
index cd23cea4eb..324c955476 100644
--- a/libs/libm/libm/lib_cosh.c
+++ b/libs/libm/libm/lib_cosh.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_cosh.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_coshf.c b/libs/libm/libm/lib_coshf.c
index bbc128323b..4d5868794d 100644
--- a/libs/libm/libm/lib_coshf.c
+++ b/libs/libm/libm/lib_coshf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_coshf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_coshl.c b/libs/libm/libm/lib_coshl.c
index 73a597de13..df8aa692f0 100644
--- a/libs/libm/libm/lib_coshl.c
+++ b/libs/libm/libm/lib_coshl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_coshl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_cosl.c b/libs/libm/libm/lib_cosl.c
index 33249fb011..f21a43c44f 100644
--- a/libs/libm/libm/lib_cosl.c
+++ b/libs/libm/libm/lib_cosl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_cosl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_erf.c b/libs/libm/libm/lib_erf.c
index 83609c02be..0cce45cda5 100644
--- a/libs/libm/libm/lib_erf.c
+++ b/libs/libm/libm/lib_erf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_erf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_erfc.c b/libs/libm/libm/lib_erfc.c
index 337da5a0f0..1eaa691c9c 100644
--- a/libs/libm/libm/lib_erfc.c
+++ b/libs/libm/libm/lib_erfc.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_erfc.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_erfcf.c b/libs/libm/libm/lib_erfcf.c
index 3a9d2041bf..f76233cee0 100644
--- a/libs/libm/libm/lib_erfcf.c
+++ b/libs/libm/libm/lib_erfcf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_erfcf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_erfcl.c b/libs/libm/libm/lib_erfcl.c
index c096d583c9..9911c001ef 100644
--- a/libs/libm/libm/lib_erfcl.c
+++ b/libs/libm/libm/lib_erfcl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_erfcl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_erff.c b/libs/libm/libm/lib_erff.c
index d0eeb851c6..4e747fd530 100644
--- a/libs/libm/libm/lib_erff.c
+++ b/libs/libm/libm/lib_erff.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_erff.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_erfl.c b/libs/libm/libm/lib_erfl.c
index 856b094a78..61bfe80994 100644
--- a/libs/libm/libm/lib_erfl.c
+++ b/libs/libm/libm/lib_erfl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_erfl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_exp.c b/libs/libm/libm/lib_exp.c
index 6cee39feed..d5c6d3eee0 100644
--- a/libs/libm/libm/lib_exp.c
+++ b/libs/libm/libm/lib_exp.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_exp.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_expf.c b/libs/libm/libm/lib_expf.c
index 8222c397c3..fbc2d4ffec 100644
--- a/libs/libm/libm/lib_expf.c
+++ b/libs/libm/libm/lib_expf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_expf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_expl.c b/libs/libm/libm/lib_expl.c
index 0e244876db..6b3268a2e6 100644
--- a/libs/libm/libm/lib_expl.c
+++ b/libs/libm/libm/lib_expl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_expl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_expm1.c b/libs/libm/libm/lib_expm1.c
index 502cd52f33..75689283f3 100644
--- a/libs/libm/libm/lib_expm1.c
+++ b/libs/libm/libm/lib_expm1.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_expm1.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_expm1f.c b/libs/libm/libm/lib_expm1f.c
index 80b667538c..3f6c20c596 100644
--- a/libs/libm/libm/lib_expm1f.c
+++ b/libs/libm/libm/lib_expm1f.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_expm1f.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_expm1l.c b/libs/libm/libm/lib_expm1l.c
index 43f6a93e4c..163e1659d2 100644
--- a/libs/libm/libm/lib_expm1l.c
+++ b/libs/libm/libm/lib_expm1l.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_expm1l.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_fabs.c b/libs/libm/libm/lib_fabs.c
index 07fd854f44..02b1981021 100644
--- a/libs/libm/libm/lib_fabs.c
+++ b/libs/libm/libm/lib_fabs.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_fabs.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_fabsf.c b/libs/libm/libm/lib_fabsf.c
index 36557fc7eb..5182213cce 100644
--- a/libs/libm/libm/lib_fabsf.c
+++ b/libs/libm/libm/lib_fabsf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_fabsf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_fabsl.c b/libs/libm/libm/lib_fabsl.c
index 6b81524927..e7ab05607b 100644
--- a/libs/libm/libm/lib_fabsl.c
+++ b/libs/libm/libm/lib_fabsl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_fabsl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_floor.c b/libs/libm/libm/lib_floor.c
index 5d85486358..14ef9a1a73 100644
--- a/libs/libm/libm/lib_floor.c
+++ b/libs/libm/libm/lib_floor.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_floor.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_floorf.c b/libs/libm/libm/lib_floorf.c
index ea289d80fb..ad105bb7dd 100644
--- a/libs/libm/libm/lib_floorf.c
+++ b/libs/libm/libm/lib_floorf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_floorf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_floorl.c b/libs/libm/libm/lib_floorl.c
index d6ac747b66..f31bd917bc 100644
--- a/libs/libm/libm/lib_floorl.c
+++ b/libs/libm/libm/lib_floorl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_floorl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_fmax.c b/libs/libm/libm/lib_fmax.c
index a67750c1e8..766be8a167 100644
--- a/libs/libm/libm/lib_fmax.c
+++ b/libs/libm/libm/lib_fmax.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_fmax.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_fmaxf.c b/libs/libm/libm/lib_fmaxf.c
index 6aeb757ad6..5891d2333b 100644
--- a/libs/libm/libm/lib_fmaxf.c
+++ b/libs/libm/libm/lib_fmaxf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_fmaxf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_fmaxl.c b/libs/libm/libm/lib_fmaxl.c
index 76353fd1cd..6c32c7cd44 100644
--- a/libs/libm/libm/lib_fmaxl.c
+++ b/libs/libm/libm/lib_fmaxl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_fmaxl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_fmin.c b/libs/libm/libm/lib_fmin.c
index 98a10574d9..be49b55caf 100644
--- a/libs/libm/libm/lib_fmin.c
+++ b/libs/libm/libm/lib_fmin.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_fmin.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_fminf.c b/libs/libm/libm/lib_fminf.c
index 1660766373..56d9e3dd18 100644
--- a/libs/libm/libm/lib_fminf.c
+++ b/libs/libm/libm/lib_fminf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_fminf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_fminl.c b/libs/libm/libm/lib_fminl.c
index 5e3adbd7c1..74b94d00d2 100644
--- a/libs/libm/libm/lib_fminl.c
+++ b/libs/libm/libm/lib_fminl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_fminl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_fmod.c b/libs/libm/libm/lib_fmod.c
index bf1b0b41a4..fb5d75e4e4 100644
--- a/libs/libm/libm/lib_fmod.c
+++ b/libs/libm/libm/lib_fmod.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_fmod.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_fmodf.c b/libs/libm/libm/lib_fmodf.c
index 109d5e5374..a08aa07624 100644
--- a/libs/libm/libm/lib_fmodf.c
+++ b/libs/libm/libm/lib_fmodf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_fmodf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_fmodl.c b/libs/libm/libm/lib_fmodl.c
index bce3f16f39..d1f70ab646 100644
--- a/libs/libm/libm/lib_fmodl.c
+++ b/libs/libm/libm/lib_fmodl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_fmodl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_frexp.c b/libs/libm/libm/lib_frexp.c
index adc864bc5f..f511d8c767 100644
--- a/libs/libm/libm/lib_frexp.c
+++ b/libs/libm/libm/lib_frexp.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_frexp.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_frexpf.c b/libs/libm/libm/lib_frexpf.c
index fbd8f9bf19..5a6d614faf 100644
--- a/libs/libm/libm/lib_frexpf.c
+++ b/libs/libm/libm/lib_frexpf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_frexpf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_frexpl.c b/libs/libm/libm/lib_frexpl.c
index 305f54c261..fcce93b57e 100644
--- a/libs/libm/libm/lib_frexpl.c
+++ b/libs/libm/libm/lib_frexpl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_frexpl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_gamma.c b/libs/libm/libm/lib_gamma.c
index b943ac8ff7..56d76edf2b 100644
--- a/libs/libm/libm/lib_gamma.c
+++ b/libs/libm/libm/lib_gamma.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_gamma.c
  *
- * Ported to NuttX from FreeBSD by Alan Carvalho de Assis:
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileContributor: Ported by: Alan Carvalho de Assis
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
diff --git a/libs/libm/libm/lib_ldexp.c b/libs/libm/libm/lib_ldexp.c
index a062dc740d..11227f1fda 100644
--- a/libs/libm/libm/lib_ldexp.c
+++ b/libs/libm/libm/lib_ldexp.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_ldexp.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright 2012 Gregory Nutt
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_ldexpf.c b/libs/libm/libm/lib_ldexpf.c
index 007ef06ddb..1dcede1ac3 100644
--- a/libs/libm/libm/lib_ldexpf.c
+++ b/libs/libm/libm/lib_ldexpf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_ldexpf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_ldexpl.c b/libs/libm/libm/lib_ldexpl.c
index 860aae2911..a3fe4c5f57 100644
--- a/libs/libm/libm/lib_ldexpl.c
+++ b/libs/libm/libm/lib_ldexpl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_ldexpl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_lgamma.c b/libs/libm/libm/lib_lgamma.c
index 80a431452c..4824f15237 100644
--- a/libs/libm/libm/lib_lgamma.c
+++ b/libs/libm/libm/lib_lgamma.c
@@ -1,7 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_lgamma.c
  *
- *   Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (C) 1993 by Sun Microsystems, Inc.
  *
  *   Developed at SunSoft, a Sun Microsystems, Inc. business.
  *   Permission to use, copy, modify, and distribute this
diff --git a/libs/libm/libm/lib_libexpi.c b/libs/libm/libm/lib_libexpi.c
index 8a26924bac..56f8d987a7 100644
--- a/libs/libm/libm/lib_libexpi.c
+++ b/libs/libm/libm/lib_libexpi.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_libexpi.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_libexpif.c b/libs/libm/libm/lib_libexpif.c
index 9ef969fc22..a300170d60 100644
--- a/libs/libm/libm/lib_libexpif.c
+++ b/libs/libm/libm/lib_libexpif.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_libexpif.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2016 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong/Gregory Nutt
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_libsqrtapprox.c 
b/libs/libm/libm/lib_libsqrtapprox.c
index 0930d31ef7..1ca7ae047c 100644
--- a/libs/libm/libm/lib_libsqrtapprox.c
+++ b/libs/libm/libm/lib_libsqrtapprox.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_libsqrtapprox.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_llround.c b/libs/libm/libm/lib_llround.c
index 6662e87ff2..c9d93ee5e1 100644
--- a/libs/libm/libm/lib_llround.c
+++ b/libs/libm/libm/lib_llround.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_llround.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_llroundf.c b/libs/libm/libm/lib_llroundf.c
index 19fa81203f..3b9a2ccdfb 100644
--- a/libs/libm/libm/lib_llroundf.c
+++ b/libs/libm/libm/lib_llroundf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_llroundf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_llroundl.c b/libs/libm/libm/lib_llroundl.c
index 18d321df90..6372a3ee81 100644
--- a/libs/libm/libm/lib_llroundl.c
+++ b/libs/libm/libm/lib_llroundl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_llroundl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_log.c b/libs/libm/libm/lib_log.c
index e23bcff973..24a7cb2f81 100644
--- a/libs/libm/libm/lib_log.c
+++ b/libs/libm/libm/lib_log.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_log.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012, 2018 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_log10.c b/libs/libm/libm/lib_log10.c
index 0110fbf16e..9279525ddc 100644
--- a/libs/libm/libm/lib_log10.c
+++ b/libs/libm/libm/lib_log10.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_log10.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_log10f.c b/libs/libm/libm/lib_log10f.c
index 1ee8ab7048..c799e3840b 100644
--- a/libs/libm/libm/lib_log10f.c
+++ b/libs/libm/libm/lib_log10f.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_log10f.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_log10l.c b/libs/libm/libm/lib_log10l.c
index 45312b55be..6566f9884b 100644
--- a/libs/libm/libm/lib_log10l.c
+++ b/libs/libm/libm/lib_log10l.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_log10l.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_log2.c b/libs/libm/libm/lib_log2.c
index 291ad59952..fd483268fb 100644
--- a/libs/libm/libm/lib_log2.c
+++ b/libs/libm/libm/lib_log2.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_log2.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_log2f.c b/libs/libm/libm/lib_log2f.c
index 5d2acab3b0..bd14bbdd32 100644
--- a/libs/libm/libm/lib_log2f.c
+++ b/libs/libm/libm/lib_log2f.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_log2f.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_log2l.c b/libs/libm/libm/lib_log2l.c
index e4056fd095..a5ede46e9b 100644
--- a/libs/libm/libm/lib_log2l.c
+++ b/libs/libm/libm/lib_log2l.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_log2l.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_logf.c b/libs/libm/libm/lib_logf.c
index cef8a1e50e..20a2f49664 100644
--- a/libs/libm/libm/lib_logf.c
+++ b/libs/libm/libm/lib_logf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_logf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012, 2017-2018 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_logl.c b/libs/libm/libm/lib_logl.c
index 3b93b95251..c41124f74f 100644
--- a/libs/libm/libm/lib_logl.c
+++ b/libs/libm/libm/lib_logl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_logl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_lround.c b/libs/libm/libm/lib_lround.c
index eca9877fe7..82a62d890c 100644
--- a/libs/libm/libm/lib_lround.c
+++ b/libs/libm/libm/lib_lround.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_lround.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_lroundf.c b/libs/libm/libm/lib_lroundf.c
index bc11c41704..53d064d7a5 100644
--- a/libs/libm/libm/lib_lroundf.c
+++ b/libs/libm/libm/lib_lroundf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_lroundf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_lroundl.c b/libs/libm/libm/lib_lroundl.c
index 58df7edb30..d83f75bddd 100644
--- a/libs/libm/libm/lib_lroundl.c
+++ b/libs/libm/libm/lib_lroundl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_lroundl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_modf.c b/libs/libm/libm/lib_modf.c
index f482559b4c..76088ba474 100644
--- a/libs/libm/libm/lib_modf.c
+++ b/libs/libm/libm/lib_modf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_modf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_modff.c b/libs/libm/libm/lib_modff.c
index 650a9405a4..d7ce65451a 100644
--- a/libs/libm/libm/lib_modff.c
+++ b/libs/libm/libm/lib_modff.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_modff.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_modfl.c b/libs/libm/libm/lib_modfl.c
index 003cdadcfe..538a91adfc 100644
--- a/libs/libm/libm/lib_modfl.c
+++ b/libs/libm/libm/lib_modfl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_modfl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_nan.c b/libs/libm/libm/lib_nan.c
index 6d08537e23..21edba46cc 100644
--- a/libs/libm/libm/lib_nan.c
+++ b/libs/libm/libm/lib_nan.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_nan.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_nanf.c b/libs/libm/libm/lib_nanf.c
index 6f2494bb93..b4171fbee6 100644
--- a/libs/libm/libm/lib_nanf.c
+++ b/libs/libm/libm/lib_nanf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_nanf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_nanl.c b/libs/libm/libm/lib_nanl.c
index 6070c5eb99..72f651370e 100644
--- a/libs/libm/libm/lib_nanl.c
+++ b/libs/libm/libm/lib_nanl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_nanl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_pow.c b/libs/libm/libm/lib_pow.c
index a395a4036c..35816e3e7a 100644
--- a/libs/libm/libm/lib_pow.c
+++ b/libs/libm/libm/lib_pow.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_pow.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_powf.c b/libs/libm/libm/lib_powf.c
index e63ab640a5..9236197e1d 100644
--- a/libs/libm/libm/lib_powf.c
+++ b/libs/libm/libm/lib_powf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_powf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_powl.c b/libs/libm/libm/lib_powl.c
index a71de03d02..57261c7e18 100644
--- a/libs/libm/libm/lib_powl.c
+++ b/libs/libm/libm/lib_powl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_powl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_rint.c b/libs/libm/libm/lib_rint.c
index 62a9d47f26..ffe7dd9e9f 100644
--- a/libs/libm/libm/lib_rint.c
+++ b/libs/libm/libm/lib_rint.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_rint.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_rintf.c b/libs/libm/libm/lib_rintf.c
index d87c334d6c..8f40cbdfe5 100644
--- a/libs/libm/libm/lib_rintf.c
+++ b/libs/libm/libm/lib_rintf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_rintf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_rintl.c b/libs/libm/libm/lib_rintl.c
index 84fecd4b96..5cac031e80 100644
--- a/libs/libm/libm/lib_rintl.c
+++ b/libs/libm/libm/lib_rintl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_rintl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_round.c b/libs/libm/libm/lib_round.c
index 41af967582..af52d73988 100644
--- a/libs/libm/libm/lib_round.c
+++ b/libs/libm/libm/lib_round.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_round.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_roundf.c b/libs/libm/libm/lib_roundf.c
index 8d33e1c7f5..4a9dd1f06b 100644
--- a/libs/libm/libm/lib_roundf.c
+++ b/libs/libm/libm/lib_roundf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_roundf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_roundl.c b/libs/libm/libm/lib_roundl.c
index cbf25ed041..6fa575f5e6 100644
--- a/libs/libm/libm/lib_roundl.c
+++ b/libs/libm/libm/lib_roundl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_roundl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_sin.c b/libs/libm/libm/lib_sin.c
index ae275b4fe1..20b34ce58e 100644
--- a/libs/libm/libm/lib_sin.c
+++ b/libs/libm/libm/lib_sin.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_sin.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_sincos.c b/libs/libm/libm/lib_sincos.c
index b9335b261b..0f2f515275 100644
--- a/libs/libm/libm/lib_sincos.c
+++ b/libs/libm/libm/lib_sincos.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_sincos.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_sincosf.c b/libs/libm/libm/lib_sincosf.c
index 6396905afe..90dad8651f 100644
--- a/libs/libm/libm/lib_sincosf.c
+++ b/libs/libm/libm/lib_sincosf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_sincosf.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_sincosl.c b/libs/libm/libm/lib_sincosl.c
index ced5053a32..caae97d9a3 100644
--- a/libs/libm/libm/lib_sincosl.c
+++ b/libs/libm/libm/lib_sincosl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_sincosl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libm/lib_sinf.c b/libs/libm/libm/lib_sinf.c
index 77ff68ad8a..3a82e639f8 100644
--- a/libs/libm/libm/lib_sinf.c
+++ b/libs/libm/libm/lib_sinf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_sinf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_sinh.c b/libs/libm/libm/lib_sinh.c
index b9cb88c42a..47f04e84c3 100644
--- a/libs/libm/libm/lib_sinh.c
+++ b/libs/libm/libm/lib_sinh.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_sinh.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_sinhf.c b/libs/libm/libm/lib_sinhf.c
index 44bda15bf8..cbc36dbd7e 100644
--- a/libs/libm/libm/lib_sinhf.c
+++ b/libs/libm/libm/lib_sinhf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_sinhf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_sinhl.c b/libs/libm/libm/lib_sinhl.c
index df34cb25ef..aa28f3c227 100644
--- a/libs/libm/libm/lib_sinhl.c
+++ b/libs/libm/libm/lib_sinhl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_sinhl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_sinl.c b/libs/libm/libm/lib_sinl.c
index 0adb0fb4be..984e9041ad 100644
--- a/libs/libm/libm/lib_sinl.c
+++ b/libs/libm/libm/lib_sinl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_sinl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_sqrt.c b/libs/libm/libm/lib_sqrt.c
index 18b62f1d70..6dd8179444 100644
--- a/libs/libm/libm/lib_sqrt.c
+++ b/libs/libm/libm/lib_sqrt.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_sqrt.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_sqrtf.c b/libs/libm/libm/lib_sqrtf.c
index 5a1802d14b..3d0c802106 100644
--- a/libs/libm/libm/lib_sqrtf.c
+++ b/libs/libm/libm/lib_sqrtf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_sqrtf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_sqrtl.c b/libs/libm/libm/lib_sqrtl.c
index d095aa1829..862706c718 100644
--- a/libs/libm/libm/lib_sqrtl.c
+++ b/libs/libm/libm/lib_sqrtl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_sqrtl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_tan.c b/libs/libm/libm/lib_tan.c
index 9d603419ab..ae17158a08 100644
--- a/libs/libm/libm/lib_tan.c
+++ b/libs/libm/libm/lib_tan.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_tan.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_tanf.c b/libs/libm/libm/lib_tanf.c
index 656659623f..768c906db8 100644
--- a/libs/libm/libm/lib_tanf.c
+++ b/libs/libm/libm/lib_tanf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_tanf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_tanh.c b/libs/libm/libm/lib_tanh.c
index c5743d908c..8bd393ce4b 100644
--- a/libs/libm/libm/lib_tanh.c
+++ b/libs/libm/libm/lib_tanh.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_tanh.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_tanhf.c b/libs/libm/libm/lib_tanhf.c
index b76696a9bd..2c8585055c 100644
--- a/libs/libm/libm/lib_tanhf.c
+++ b/libs/libm/libm/lib_tanhf.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_tanhf.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_tanhl.c b/libs/libm/libm/lib_tanhl.c
index b0ecfc9180..4e220e45a7 100644
--- a/libs/libm/libm/lib_tanhl.c
+++ b/libs/libm/libm/lib_tanhl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_tanhl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_tanl.c b/libs/libm/libm/lib_tanl.c
index 1d12658e23..60b5f4c32c 100644
--- a/libs/libm/libm/lib_tanl.c
+++ b/libs/libm/libm/lib_tanl.c
@@ -1,10 +1,9 @@
 /****************************************************************************
  * libs/libm/libm/lib_tanl.c
  *
- * This file is a part of NuttX:
- *
- *   Copyright (C) 2012 Gregory Nutt. All rights reserved.
- *   Ported by: Darcy Gong
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: Copyright (C) 2012 Gregory Nutt.
+ * SPDX-FileContributor: Ported by: Darcy Gong
  *
  * It derives from the Rhombus OS math library by Nick Johnson which has
  * a compatible, MIT-style license:
diff --git a/libs/libm/libm/lib_trunc.c b/libs/libm/libm/lib_trunc.c
index b776b43215..c65759f508 100644
--- a/libs/libm/libm/lib_trunc.c
+++ b/libs/libm/libm/lib_trunc.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_trunc.c
  *
+ * SPDX-License-Identifier: MIT
+ *
  * This implementation is derived from the musl library under the MIT License
  *
  * Copyright © 2005-2014 Rich Felker, et al.
diff --git a/libs/libm/libm/lib_truncf.c b/libs/libm/libm/lib_truncf.c
index b05a0de6c5..e95a65bd25 100644
--- a/libs/libm/libm/lib_truncf.c
+++ b/libs/libm/libm/lib_truncf.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_truncf.c
  *
+ * SPDX-License-Identifier: MIT
+ *
  * This implementation is derived from the musl library under the MIT License
  *
  * Copyright © 2005-2014 Rich Felker, et al.
diff --git a/libs/libm/libm/lib_truncl.c b/libs/libm/libm/lib_truncl.c
index 46874fb22d..8dc245e3ee 100644
--- a/libs/libm/libm/lib_truncl.c
+++ b/libs/libm/libm/lib_truncl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/lib_truncl.c
  *
+ * SPDX-License-Identifier: MIT
+ *
  * This implementation is derived from the musl library under the MIT License
  *
  * Copyright © 2005-2014 Rich Felker, et al.
diff --git a/libs/libm/libm/libm.h b/libs/libm/libm/libm.h
index 52b687be2a..7418038e6e 100644
--- a/libs/libm/libm/libm.h
+++ b/libs/libm/libm/libm.h
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/libm/libm.h
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/libmcs/Make.defs b/libs/libm/libmcs/Make.defs
index d39129de47..82be897059 100644
--- a/libs/libm/libmcs/Make.defs
+++ b/libs/libm/libmcs/Make.defs
@@ -1,6 +1,8 @@
 ############################################################################
 # libs/libm/libmcs/Make.defs
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/newlib/CMakeLists.txt b/libs/libm/newlib/CMakeLists.txt
index bff82800d3..2ca2571942 100644
--- a/libs/libm/newlib/CMakeLists.txt
+++ b/libs/libm/newlib/CMakeLists.txt
@@ -1,6 +1,8 @@
 # 
##############################################################################
 # libs/libm/newlib/CMakeLists.txt
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
 # license agreements.  See the NOTICE file distributed with this work for
 # additional information regarding copyright ownership.  The ASF licenses this
diff --git a/libs/libm/newlib/Make.defs b/libs/libm/newlib/Make.defs
index 4ed0f4d0c6..77e56a8e0e 100644
--- a/libs/libm/newlib/Make.defs
+++ b/libs/libm/newlib/Make.defs
@@ -1,6 +1,8 @@
 ############################################################################
 # libs/libm/newlib/Make.defs
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/newlib/include/complex.h 
b/libs/libm/newlib/include/complex.h
index 5b6c398e94..c97c43b9c3 100644
--- a/libs/libm/newlib/include/complex.h
+++ b/libs/libm/newlib/include/complex.h
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/newlib/include/complex.h
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/newlib/include/ieeefp.h 
b/libs/libm/newlib/include/ieeefp.h
index 5a11d06f7d..47a78766e1 100644
--- a/libs/libm/newlib/include/ieeefp.h
+++ b/libs/libm/newlib/include/ieeefp.h
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/newlib/include/ieeefp.h
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/newlib/include/machine/ieeefp.h 
b/libs/libm/newlib/include/machine/ieeefp.h
index 9739b97f5f..9597cc98a3 100644
--- a/libs/libm/newlib/include/machine/ieeefp.h
+++ b/libs/libm/newlib/include/machine/ieeefp.h
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/newlib/include/machine/ieeefp.h
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/newlib/include/math.h b/libs/libm/newlib/include/math.h
index 1fcc8c497c..bd8ba63aa5 100644
--- a/libs/libm/newlib/include/math.h
+++ b/libs/libm/newlib/include/math.h
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/newlib/include/math.h
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/newlib/include/tgmath.h 
b/libs/libm/newlib/include/tgmath.h
index 80ffdc6649..939c8af104 100644
--- a/libs/libm/newlib/include/tgmath.h
+++ b/libs/libm/newlib/include/tgmath.h
@@ -1,7 +1,6 @@
-/* http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/tgmath.h.html */
-
-/* Copyright (c) 2004 Stefan Farfeleder.
- * All rights reserved.
+/****************************************************************************
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: Copyright (c) 2004 Stefan Farfeleder.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -25,7 +24,9 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD$
- */
+ ****************************************************************************/
+
+/* http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/tgmath.h.html */
 
 #ifndef _TGMATH_H_
 #define _TGMATH_H_
diff --git a/libs/libm/newlib/sincosl.c b/libs/libm/newlib/sincosl.c
index 4c2007a5f1..4b4d763de5 100644
--- a/libs/libm/newlib/sincosl.c
+++ b/libs/libm/newlib/sincosl.c
@@ -1,6 +1,8 @@
 /****************************************************************************
  * libs/libm/newlib/sincosl.c
  *
+ * SPDX-License-Identifier: Apache-2.0
+ *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.  The
diff --git a/libs/libm/openlibm/Make.defs b/libs/libm/openlibm/Make.defs
index b241ad300a..9c9bf010bd 100644
--- a/libs/libm/openlibm/Make.defs
+++ b/libs/libm/openlibm/Make.defs
@@ -1,6 +1,8 @@
 ############################################################################
 # libs/libm/openlibm/Make.defs
 #
+# SPDX-License-Identifier: Apache-2.0
+#
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.  The

Reply via email to