From 4f00eda9fa05364edd719b05b88e4445682eeee5 Mon Sep 17 00:00:00 2001 From: SzuWei Lin Date: Thu, 6 Apr 2017 17:12:27 +0800 Subject: Add Apache2 module license Bug: 36678371 Test: mmm system/libufdt, and success build Change-Id: I73059f5beca2242f8883fca86cb49d53d0f543b8 (cherry picked from commit 6ad4caae73191bdc2403185b6482969c17604c95) --- tests/apply_overlay.sh | 13 +++++++++++++ tests/common.sh | 13 +++++++++++++ tests/gen_test.sh | 13 +++++++++++++ tests/run_performance_test.sh | 13 +++++++++++++ tests/run_tests.sh | 13 +++++++++++++ tests/src/Android.mk | 14 +++++++++++++- tests/src/extract_dtb.c | 16 ++++++++++++++++ tests/src/fdt_overlay_test_app.c | 16 ++++++++++++++++ tests/src/ufdt_gen_test_dts.c | 16 ++++++++++++++++ tests/src/ufdt_overlay_test_app.c | 16 ++++++++++++++++ tests/src/util.c | 16 ++++++++++++++++ tests/src/util.h | 16 ++++++++++++++++ tests/verify_dto_inc.sh | 13 +++++++++++++ 13 files changed, 187 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/apply_overlay.sh b/tests/apply_overlay.sh index 8f23a41..55f863c 100755 --- a/tests/apply_overlay.sh +++ b/tests/apply_overlay.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright (C) 2016 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. PROG_NAME=`basename $0` diff --git a/tests/common.sh b/tests/common.sh index 7fcc4c4..241946e 100755 --- a/tests/common.sh +++ b/tests/common.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright (C) 2016 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. alert() { echo "$*" >&2 diff --git a/tests/gen_test.sh b/tests/gen_test.sh index 9b6d06c..b55e16f 100755 --- a/tests/gen_test.sh +++ b/tests/gen_test.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright (C) 2016 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # We want to generate two device tree blob (.dtb) files by combining # the "base" and "add" device tree source (.dts) files in two diff --git a/tests/run_performance_test.sh b/tests/run_performance_test.sh index 3cfc1ed..586a9b2 100755 --- a/tests/run_performance_test.sh +++ b/tests/run_performance_test.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright (C) 2016 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # Include some functions from common.sh. SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" diff --git a/tests/run_tests.sh b/tests/run_tests.sh index ea3e5ba..2953f07 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright (C) 2016 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # Include some functions from common.sh. SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" diff --git a/tests/src/Android.mk b/tests/src/Android.mk index bfd5c52..12eb152 100644 --- a/tests/src/Android.mk +++ b/tests/src/Android.mk @@ -1,4 +1,16 @@ -# Copyright 2016 The Android Open Source Project +# Copyright (C) 2016 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. LOCAL_PATH:= $(call my-dir) diff --git a/tests/src/extract_dtb.c b/tests/src/extract_dtb.c index 71b763f..8d74324 100644 --- a/tests/src/extract_dtb.c +++ b/tests/src/extract_dtb.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2016 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/tests/src/fdt_overlay_test_app.c b/tests/src/fdt_overlay_test_app.c index b023452..6420cea 100644 --- a/tests/src/fdt_overlay_test_app.c +++ b/tests/src/fdt_overlay_test_app.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2016 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/tests/src/ufdt_gen_test_dts.c b/tests/src/ufdt_gen_test_dts.c index 8f0a27f..69a4c3c 100644 --- a/tests/src/ufdt_gen_test_dts.c +++ b/tests/src/ufdt_gen_test_dts.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2016 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include #include diff --git a/tests/src/ufdt_overlay_test_app.c b/tests/src/ufdt_overlay_test_app.c index 587328c..013ba1b 100644 --- a/tests/src/ufdt_overlay_test_app.c +++ b/tests/src/ufdt_overlay_test_app.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2016 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include #include diff --git a/tests/src/util.c b/tests/src/util.c index 1c76773..7435d5b 100644 --- a/tests/src/util.c +++ b/tests/src/util.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2016 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include "util.h" #include diff --git a/tests/src/util.h b/tests/src/util.h index 3b68e14..4f63df2 100644 --- a/tests/src/util.h +++ b/tests/src/util.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2016 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef UTIL_H #define UTIL_H diff --git a/tests/verify_dto_inc.sh b/tests/verify_dto_inc.sh index ed258a0..6fee1e0 100755 --- a/tests/verify_dto_inc.sh +++ b/tests/verify_dto_inc.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright (C) 2016 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. PROG_NAME=`basename $0` -- cgit v1.2.3