Skip to content

Commit e0a06d3

Browse files
authored
Add Arm copyright and license notices to samples (#46)
Add missing Arm copyright and license notices to C and C++ files under the samples folders.
1 parent 842d494 commit e0a06d3

File tree

13 files changed

+74
-0
lines changed

13 files changed

+74
-0
lines changed

arm-software/embedded/newlib-samples/src/baremetal-semihosting-newlib/hello.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* Copyright (c) 2025, Arm Limited and affiliates.
2+
*
3+
* Part of the Arm Toolchain project, under the Apache License v2.0 with LLVM Exceptions.
4+
* See https://llvm.org/LICENSE.txt for license information.
5+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
6+
17
#include <stdio.h>
28

39
int main(void) {

arm-software/embedded/newlib-samples/src/cpp-baremetal-semihosting-newlib/hello.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* Copyright (c) 2025, Arm Limited and affiliates.
2+
*
3+
* Part of the Arm Toolchain project, under the Apache License v2.0 with LLVM Exceptions.
4+
* See https://llvm.org/LICENSE.txt for license information.
5+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
6+
17
// Include as many C++17 headers as possible.
28
// Unsupported headers are commented out.
39
#include <algorithm>

arm-software/embedded/samples/src/baremetal-semihosting-aarch64/hello.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* Copyright (c) 2020-2025, Arm Limited and affiliates.
2+
*
3+
* Part of the Arm Toolchain project, under the Apache License v2.0 with LLVM Exceptions.
4+
* See https://llvm.org/LICENSE.txt for license information.
5+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
6+
17
#include <stdio.h>
28

39
int main(void) {

arm-software/embedded/samples/src/baremetal-semihosting/hello.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* Copyright (c) 2020-2025, Arm Limited and affiliates.
2+
*
3+
* Part of the Arm Toolchain project, under the Apache License v2.0 with LLVM Exceptions.
4+
* See https://llvm.org/LICENSE.txt for license information.
5+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
6+
17
#include <stdio.h>
28

39
int main(void) {

arm-software/embedded/samples/src/baremetal-uart/hello.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* Copyright (c) 2020-2025, Arm Limited and affiliates.
2+
*
3+
* Part of the Arm Toolchain project, under the Apache License v2.0 with LLVM Exceptions.
4+
* See https://llvm.org/LICENSE.txt for license information.
5+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
6+
17
#include <stdio.h>
28

39
// https://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.pdf sections 14.2 and 29.10

arm-software/embedded/samples/src/cpp-baremetal-semihosting-cfi/hello.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* Copyright (c) 2023-2025, Arm Limited and affiliates.
2+
*
3+
* Part of the Arm Toolchain project, under the Apache License v2.0 with LLVM Exceptions.
4+
* See https://llvm.org/LICENSE.txt for license information.
5+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
6+
17
#include <iostream>
28

39
class Base {

arm-software/embedded/samples/src/cpp-baremetal-semihosting-exceptions/hello-exn.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* Copyright (c) 2024-2025, Arm Limited and affiliates.
2+
*
3+
* Part of the Arm Toolchain project, under the Apache License v2.0 with LLVM Exceptions.
4+
* See https://llvm.org/LICENSE.txt for license information.
5+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
6+
17
#include <iostream>
28

39
int main(void) {

arm-software/embedded/samples/src/cpp-baremetal-semihosting-exceptions/hello.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* Copyright (c) 2024-2025, Arm Limited and affiliates.
2+
*
3+
* Part of the Arm Toolchain project, under the Apache License v2.0 with LLVM Exceptions.
4+
* See https://llvm.org/LICENSE.txt for license information.
5+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
6+
17
#include <iostream>
28

39
int main(void) {

arm-software/embedded/samples/src/cpp-baremetal-semihosting-prof/hello.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* Copyright (c) 2023-2025, Arm Limited and affiliates.
2+
*
3+
* Part of the Arm Toolchain project, under the Apache License v2.0 with LLVM Exceptions.
4+
* See https://llvm.org/LICENSE.txt for license information.
5+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
6+
17
#include <iostream>
28
#include <vector>
39

arm-software/embedded/samples/src/cpp-baremetal-semihosting-prof/proflib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
|*
77
\*===----------------------------------------------------------------------===*/
88

9+
// Copyright (c) 2023-2025, Arm Limited and affiliates.
10+
911
// This file is derived from various files in compiler-rt of the llvm-project,
1012
// see https://github.com/llvm/llvm-project/tree/main/compiler-rt/lib/profile
1113

0 commit comments

Comments
 (0)