]> git.baikalelectronics.ru Git - kernel.git/commit
merge_config.sh: ignore unwanted grep errors
authorGuillaume Tucker <guillaume.tucker@collabora.com>
Mon, 2 Sep 2019 15:18:36 +0000 (16:18 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 4 Sep 2019 14:12:50 +0000 (23:12 +0900)
commitddd018fdf0dca19a20dd1971ac22d96cc89cab76
treed6cbd184ece20c424c9089678ceb05bb0e7bf622
parent0e3c9dcd05798274236f7c7bec0f4b3a2e16eadf
merge_config.sh: ignore unwanted grep errors

The merge_config.sh script verifies that all the config options have
their expected value in the resulting file and prints any issues as
warnings.  These checks aren't intended to be treated as errors given
the current implementation.  However, since "set -e" was added, if the
grep command to look for a config option does not find it the script
will then abort prematurely.

Handle the case where the grep exit status is non-zero by setting
ACTUAL_VAL to an empty string to restore previous functionality.

Fixes: 76064cb3919f ("merge_config.sh: Check error codes from make")
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kconfig/merge_config.sh