Build: fix assert_boolean implementation
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 23 May 2017 14:45:01 +0000 (23:45 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 23 May 2017 14:57:49 +0000 (23:57 +0900)
commitbe4cd40e8b91cb7f90109fb254c5540d57b12b0a
tree97b9a89174eed144414b05d41154b6770949107b
parent727a68b8ef02f48316ef13903a63af2638f6bbd3
Build: fix assert_boolean implementation

The current assert_boolean does not work with variables assigned with
'=' flavor instead of ':='.

For example,

 FOO = $(BAR)
 BAR := 1

Here, $(value FOO) is evaluated to $(BAR), not 1.  This is not what
we expect.  While I am here, I simplified the implementation.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
make_helpers/build_macros.mk