xref: /OK3568_Linux_fs/buildroot/support/dependencies/check-host-bison-flex.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1# If the system lacks bison or flex, add
2# dependencies to suitable host packages
3#
4# BR2_{BISON,FLES}_HOST_DEPENDENCY should only be used to build code
5# that runs on host, e.g. Kconfig. To build code for target use plain
6# host-{bison,flex}.
7
8ifeq ($(shell which bison 2>/dev/null),)
9BR2_BISON_HOST_DEPENDENCY = host-bison
10endif
11
12ifeq ($(shell which flex 2>/dev/null),)
13BR2_FLEX_HOST_DEPENDENCY = host-flex
14endif
15