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
The following commit(s) were added to refs/heads/master by this push:
new 339457dda3 mm: migrate to SPDX identifier
339457dda3 is described below
commit 339457dda318d377155446bda0f749e84af50ecb
Author: Alin Jerpelea <[email protected]>
AuthorDate: Thu Sep 12 16:44:55 2024 +0200
mm: 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]>
---
mm/CMakeLists.txt | 2 ++
mm/Makefile | 2 ++
mm/bin/CMakeLists.txt | 22 +++++++++++++++++++++-
mm/bin/Makefile | 2 ++
mm/circbuf/CMakeLists.txt | 2 ++
mm/circbuf/Make.defs | 2 ++
mm/circbuf/circbuf.c | 2 ++
mm/iob/CMakeLists.txt | 2 ++
mm/iob/Make.defs | 2 ++
mm/iob/iob.h | 2 ++
mm/iob/iob_add_queue.c | 2 ++
mm/iob/iob_alloc.c | 2 ++
mm/iob/iob_alloc_qentry.c | 2 ++
mm/iob/iob_clone.c | 2 ++
mm/iob/iob_concat.c | 2 ++
mm/iob/iob_contig.c | 2 ++
mm/iob/iob_copyin.c | 2 ++
mm/iob/iob_copyout.c | 2 ++
mm/iob/iob_count.c | 2 ++
mm/iob/iob_dump.c | 2 ++
mm/iob/iob_free.c | 2 ++
mm/iob/iob_free_chain.c | 2 ++
mm/iob/iob_free_qentry.c | 2 ++
mm/iob/iob_free_queue.c | 2 ++
mm/iob/iob_free_queue_qentry.c | 2 ++
mm/iob/iob_get_queue_info.c | 2 ++
mm/iob/iob_initialize.c | 2 ++
mm/iob/iob_navail.c | 2 ++
mm/iob/iob_notifier.c | 2 ++
mm/iob/iob_pack.c | 2 ++
mm/iob/iob_peek_queue.c | 2 ++
mm/iob/iob_remove_queue.c | 2 ++
mm/iob/iob_reserve.c | 2 ++
mm/iob/iob_statistics.c | 2 ++
mm/iob/iob_tailroom.c | 2 ++
mm/iob/iob_test.c | 2 ++
mm/iob/iob_trimhead.c | 2 ++
mm/iob/iob_trimhead_queue.c | 2 ++
mm/iob/iob_trimtail.c | 2 ++
mm/iob/iob_update_pktlen.c | 2 ++
mm/kasan/CMakeLists.txt | 2 ++
mm/kasan/Make.defs | 2 ++
mm/kasan/kasan.c | 2 ++
mm/kasan/kasan.h | 2 ++
mm/kbin/CMakeLists.txt | 21 +++++++++++++++++++++
mm/kbin/Makefile | 2 ++
mm/kmap/Make.defs | 2 ++
mm/kmap/kmm_map.c | 2 ++
mm/kmm_heap/CMakeLists.txt | 2 ++
mm/kmm_heap/Make.defs | 2 ++
mm/kmm_heap/kmm_addregion.c | 2 ++
mm/kmm_heap/kmm_brkaddr.c | 2 ++
mm/kmm_heap/kmm_calloc.c | 2 ++
mm/kmm_heap/kmm_checkcorruption.c | 2 ++
mm/kmm_heap/kmm_extend.c | 2 ++
mm/kmm_heap/kmm_free.c | 2 ++
mm/kmm_heap/kmm_heapmember.c | 2 ++
mm/kmm_heap/kmm_initialize.c | 2 ++
mm/kmm_heap/kmm_mallinfo.c | 2 ++
mm/kmm_heap/kmm_malloc.c | 2 ++
mm/kmm_heap/kmm_malloc_size.c | 2 ++
mm/kmm_heap/kmm_memalign.c | 2 ++
mm/kmm_heap/kmm_memdump.c | 2 ++
mm/kmm_heap/kmm_realloc.c | 2 ++
mm/kmm_heap/kmm_zalloc.c | 2 ++
mm/map/CMakeLists.txt | 2 ++
mm/map/Make.defs | 2 ++
mm/map/mm_map.c | 2 ++
mm/map/vm_region.c | 2 ++
mm/mempool/CMakeLists.txt | 2 ++
mm/mempool/Make.defs | 2 ++
mm/mempool/mempool.c | 2 ++
mm/mempool/mempool_multiple.c | 2 ++
mm/mempool/mempool_procfs.c | 2 ++
mm/mm_gran/CMakeLists.txt | 2 ++
mm/mm_gran/Make.defs | 2 ++
mm/mm_gran/mm_gran.h | 2 ++
mm/mm_gran/mm_granalloc.c | 2 ++
mm/mm_gran/mm_grancritical.c | 2 ++
mm/mm_gran/mm_granfree.c | 2 ++
mm/mm_gran/mm_graninfo.c | 2 ++
mm/mm_gran/mm_graninit.c | 2 ++
mm/mm_gran/mm_granrelease.c | 2 ++
mm/mm_gran/mm_granreserve.c | 2 ++
mm/mm_gran/mm_grantable.c | 2 ++
mm/mm_gran/mm_grantable.h | 2 ++
mm/mm_gran/mm_pgalloc.c | 2 ++
mm/mm_heap/CMakeLists.txt | 2 ++
mm/mm_heap/Make.defs | 2 ++
mm/mm_heap/mm.h | 2 ++
mm/mm_heap/mm_addfreechunk.c | 2 ++
mm/mm_heap/mm_brkaddr.c | 2 ++
mm/mm_heap/mm_calloc.c | 2 ++
mm/mm_heap/mm_checkcorruption.c | 2 ++
mm/mm_heap/mm_extend.c | 2 ++
mm/mm_heap/mm_foreach.c | 2 ++
mm/mm_heap/mm_free.c | 2 ++
mm/mm_heap/mm_heapmember.c | 2 ++
mm/mm_heap/mm_initialize.c | 2 ++
mm/mm_heap/mm_lock.c | 2 ++
mm/mm_heap/mm_mallinfo.c | 2 ++
mm/mm_heap/mm_malloc.c | 2 ++
mm/mm_heap/mm_malloc_size.c | 2 ++
mm/mm_heap/mm_memalign.c | 2 ++
mm/mm_heap/mm_memdump.c | 2 ++
mm/mm_heap/mm_realloc.c | 2 ++
mm/mm_heap/mm_shrinkchunk.c | 2 ++
mm/mm_heap/mm_size2ndx.c | 2 ++
mm/mm_heap/mm_zalloc.c | 2 ++
mm/shm/CMakeLists.txt | 2 ++
mm/shm/Make.defs | 2 ++
mm/shm/shm.h | 2 ++
mm/shm/shmat.c | 2 ++
mm/shm/shmctl.c | 2 ++
mm/shm/shmdt.c | 2 ++
mm/shm/shmget.c | 2 ++
mm/tlsf/CMakeLists.txt | 2 ++
mm/tlsf/Make.defs | 2 ++
mm/tlsf/mm_tlsf.c | 2 ++
mm/ubsan/CMakeLists.txt | 2 ++
mm/ubsan/Make.defs | 2 ++
mm/ubsan/ubsan.c | 2 ++
mm/ubsan/ubsan.h | 2 ++
mm/umm_heap/CMakeLists.txt | 2 ++
mm/umm_heap/Make.defs | 2 ++
mm/umm_heap/umm_addregion.c | 2 ++
mm/umm_heap/umm_brkaddr.c | 2 ++
mm/umm_heap/umm_calloc.c | 2 ++
mm/umm_heap/umm_checkcorruption.c | 2 ++
mm/umm_heap/umm_extend.c | 2 ++
mm/umm_heap/umm_free.c | 2 ++
mm/umm_heap/umm_globals.c | 2 ++
mm/umm_heap/umm_heap.h | 2 ++
mm/umm_heap/umm_heapmember.c | 2 ++
mm/umm_heap/umm_initialize.c | 2 ++
mm/umm_heap/umm_mallinfo.c | 2 ++
mm/umm_heap/umm_malloc.c | 2 ++
mm/umm_heap/umm_malloc_size.c | 2 ++
mm/umm_heap/umm_memalign.c | 2 ++
mm/umm_heap/umm_memdump.c | 2 ++
mm/umm_heap/umm_realloc.c | 2 ++
mm/umm_heap/umm_sbrk.c | 2 ++
mm/umm_heap/umm_zalloc.c | 2 ++
143 files changed, 324 insertions(+), 1 deletion(-)
diff --git a/mm/CMakeLists.txt b/mm/CMakeLists.txt
index f59c5f8e18..3a6c465f33 100644
--- a/mm/CMakeLists.txt
+++ b/mm/CMakeLists.txt
@@ -1,6 +1,8 @@
#
##############################################################################
# mm/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/mm/Makefile b/mm/Makefile
index 7d1f63cb22..7ea82e21e9 100644
--- a/mm/Makefile
+++ b/mm/Makefile
@@ -1,6 +1,8 @@
############################################################################
# mm/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/mm/bin/CMakeLists.txt b/mm/bin/CMakeLists.txt
index 8b13789179..feecd2a0a1 100644
--- a/mm/bin/CMakeLists.txt
+++ b/mm/bin/CMakeLists.txt
@@ -1 +1,21 @@
-
+############################################################################
+# mm/bin/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 file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the
+# License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+###########################################################################
diff --git a/mm/bin/Makefile b/mm/bin/Makefile
index a6bb4aa075..c391c25f1c 100644
--- a/mm/bin/Makefile
+++ b/mm/bin/Makefile
@@ -1,6 +1,8 @@
############################################################################
# mm/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/mm/circbuf/CMakeLists.txt b/mm/circbuf/CMakeLists.txt
index 04e0577f51..46ff9e3e30 100644
--- a/mm/circbuf/CMakeLists.txt
+++ b/mm/circbuf/CMakeLists.txt
@@ -1,6 +1,8 @@
#
##############################################################################
# mm/circbuf/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/mm/circbuf/Make.defs b/mm/circbuf/Make.defs
index 45dcb862bb..5812225dc8 100644
--- a/mm/circbuf/Make.defs
+++ b/mm/circbuf/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# mm/circbuf/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/mm/circbuf/circbuf.c b/mm/circbuf/circbuf.c
index bf24718e32..be42998b40 100644
--- a/mm/circbuf/circbuf.c
+++ b/mm/circbuf/circbuf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/circbuf/circbuf.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/mm/iob/CMakeLists.txt b/mm/iob/CMakeLists.txt
index 6f2159845a..618faf2f50 100644
--- a/mm/iob/CMakeLists.txt
+++ b/mm/iob/CMakeLists.txt
@@ -1,6 +1,8 @@
#
##############################################################################
# mm/iob/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/mm/iob/Make.defs b/mm/iob/Make.defs
index e2c61f37bf..48de566e43 100644
--- a/mm/iob/Make.defs
+++ b/mm/iob/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# mm/iob/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/mm/iob/iob.h b/mm/iob/iob.h
index 77ff58ec54..aea1198304 100644
--- a/mm/iob/iob.h
+++ b/mm/iob/iob.h
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob.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/mm/iob/iob_add_queue.c b/mm/iob/iob_add_queue.c
index 2593d2a14f..f0ccb81841 100644
--- a/mm/iob/iob_add_queue.c
+++ b/mm/iob/iob_add_queue.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_add_queue.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/mm/iob/iob_alloc.c b/mm/iob/iob_alloc.c
index 637425d9f8..f1bc346123 100644
--- a/mm/iob/iob_alloc.c
+++ b/mm/iob/iob_alloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_alloc.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/mm/iob/iob_alloc_qentry.c b/mm/iob/iob_alloc_qentry.c
index 0f00019ab9..26ee1d827f 100644
--- a/mm/iob/iob_alloc_qentry.c
+++ b/mm/iob/iob_alloc_qentry.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_alloc_qentry.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/mm/iob/iob_clone.c b/mm/iob/iob_clone.c
index 82e319e543..41907517c3 100644
--- a/mm/iob/iob_clone.c
+++ b/mm/iob/iob_clone.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_clone.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/mm/iob/iob_concat.c b/mm/iob/iob_concat.c
index a8acda0667..7404743f65 100644
--- a/mm/iob/iob_concat.c
+++ b/mm/iob/iob_concat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_concat.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/mm/iob/iob_contig.c b/mm/iob/iob_contig.c
index 7a529ea0d8..8b0b1ddae7 100644
--- a/mm/iob/iob_contig.c
+++ b/mm/iob/iob_contig.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_contig.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/mm/iob/iob_copyin.c b/mm/iob/iob_copyin.c
index fb69aa00c6..d63d2ba2fa 100644
--- a/mm/iob/iob_copyin.c
+++ b/mm/iob/iob_copyin.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_copyin.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/mm/iob/iob_copyout.c b/mm/iob/iob_copyout.c
index 58e06e874d..91a41d3a02 100644
--- a/mm/iob/iob_copyout.c
+++ b/mm/iob/iob_copyout.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_copyout.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/mm/iob/iob_count.c b/mm/iob/iob_count.c
index 9d185916de..cd193dd65d 100644
--- a/mm/iob/iob_count.c
+++ b/mm/iob/iob_count.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_count.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/mm/iob/iob_dump.c b/mm/iob/iob_dump.c
index b33788fa7e..c149da4a26 100644
--- a/mm/iob/iob_dump.c
+++ b/mm/iob/iob_dump.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_dump.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/mm/iob/iob_free.c b/mm/iob/iob_free.c
index 6638a5a1a7..049e4c29ae 100644
--- a/mm/iob/iob_free.c
+++ b/mm/iob/iob_free.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_free.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/mm/iob/iob_free_chain.c b/mm/iob/iob_free_chain.c
index 222c3d04ab..fd1e91fe5d 100644
--- a/mm/iob/iob_free_chain.c
+++ b/mm/iob/iob_free_chain.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_free_chain.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/mm/iob/iob_free_qentry.c b/mm/iob/iob_free_qentry.c
index 5709ec73b0..992aba1787 100644
--- a/mm/iob/iob_free_qentry.c
+++ b/mm/iob/iob_free_qentry.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_free_qentry.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/mm/iob/iob_free_queue.c b/mm/iob/iob_free_queue.c
index 8392e8f582..ac320f2234 100644
--- a/mm/iob/iob_free_queue.c
+++ b/mm/iob/iob_free_queue.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_free_queue.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/mm/iob/iob_free_queue_qentry.c b/mm/iob/iob_free_queue_qentry.c
index 88d34ffbf9..5378efd574 100644
--- a/mm/iob/iob_free_queue_qentry.c
+++ b/mm/iob/iob_free_queue_qentry.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_free_queue_qentry.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/mm/iob/iob_get_queue_info.c b/mm/iob/iob_get_queue_info.c
index 73b12208af..38f49dbd0d 100644
--- a/mm/iob/iob_get_queue_info.c
+++ b/mm/iob/iob_get_queue_info.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_get_queue_info.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/mm/iob/iob_initialize.c b/mm/iob/iob_initialize.c
index 8852d13475..0093ffe7ac 100644
--- a/mm/iob/iob_initialize.c
+++ b/mm/iob/iob_initialize.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_initialize.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/mm/iob/iob_navail.c b/mm/iob/iob_navail.c
index b660f440f2..b387d35003 100644
--- a/mm/iob/iob_navail.c
+++ b/mm/iob/iob_navail.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_navail.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/mm/iob/iob_notifier.c b/mm/iob/iob_notifier.c
index d645df8466..a7a0f952fc 100644
--- a/mm/iob/iob_notifier.c
+++ b/mm/iob/iob_notifier.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_notifier.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/mm/iob/iob_pack.c b/mm/iob/iob_pack.c
index 6fdce16cbe..0f3e0db3fe 100644
--- a/mm/iob/iob_pack.c
+++ b/mm/iob/iob_pack.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_pack.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/mm/iob/iob_peek_queue.c b/mm/iob/iob_peek_queue.c
index ca6468ef73..3c6c35f981 100644
--- a/mm/iob/iob_peek_queue.c
+++ b/mm/iob/iob_peek_queue.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_peek_queue.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/mm/iob/iob_remove_queue.c b/mm/iob/iob_remove_queue.c
index 8ccbabcdea..bc3b506384 100644
--- a/mm/iob/iob_remove_queue.c
+++ b/mm/iob/iob_remove_queue.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_remove_queue.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/mm/iob/iob_reserve.c b/mm/iob/iob_reserve.c
index d707f1fa39..7f6fafd2c6 100644
--- a/mm/iob/iob_reserve.c
+++ b/mm/iob/iob_reserve.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_reserve.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/mm/iob/iob_statistics.c b/mm/iob/iob_statistics.c
index e3c6e90ab4..f08535eb38 100644
--- a/mm/iob/iob_statistics.c
+++ b/mm/iob/iob_statistics.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_statistics.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/mm/iob/iob_tailroom.c b/mm/iob/iob_tailroom.c
index 883f220693..ee478e313c 100644
--- a/mm/iob/iob_tailroom.c
+++ b/mm/iob/iob_tailroom.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_tailroom.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/mm/iob/iob_test.c b/mm/iob/iob_test.c
index f865326385..d9a8767241 100644
--- a/mm/iob/iob_test.c
+++ b/mm/iob/iob_test.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_test.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/mm/iob/iob_trimhead.c b/mm/iob/iob_trimhead.c
index 3e99fb6006..62d1f9bdeb 100644
--- a/mm/iob/iob_trimhead.c
+++ b/mm/iob/iob_trimhead.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_trimhead.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/mm/iob/iob_trimhead_queue.c b/mm/iob/iob_trimhead_queue.c
index d9cc726c8f..8928995d9d 100644
--- a/mm/iob/iob_trimhead_queue.c
+++ b/mm/iob/iob_trimhead_queue.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_trimhead_queue.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/mm/iob/iob_trimtail.c b/mm/iob/iob_trimtail.c
index 77114d409a..53a1d3d566 100644
--- a/mm/iob/iob_trimtail.c
+++ b/mm/iob/iob_trimtail.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_trimtail.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/mm/iob/iob_update_pktlen.c b/mm/iob/iob_update_pktlen.c
index 0b9ebc8d40..5ab4e24508 100644
--- a/mm/iob/iob_update_pktlen.c
+++ b/mm/iob/iob_update_pktlen.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/iob/iob_update_pktlen.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/mm/kasan/CMakeLists.txt b/mm/kasan/CMakeLists.txt
index bba4df4f52..8bc0f885bb 100644
--- a/mm/kasan/CMakeLists.txt
+++ b/mm/kasan/CMakeLists.txt
@@ -1,6 +1,8 @@
#
##############################################################################
# mm/kasan/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/mm/kasan/Make.defs b/mm/kasan/Make.defs
index a629b48e3b..50f5b96f4c 100644
--- a/mm/kasan/Make.defs
+++ b/mm/kasan/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# mm/kasan/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/mm/kasan/kasan.c b/mm/kasan/kasan.c
index 5f26277db6..92bac93e6d 100644
--- a/mm/kasan/kasan.c
+++ b/mm/kasan/kasan.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kasan/kasan.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/mm/kasan/kasan.h b/mm/kasan/kasan.h
index 28eb544f8a..53baffb157 100644
--- a/mm/kasan/kasan.h
+++ b/mm/kasan/kasan.h
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kasan/kasan.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/mm/kbin/CMakeLists.txt b/mm/kbin/CMakeLists.txt
index 8b13789179..7cec6898a6 100644
--- a/mm/kbin/CMakeLists.txt
+++ b/mm/kbin/CMakeLists.txt
@@ -1 +1,22 @@
+############################################################################
+# mm/kbin/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 file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the
+# License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+###########################################################################
diff --git a/mm/kbin/Makefile b/mm/kbin/Makefile
index 988a25f5b4..ff2d943c51 100644
--- a/mm/kbin/Makefile
+++ b/mm/kbin/Makefile
@@ -1,6 +1,8 @@
############################################################################
# mm/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/mm/kmap/Make.defs b/mm/kmap/Make.defs
index 993d45877d..d351b60e0a 100644
--- a/mm/kmap/Make.defs
+++ b/mm/kmap/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# mm/kmap/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/mm/kmap/kmm_map.c b/mm/kmap/kmm_map.c
index 13be6c9666..adb9293524 100644
--- a/mm/kmap/kmm_map.c
+++ b/mm/kmap/kmm_map.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmap/kmm_map.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/mm/kmm_heap/CMakeLists.txt b/mm/kmm_heap/CMakeLists.txt
index 075476d4e0..aac0caa329 100644
--- a/mm/kmm_heap/CMakeLists.txt
+++ b/mm/kmm_heap/CMakeLists.txt
@@ -1,6 +1,8 @@
#
##############################################################################
# mm/kmm_heap/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/mm/kmm_heap/Make.defs b/mm/kmm_heap/Make.defs
index 254a6b89fe..1a31956e02 100644
--- a/mm/kmm_heap/Make.defs
+++ b/mm/kmm_heap/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# mm/kmm_heap/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/mm/kmm_heap/kmm_addregion.c b/mm/kmm_heap/kmm_addregion.c
index aff6c96b8a..ece671d83b 100644
--- a/mm/kmm_heap/kmm_addregion.c
+++ b/mm/kmm_heap/kmm_addregion.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_addregion.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/mm/kmm_heap/kmm_brkaddr.c b/mm/kmm_heap/kmm_brkaddr.c
index 9515ee2961..36c0631662 100644
--- a/mm/kmm_heap/kmm_brkaddr.c
+++ b/mm/kmm_heap/kmm_brkaddr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_brkaddr.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/mm/kmm_heap/kmm_calloc.c b/mm/kmm_heap/kmm_calloc.c
index 2475f38403..c584840f96 100644
--- a/mm/kmm_heap/kmm_calloc.c
+++ b/mm/kmm_heap/kmm_calloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_calloc.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/mm/kmm_heap/kmm_checkcorruption.c
b/mm/kmm_heap/kmm_checkcorruption.c
index 92b39a4cbf..2600aa3271 100644
--- a/mm/kmm_heap/kmm_checkcorruption.c
+++ b/mm/kmm_heap/kmm_checkcorruption.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_checkcorruption.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/mm/kmm_heap/kmm_extend.c b/mm/kmm_heap/kmm_extend.c
index c8d91af781..119e8c15b2 100644
--- a/mm/kmm_heap/kmm_extend.c
+++ b/mm/kmm_heap/kmm_extend.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_extend.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/mm/kmm_heap/kmm_free.c b/mm/kmm_heap/kmm_free.c
index cdaaaf7d70..1a57c9074c 100644
--- a/mm/kmm_heap/kmm_free.c
+++ b/mm/kmm_heap/kmm_free.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_free.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/mm/kmm_heap/kmm_heapmember.c b/mm/kmm_heap/kmm_heapmember.c
index d9e4ca2018..2888a21af1 100644
--- a/mm/kmm_heap/kmm_heapmember.c
+++ b/mm/kmm_heap/kmm_heapmember.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_heapmember.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/mm/kmm_heap/kmm_initialize.c b/mm/kmm_heap/kmm_initialize.c
index 6b5d4ac122..96115f00de 100644
--- a/mm/kmm_heap/kmm_initialize.c
+++ b/mm/kmm_heap/kmm_initialize.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_initialize.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/mm/kmm_heap/kmm_mallinfo.c b/mm/kmm_heap/kmm_mallinfo.c
index 482f338f68..a4cfc28a72 100644
--- a/mm/kmm_heap/kmm_mallinfo.c
+++ b/mm/kmm_heap/kmm_mallinfo.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_mallinfo.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/mm/kmm_heap/kmm_malloc.c b/mm/kmm_heap/kmm_malloc.c
index c01882d3c9..46e176f2d2 100644
--- a/mm/kmm_heap/kmm_malloc.c
+++ b/mm/kmm_heap/kmm_malloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_malloc.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/mm/kmm_heap/kmm_malloc_size.c b/mm/kmm_heap/kmm_malloc_size.c
index 25c96987f4..0cf4148b6c 100644
--- a/mm/kmm_heap/kmm_malloc_size.c
+++ b/mm/kmm_heap/kmm_malloc_size.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_malloc_size.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/mm/kmm_heap/kmm_memalign.c b/mm/kmm_heap/kmm_memalign.c
index c13db02f43..b022ad9575 100644
--- a/mm/kmm_heap/kmm_memalign.c
+++ b/mm/kmm_heap/kmm_memalign.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_memalign.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/mm/kmm_heap/kmm_memdump.c b/mm/kmm_heap/kmm_memdump.c
index 1eae5e13eb..21354f2508 100644
--- a/mm/kmm_heap/kmm_memdump.c
+++ b/mm/kmm_heap/kmm_memdump.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_memdump.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/mm/kmm_heap/kmm_realloc.c b/mm/kmm_heap/kmm_realloc.c
index b579d15f9a..62561f1fc6 100644
--- a/mm/kmm_heap/kmm_realloc.c
+++ b/mm/kmm_heap/kmm_realloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_realloc.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/mm/kmm_heap/kmm_zalloc.c b/mm/kmm_heap/kmm_zalloc.c
index ab5704f03f..3352267625 100644
--- a/mm/kmm_heap/kmm_zalloc.c
+++ b/mm/kmm_heap/kmm_zalloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/kmm_heap/kmm_zalloc.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/mm/map/CMakeLists.txt b/mm/map/CMakeLists.txt
index 5c5ba7726c..0a0040dfa9 100644
--- a/mm/map/CMakeLists.txt
+++ b/mm/map/CMakeLists.txt
@@ -1,6 +1,8 @@
#
##############################################################################
# mm/map/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/mm/map/Make.defs b/mm/map/Make.defs
index 9daa50c241..b5ef7e69c8 100644
--- a/mm/map/Make.defs
+++ b/mm/map/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# mm/map/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/mm/map/mm_map.c b/mm/map/mm_map.c
index d4d16b8f0d..e7181c34eb 100644
--- a/mm/map/mm_map.c
+++ b/mm/map/mm_map.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/map/mm_map.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/mm/map/vm_region.c b/mm/map/vm_region.c
index de999cb40c..1814913442 100644
--- a/mm/map/vm_region.c
+++ b/mm/map/vm_region.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/map/vm_region.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/mm/mempool/CMakeLists.txt b/mm/mempool/CMakeLists.txt
index 8c2dcb53dc..318490fb05 100644
--- a/mm/mempool/CMakeLists.txt
+++ b/mm/mempool/CMakeLists.txt
@@ -1,6 +1,8 @@
#
##############################################################################
# mm/mempool/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/mm/mempool/Make.defs b/mm/mempool/Make.defs
index 565b4b1cd0..720ce9fec8 100644
--- a/mm/mempool/Make.defs
+++ b/mm/mempool/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# mm/mempool/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/mm/mempool/mempool.c b/mm/mempool/mempool.c
index ef686014da..b2fd17107c 100644
--- a/mm/mempool/mempool.c
+++ b/mm/mempool/mempool.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mempool/mempool.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/mm/mempool/mempool_multiple.c b/mm/mempool/mempool_multiple.c
index a8be2fa5ed..63fc2ced33 100644
--- a/mm/mempool/mempool_multiple.c
+++ b/mm/mempool/mempool_multiple.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mempool/mempool_multiple.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/mm/mempool/mempool_procfs.c b/mm/mempool/mempool_procfs.c
index 5e86b90c23..d415c01d56 100644
--- a/mm/mempool/mempool_procfs.c
+++ b/mm/mempool/mempool_procfs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mempool/mempool_procfs.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/mm/mm_gran/CMakeLists.txt b/mm/mm_gran/CMakeLists.txt
index 4de3860fda..d206847e67 100644
--- a/mm/mm_gran/CMakeLists.txt
+++ b/mm/mm_gran/CMakeLists.txt
@@ -1,6 +1,8 @@
#
##############################################################################
# mm/mm_gran/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/mm/mm_gran/Make.defs b/mm/mm_gran/Make.defs
index 7ec0c63153..4de256adbf 100644
--- a/mm/mm_gran/Make.defs
+++ b/mm/mm_gran/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# mm/mm_gran/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/mm/mm_gran/mm_gran.h b/mm/mm_gran/mm_gran.h
index b08b455b3c..4257cd7885 100644
--- a/mm/mm_gran/mm_gran.h
+++ b/mm/mm_gran/mm_gran.h
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_gran/mm_gran.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/mm/mm_gran/mm_granalloc.c b/mm/mm_gran/mm_granalloc.c
index 7727e2120a..e44b92be9b 100644
--- a/mm/mm_gran/mm_granalloc.c
+++ b/mm/mm_gran/mm_granalloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_gran/mm_granalloc.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/mm/mm_gran/mm_grancritical.c b/mm/mm_gran/mm_grancritical.c
index 0b988ecd07..06481e1de0 100644
--- a/mm/mm_gran/mm_grancritical.c
+++ b/mm/mm_gran/mm_grancritical.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_gran/mm_grancritical.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/mm/mm_gran/mm_granfree.c b/mm/mm_gran/mm_granfree.c
index e2a667b5d1..580672dc63 100644
--- a/mm/mm_gran/mm_granfree.c
+++ b/mm/mm_gran/mm_granfree.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_gran/mm_granfree.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/mm/mm_gran/mm_graninfo.c b/mm/mm_gran/mm_graninfo.c
index bf3d0cc3e2..73775e7738 100644
--- a/mm/mm_gran/mm_graninfo.c
+++ b/mm/mm_gran/mm_graninfo.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_gran/mm_graninfo.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/mm/mm_gran/mm_graninit.c b/mm/mm_gran/mm_graninit.c
index 579e84c436..777889de15 100644
--- a/mm/mm_gran/mm_graninit.c
+++ b/mm/mm_gran/mm_graninit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_gran/mm_graninit.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/mm/mm_gran/mm_granrelease.c b/mm/mm_gran/mm_granrelease.c
index 67c3c44407..99dbd2c821 100644
--- a/mm/mm_gran/mm_granrelease.c
+++ b/mm/mm_gran/mm_granrelease.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_gran/mm_granrelease.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/mm/mm_gran/mm_granreserve.c b/mm/mm_gran/mm_granreserve.c
index eb6aabfb79..6045949ffe 100644
--- a/mm/mm_gran/mm_granreserve.c
+++ b/mm/mm_gran/mm_granreserve.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_gran/mm_granreserve.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/mm/mm_gran/mm_grantable.c b/mm/mm_gran/mm_grantable.c
index 93c027db4c..84c8077d93 100644
--- a/mm/mm_gran/mm_grantable.c
+++ b/mm/mm_gran/mm_grantable.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_gran/mm_grantable.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/mm/mm_gran/mm_grantable.h b/mm/mm_gran/mm_grantable.h
index 40f2f609e5..38fa60b529 100644
--- a/mm/mm_gran/mm_grantable.h
+++ b/mm/mm_gran/mm_grantable.h
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_gran/mm_grantable.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/mm/mm_gran/mm_pgalloc.c b/mm/mm_gran/mm_pgalloc.c
index 369b057de9..46e6c27312 100644
--- a/mm/mm_gran/mm_pgalloc.c
+++ b/mm/mm_gran/mm_pgalloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_gran/mm_pgalloc.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/mm/mm_heap/CMakeLists.txt b/mm/mm_heap/CMakeLists.txt
index ddb935866a..234feb5dee 100644
--- a/mm/mm_heap/CMakeLists.txt
+++ b/mm/mm_heap/CMakeLists.txt
@@ -1,6 +1,8 @@
#
##############################################################################
# mm/mm_heap/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/mm/mm_heap/Make.defs b/mm/mm_heap/Make.defs
index 88d682759e..bfa4cd421e 100644
--- a/mm/mm_heap/Make.defs
+++ b/mm/mm_heap/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# mm/mm_heap/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/mm/mm_heap/mm.h b/mm/mm_heap/mm.h
index ed315688e1..80c59c316e 100644
--- a/mm/mm_heap/mm.h
+++ b/mm/mm_heap/mm.h
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm.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/mm/mm_heap/mm_addfreechunk.c b/mm/mm_heap/mm_addfreechunk.c
index d0379ee2d7..1e2de70495 100644
--- a/mm/mm_heap/mm_addfreechunk.c
+++ b/mm/mm_heap/mm_addfreechunk.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_addfreechunk.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/mm/mm_heap/mm_brkaddr.c b/mm/mm_heap/mm_brkaddr.c
index 480026ef3d..372e69fe0f 100644
--- a/mm/mm_heap/mm_brkaddr.c
+++ b/mm/mm_heap/mm_brkaddr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_brkaddr.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/mm/mm_heap/mm_calloc.c b/mm/mm_heap/mm_calloc.c
index 3efed7f51c..f0d6a28860 100644
--- a/mm/mm_heap/mm_calloc.c
+++ b/mm/mm_heap/mm_calloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_calloc.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/mm/mm_heap/mm_checkcorruption.c b/mm/mm_heap/mm_checkcorruption.c
index 4b9e0c9969..5757049902 100644
--- a/mm/mm_heap/mm_checkcorruption.c
+++ b/mm/mm_heap/mm_checkcorruption.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_checkcorruption.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/mm/mm_heap/mm_extend.c b/mm/mm_heap/mm_extend.c
index 910192f393..ee6943c3bf 100644
--- a/mm/mm_heap/mm_extend.c
+++ b/mm/mm_heap/mm_extend.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_extend.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/mm/mm_heap/mm_foreach.c b/mm/mm_heap/mm_foreach.c
index 04c886a8e4..9be84a9848 100644
--- a/mm/mm_heap/mm_foreach.c
+++ b/mm/mm_heap/mm_foreach.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_foreach.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/mm/mm_heap/mm_free.c b/mm/mm_heap/mm_free.c
index 7c8f885a4b..1f638120b0 100644
--- a/mm/mm_heap/mm_free.c
+++ b/mm/mm_heap/mm_free.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_free.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/mm/mm_heap/mm_heapmember.c b/mm/mm_heap/mm_heapmember.c
index 168ba1765b..239bdf5050 100644
--- a/mm/mm_heap/mm_heapmember.c
+++ b/mm/mm_heap/mm_heapmember.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_heapmember.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/mm/mm_heap/mm_initialize.c b/mm/mm_heap/mm_initialize.c
index 9ceb518346..0efff5cb50 100644
--- a/mm/mm_heap/mm_initialize.c
+++ b/mm/mm_heap/mm_initialize.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_initialize.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/mm/mm_heap/mm_lock.c b/mm/mm_heap/mm_lock.c
index 7118b7f16d..862a4fc68e 100644
--- a/mm/mm_heap/mm_lock.c
+++ b/mm/mm_heap/mm_lock.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_lock.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/mm/mm_heap/mm_mallinfo.c b/mm/mm_heap/mm_mallinfo.c
index 407b6fe6e8..bb301a8983 100644
--- a/mm/mm_heap/mm_mallinfo.c
+++ b/mm/mm_heap/mm_mallinfo.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_mallinfo.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/mm/mm_heap/mm_malloc.c b/mm/mm_heap/mm_malloc.c
index c6cde651eb..8813fecac2 100644
--- a/mm/mm_heap/mm_malloc.c
+++ b/mm/mm_heap/mm_malloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_malloc.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/mm/mm_heap/mm_malloc_size.c b/mm/mm_heap/mm_malloc_size.c
index cd1c673eab..bb8ed7dcf5 100644
--- a/mm/mm_heap/mm_malloc_size.c
+++ b/mm/mm_heap/mm_malloc_size.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_malloc_size.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/mm/mm_heap/mm_memalign.c b/mm/mm_heap/mm_memalign.c
index 4abf9b237d..8eaeca2958 100644
--- a/mm/mm_heap/mm_memalign.c
+++ b/mm/mm_heap/mm_memalign.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_memalign.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/mm/mm_heap/mm_memdump.c b/mm/mm_heap/mm_memdump.c
index 6c5ff9753d..a0340b49ff 100644
--- a/mm/mm_heap/mm_memdump.c
+++ b/mm/mm_heap/mm_memdump.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_memdump.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/mm/mm_heap/mm_realloc.c b/mm/mm_heap/mm_realloc.c
index 76544da388..c8f52a2934 100644
--- a/mm/mm_heap/mm_realloc.c
+++ b/mm/mm_heap/mm_realloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_realloc.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/mm/mm_heap/mm_shrinkchunk.c b/mm/mm_heap/mm_shrinkchunk.c
index 9c6660e67f..06bd9629e5 100644
--- a/mm/mm_heap/mm_shrinkchunk.c
+++ b/mm/mm_heap/mm_shrinkchunk.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_shrinkchunk.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/mm/mm_heap/mm_size2ndx.c b/mm/mm_heap/mm_size2ndx.c
index 7e022f80ec..00fafc7c26 100644
--- a/mm/mm_heap/mm_size2ndx.c
+++ b/mm/mm_heap/mm_size2ndx.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_size2ndx.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/mm/mm_heap/mm_zalloc.c b/mm/mm_heap/mm_zalloc.c
index c9eda9b645..1c4109f5b3 100644
--- a/mm/mm_heap/mm_zalloc.c
+++ b/mm/mm_heap/mm_zalloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/mm_heap/mm_zalloc.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/mm/shm/CMakeLists.txt b/mm/shm/CMakeLists.txt
index fd8d24d1ec..10567bf9e7 100644
--- a/mm/shm/CMakeLists.txt
+++ b/mm/shm/CMakeLists.txt
@@ -1,6 +1,8 @@
#
##############################################################################
# mm/shm/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/mm/shm/Make.defs b/mm/shm/Make.defs
index b9514378e1..31743363e0 100644
--- a/mm/shm/Make.defs
+++ b/mm/shm/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# mm/shm/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/mm/shm/shm.h b/mm/shm/shm.h
index e6a37a0489..6d55167ef2 100644
--- a/mm/shm/shm.h
+++ b/mm/shm/shm.h
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/shm/shm.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/mm/shm/shmat.c b/mm/shm/shmat.c
index 2acf72e8a3..a6b08d210c 100644
--- a/mm/shm/shmat.c
+++ b/mm/shm/shmat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/shm/shmat.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/mm/shm/shmctl.c b/mm/shm/shmctl.c
index 8f12888353..01e1342465 100644
--- a/mm/shm/shmctl.c
+++ b/mm/shm/shmctl.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/shm/shmctl.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/mm/shm/shmdt.c b/mm/shm/shmdt.c
index df16286b02..073e0f925e 100644
--- a/mm/shm/shmdt.c
+++ b/mm/shm/shmdt.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/shm/shmdt.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/mm/shm/shmget.c b/mm/shm/shmget.c
index 0c6bcfc162..857c4fe792 100644
--- a/mm/shm/shmget.c
+++ b/mm/shm/shmget.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/shm/shmget.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/mm/tlsf/CMakeLists.txt b/mm/tlsf/CMakeLists.txt
index 3b3e3bb200..0f2734d471 100644
--- a/mm/tlsf/CMakeLists.txt
+++ b/mm/tlsf/CMakeLists.txt
@@ -1,6 +1,8 @@
#
##############################################################################
# mm/tlsf/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/mm/tlsf/Make.defs b/mm/tlsf/Make.defs
index c536c2890b..014a434188 100644
--- a/mm/tlsf/Make.defs
+++ b/mm/tlsf/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# mm/tlsf/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/mm/tlsf/mm_tlsf.c b/mm/tlsf/mm_tlsf.c
index 543b2c0d6d..48aade6a5b 100644
--- a/mm/tlsf/mm_tlsf.c
+++ b/mm/tlsf/mm_tlsf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/tlsf/mm_tlsf.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/mm/ubsan/CMakeLists.txt b/mm/ubsan/CMakeLists.txt
index f7fbd8304d..2e7bfb852d 100644
--- a/mm/ubsan/CMakeLists.txt
+++ b/mm/ubsan/CMakeLists.txt
@@ -1,6 +1,8 @@
#
##############################################################################
# mm/ubsan/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/mm/ubsan/Make.defs b/mm/ubsan/Make.defs
index b41f2503c4..98b4ad84f4 100644
--- a/mm/ubsan/Make.defs
+++ b/mm/ubsan/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# mm/ubsan/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/mm/ubsan/ubsan.c b/mm/ubsan/ubsan.c
index bfd86a10ec..27eea0df52 100644
--- a/mm/ubsan/ubsan.c
+++ b/mm/ubsan/ubsan.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/ubsan/ubsan.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/mm/ubsan/ubsan.h b/mm/ubsan/ubsan.h
index d9b31c5a0e..a09369907b 100644
--- a/mm/ubsan/ubsan.h
+++ b/mm/ubsan/ubsan.h
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/ubsan/ubsan.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/mm/umm_heap/CMakeLists.txt b/mm/umm_heap/CMakeLists.txt
index 78f906e780..816ddfb3fb 100644
--- a/mm/umm_heap/CMakeLists.txt
+++ b/mm/umm_heap/CMakeLists.txt
@@ -1,6 +1,8 @@
#
##############################################################################
# mm/umm_heap/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/mm/umm_heap/Make.defs b/mm/umm_heap/Make.defs
index e03b0bdaf8..5eb2af2a9f 100644
--- a/mm/umm_heap/Make.defs
+++ b/mm/umm_heap/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# mm/umm_heap/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/mm/umm_heap/umm_addregion.c b/mm/umm_heap/umm_addregion.c
index 4d1f0b641a..d5c2193377 100644
--- a/mm/umm_heap/umm_addregion.c
+++ b/mm/umm_heap/umm_addregion.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_addregion.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/mm/umm_heap/umm_brkaddr.c b/mm/umm_heap/umm_brkaddr.c
index 180db6150d..f82e54fe35 100644
--- a/mm/umm_heap/umm_brkaddr.c
+++ b/mm/umm_heap/umm_brkaddr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_brkaddr.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/mm/umm_heap/umm_calloc.c b/mm/umm_heap/umm_calloc.c
index 43b10e913f..3c16fa56db 100644
--- a/mm/umm_heap/umm_calloc.c
+++ b/mm/umm_heap/umm_calloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_calloc.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/mm/umm_heap/umm_checkcorruption.c
b/mm/umm_heap/umm_checkcorruption.c
index 3f4ad05bae..f6810e6699 100644
--- a/mm/umm_heap/umm_checkcorruption.c
+++ b/mm/umm_heap/umm_checkcorruption.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_checkcorruption.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/mm/umm_heap/umm_extend.c b/mm/umm_heap/umm_extend.c
index 06b2a851b6..0076377799 100644
--- a/mm/umm_heap/umm_extend.c
+++ b/mm/umm_heap/umm_extend.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_extend.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/mm/umm_heap/umm_free.c b/mm/umm_heap/umm_free.c
index ebdf95274d..446fb48c01 100644
--- a/mm/umm_heap/umm_free.c
+++ b/mm/umm_heap/umm_free.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_free.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/mm/umm_heap/umm_globals.c b/mm/umm_heap/umm_globals.c
index b5e6290fe3..70e541c88b 100644
--- a/mm/umm_heap/umm_globals.c
+++ b/mm/umm_heap/umm_globals.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_globals.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/mm/umm_heap/umm_heap.h b/mm/umm_heap/umm_heap.h
index fb42938145..2e23941e8d 100644
--- a/mm/umm_heap/umm_heap.h
+++ b/mm/umm_heap/umm_heap.h
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_heap.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/mm/umm_heap/umm_heapmember.c b/mm/umm_heap/umm_heapmember.c
index 9f3eaff28d..a013765d47 100644
--- a/mm/umm_heap/umm_heapmember.c
+++ b/mm/umm_heap/umm_heapmember.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_heapmember.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/mm/umm_heap/umm_initialize.c b/mm/umm_heap/umm_initialize.c
index cfad97d18f..9ddd8f8933 100644
--- a/mm/umm_heap/umm_initialize.c
+++ b/mm/umm_heap/umm_initialize.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_initialize.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/mm/umm_heap/umm_mallinfo.c b/mm/umm_heap/umm_mallinfo.c
index 6c6a144c1f..0e7e6675e4 100644
--- a/mm/umm_heap/umm_mallinfo.c
+++ b/mm/umm_heap/umm_mallinfo.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_mallinfo.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/mm/umm_heap/umm_malloc.c b/mm/umm_heap/umm_malloc.c
index 6be51611c3..ce1f639836 100644
--- a/mm/umm_heap/umm_malloc.c
+++ b/mm/umm_heap/umm_malloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_malloc.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/mm/umm_heap/umm_malloc_size.c b/mm/umm_heap/umm_malloc_size.c
index 5bc3e7f1d0..98e2f8198e 100644
--- a/mm/umm_heap/umm_malloc_size.c
+++ b/mm/umm_heap/umm_malloc_size.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_malloc_size.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/mm/umm_heap/umm_memalign.c b/mm/umm_heap/umm_memalign.c
index 52e53e3bd5..bb37e2d20d 100644
--- a/mm/umm_heap/umm_memalign.c
+++ b/mm/umm_heap/umm_memalign.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_memalign.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/mm/umm_heap/umm_memdump.c b/mm/umm_heap/umm_memdump.c
index 138d038edd..51552224f2 100644
--- a/mm/umm_heap/umm_memdump.c
+++ b/mm/umm_heap/umm_memdump.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_memdump.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/mm/umm_heap/umm_realloc.c b/mm/umm_heap/umm_realloc.c
index 45eb1732b6..f8e5ccc98b 100644
--- a/mm/umm_heap/umm_realloc.c
+++ b/mm/umm_heap/umm_realloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_realloc.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/mm/umm_heap/umm_sbrk.c b/mm/umm_heap/umm_sbrk.c
index 9488a3715d..351e0e7761 100644
--- a/mm/umm_heap/umm_sbrk.c
+++ b/mm/umm_heap/umm_sbrk.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_sbrk.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/mm/umm_heap/umm_zalloc.c b/mm/umm_heap/umm_zalloc.c
index 2155d3000e..ef023afe56 100644
--- a/mm/umm_heap/umm_zalloc.c
+++ b/mm/umm_heap/umm_zalloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* mm/umm_heap/umm_zalloc.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