diff options
author | Alexey Neyman <stilor@att.net> | 2018-11-07 12:23:05 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-11-07 12:59:29 -0800 |
commit | 8fe21d70a249e2c6312bf3e4ea13e770ae18a89c (patch) | |
tree | 092f2ce4f788fb752c108c0533717d53f856fdd1 | |
parent | 4270b8e62e7f47bee214ddf1bc526df283f8b5aa (diff) | |
download | crosstool-ng-8fe21d70a249e2c6312bf3e4ea13e770ae18a89c.tar.gz crosstool-ng-8fe21d70a249e2c6312bf3e4ea13e770ae18a89c.tar.bz2 crosstool-ng-8fe21d70a249e2c6312bf3e4ea13e770ae18a89c.zip |
Make license collection optional, on by default
Signed-off-by: Alexey Neyman <stilor@att.net>
-rw-r--r-- | config/global/paths.in | 9 | ||||
-rw-r--r-- | scripts/build/internals.sh | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/config/global/paths.in b/config/global/paths.in index b4e93ee0..7c6c30cf 100644 --- a/config/global/paths.in +++ b/config/global/paths.in @@ -85,6 +85,15 @@ config BUILD_MANUALS Build the PDF and HTML manuals for the main components such as binutils, GCC, GDB, and the C library. +config INSTALL_LICENSES + bool "Install licenses" + default y + help + Collect the license files for all the components that went into + producing this toolchain (including the crosstool-NG itself) + and place them in /share/licenses directory within the prefix + directory. + config PREFIX_DIR_RO bool prompt "Render the toolchain read-only" diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh index f7107b49..3cd5eeb3 100644 --- a/scripts/build/internals.sh +++ b/scripts/build/internals.sh @@ -144,7 +144,9 @@ do_finish() { CT_DoForceRmdir "${CT_DEBUGROOT_DIR}/"{,usr/}{,share/}{man,info} fi - CT_InstallCopyingInformation + if [ "${CT_INSTALL_LICENSES}" = y ]; then + CT_InstallCopyingInformation + fi CT_EndStep } |