Skip to content

Commit

Permalink
Make license collection optional, on by default
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Neyman <stilor@att.net>
  • Loading branch information
stilor committed Nov 7, 2018
1 parent 4270b8e commit 8fe21d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions config/global/paths.in
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion scripts/build/internals.sh
Expand Up @@ -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
}

0 comments on commit 8fe21d7

Please sign in to comment.