Skip to content

Commit

Permalink
Change license generated with script to Android license
Browse files Browse the repository at this point in the history
There are several scripts in devtools used to generate scripts to port
audio configs to Android. However, the licenses added in the scripts
are still ChromiumOS licenses.

Updated the license generation to generate Android licenses.

BUG=b:379257728
TEST=None

Change-Id: I0881807b7feb1fb332dc0d7ce91cd36123d70672
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/6048237
Tested-by: [email protected] <[email protected]>
Reviewed-by: Yu-Hsuan Hsu <[email protected]>
Commit-Queue: Baili Deng <[email protected]>
  • Loading branch information
baili0411 authored and Chromeos LUCI committed Nov 28, 2024
1 parent ca61149 commit 42f6b7b
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 15 deletions.
13 changes: 10 additions & 3 deletions devtools/ucm_converter/board/ucm_to_audio_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,16 @@ def dict_to_xml(data, output_file):
dict_to_xml_element(data, root)
# add the licence comment in the xml
comment = ET.Comment(
"Copyright 2024 The Chromium OS Authors. All rights reserved.\n"
"Use of this source code is governed by a BSD-style license that can be\n"
"found in the LICENSE file."
"Copyright (C) 2024 The Android Open Source Project\n\n"
"Licensed under the Apache License, Version 2.0 (the \"License\");\n"
"you may not use this file except in compliance with the License.\n"
"You may obtain a copy of the License at\n\n"
" http://www.apache.org/licenses/LICENSE-2.0\n\n"
"Unless required by applicable law or agreed to in writing, software \n"
"distributed under the License is distributed on an \"AS IS\" BASIS,\n"
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n"
"See the License for the specific language governing permissions and\n"
"limitations under the License."
)
root.insert(0, comment) # insert before the root's first child
tree = ET.ElementTree(root)
Expand Down
13 changes: 10 additions & 3 deletions devtools/ucm_converter/board/ucm_to_mixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,16 @@ def generate_mixer_paths_xml(config_data, output_file):

# Add the licence comment in the xml
comment = ET.Comment(
"Copyright 2024 The Chromium OS Authors. All rights reserved.\n"
"Use of this source code is governed by a BSD-style license that can be\n"
"found in the LICENSE file."
"Copyright (C) 2024 The Android Open Source Project\n\n"
"Licensed under the Apache License, Version 2.0 (the \"License\");\n"
"you may not use this file except in compliance with the License.\n"
"You may obtain a copy of the License at\n\n"
" http://www.apache.org/licenses/LICENSE-2.0\n\n"
"Unless required by applicable law or agreed to in writing, software \n"
"distributed under the License is distributed on an \"AS IS\" BASIS,\n"
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n"
"See the License for the specific language governing permissions and\n"
"limitations under the License."
)
mixer.insert(0, comment) # insert before the root's first child
tree = ET.ElementTree(mixer)
Expand Down
13 changes: 10 additions & 3 deletions devtools/ucm_converter/usb/ucm_to_audio_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,16 @@ def dict_to_xml(data, output_file):
dict_to_xml_element(data, root)
# add the licence comment in the xml
comment = ET.Comment(
"Copyright 2024 The Chromium OS Authors. All rights reserved.\n"
"Use of this source code is governed by a BSD-style license that can be\n"
"found in the LICENSE file."
"Copyright (C) 2024 The Android Open Source Project\n\n"
"Licensed under the Apache License, Version 2.0 (the \"License\");\n"
"you may not use this file except in compliance with the License.\n"
"You may obtain a copy of the License at\n\n"
" http://www.apache.org/licenses/LICENSE-2.0\n\n"
"Unless required by applicable law or agreed to in writing, software \n"
"distributed under the License is distributed on an \"AS IS\" BASIS,\n"
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n"
"See the License for the specific language governing permissions and\n"
"limitations under the License."
)
root.insert(0, comment) # insert before the root's first child
tree = ET.ElementTree(root)
Expand Down
13 changes: 10 additions & 3 deletions devtools/ucm_converter/usb/ucm_to_mixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,16 @@ def generate_mixer_paths_xml(config_data, output_file):

# Add the licence comment in the xml
comment = ET.Comment(
"Copyright 2024 The Chromium OS Authors. All rights reserved.\n"
"Use of this source code is governed by a BSD-style license that can be\n"
"found in the LICENSE file."
"Copyright (C) 2024 The Android Open Source Project\n\n"
"Licensed under the Apache License, Version 2.0 (the \"License\");\n"
"you may not use this file except in compliance with the License.\n"
"You may obtain a copy of the License at\n\n"
" http://www.apache.org/licenses/LICENSE-2.0\n\n"
"Unless required by applicable law or agreed to in writing, software \n"
"distributed under the License is distributed on an \"AS IS\" BASIS,\n"
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n"
"See the License for the specific language governing permissions and\n"
"limitations under the License."
)
mixer.insert(0, comment) # insert before the root's first child
tree = ET.ElementTree(mixer)
Expand Down
13 changes: 10 additions & 3 deletions devtools/volume_curves_converter/ini_to_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,16 @@ def dict_to_xml(data, output_file):
root = ET.Element("volumes")

comment = ET.Comment(
"Copyright 2024 The Chromium OS Authors. All rights reserved.\n"
"Use of this source code is governed by a BSD-style license that can be\n"
"found in the LICENSE file."
"Copyright (C) 2024 The Android Open Source Project\n\n"
"Licensed under the Apache License, Version 2.0 (the \"License\");\n"
"you may not use this file except in compliance with the License.\n"
"You may obtain a copy of the License at\n\n"
" http://www.apache.org/licenses/LICENSE-2.0\n\n"
"Unless required by applicable law or agreed to in writing, software \n"
"distributed under the License is distributed on an \"AS IS\" BASIS,\n"
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n"
"See the License for the specific language governing permissions and\n"
"limitations under the License."
)
root.insert(0, comment)

Expand Down

0 comments on commit 42f6b7b

Please sign in to comment.