Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup-environment-internal: add support for BSP's EULA
Some BSP might need EULA to be accepted, such as for example the BSP from meta-qcom. This is a generic implementation of the EULA mechanism. If a BSP needs a EULA, it needs to provide the EULA text file as conf/EULA/$MACHINE. In which case the text will be presented to the user, who can decide to accept it or not. When accepted, the variable ACCEPT_EULA_$MACHINE is set to '1' in auto.conf, and it can be used by the BSP layer. For automation and CI, it is possible to preset the value of ACCEPT_EULA_$MACHINE, by setting EULA_$MACHINE in the environment, before calling setup-environment scripts. Change-Id: I9fead8a8390bdee20d56cb3d22fa2ba3f42f2371 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> setup-environment-internal: do not fait when EULA is not used The logic we used to detect whether a EULA is needed or not relies on: find ../sources -print | grep "conf/eula/$MACHINE" However, when there is no EULA for a specific MACHINE, grep will return an error code, and if setup-environment script is called with 'set -e', then it will fail/abort, which is unexpected. We need this specific command to always return 0, whether the EULA exists or not, this is what this commit is about. Change-Id: I2520db42d6232ff12eee841b1ef1bf71fe210443 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
- Loading branch information