aboutsummaryrefslogtreecommitdiff
path: root/checkbuild.py
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2016-01-07 18:15:30 -0800
committerDan Albert <danalbert@google.com>2016-01-08 13:45:35 -0800
commitfb58d4770189be7179303605bc37aebbb54e76ca (patch)
tree49cd797a165ffdf9d941e0a7ce680d5bae89816b /checkbuild.py
parenta17064c87bfa3c9eeb148f2203d801232577222f (diff)
downloadndk-fb58d4770189be7179303605bc37aebbb54e76ca.tar.gz
Package NOTICE files for binutils.
Bug: http://b/25592257 Change-Id: I9417a05156f996b5ffc5d52ae36eeb9505ccd237
Diffstat (limited to 'checkbuild.py')
-rw-r--r--checkbuild.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/checkbuild.py b/checkbuild.py
index bcbb2e726..cd81ef2ce 100644
--- a/checkbuild.py
+++ b/checkbuild.py
@@ -256,6 +256,10 @@ def build_binutils(out_dir, args):
for file_name in get_binutils_files(triple, has_gold, is_windows):
install_file(file_name, toolchain_path, install_dir)
+ license_path = build_support.android_path(
+ 'toolchain/binutils/binutils-2.25/COPYING')
+ shutil.copy2(license_path, os.path.join(install_dir, 'NOTICE'))
+
pack_binutils(arch, host_tag, out_dir, install_dir)
finally:
shutil.rmtree(tmpdir)