build
Révision | b7da831d8094c48cbf507550453cbc3463d5dabe (tree) |
---|---|
l'heure | 2017-10-04 17:42:43 |
Auteur | XiNGRZ <chenxingyu92@gmai...> |
Commiter | XiNGRZ |
core: Prefix and build bison host executable if needed
This patch prefixed bison with HOST_OUT_EXECUTABLES to ensure using our
bison built from source. It also added bison to be a depencency of %.y
and %.yy tasks so that it will be built if needed without any manual
mka bison.
Change-Id: Ic207124965c704b3f350e96b58d8e1f2683c2601
@@ -891,7 +891,7 @@ y_yacc_cs := $(addprefix \ | ||
891 | 891 | ifneq ($(y_yacc_cs),) |
892 | 892 | $(y_yacc_cs): $(intermediates)/%.c: \ |
893 | 893 | $(TOPDIR)$(LOCAL_PATH)/%.y \ |
894 | - $(my_additional_dependencies) | |
894 | + $(my_additional_dependencies) | $(BISON) | |
895 | 895 | $(call transform-y-to-c-or-cpp) |
896 | 896 | $(call track-src-file-gen,$(y_yacc_sources),$(y_yacc_cs)) |
897 | 897 |
@@ -904,7 +904,7 @@ yy_yacc_cpps := $(addprefix \ | ||
904 | 904 | ifneq ($(yy_yacc_cpps),) |
905 | 905 | $(yy_yacc_cpps): $(intermediates)/%$(LOCAL_CPP_EXTENSION): \ |
906 | 906 | $(TOPDIR)$(LOCAL_PATH)/%.yy \ |
907 | - $(my_additional_dependencies) | |
907 | + $(my_additional_dependencies) | $(BISON) | |
908 | 908 | $(call transform-y-to-c-or-cpp) |
909 | 909 | $(call track-src-file-gen,$(yy_yacc_sources),$(yy_yacc_cpps)) |
910 | 910 |
@@ -535,7 +535,7 @@ endif | ||
535 | 535 | # BISON_PKGDATADIR. |
536 | 536 | BISON_PKGDATADIR := $(PWD)/external/bison/data |
537 | 537 | ifeq ($(USE_HOST_BISON),yes) |
538 | -BISON := bison | |
538 | +BISON := $(HOST_OUT_EXECUTABLES)/bison | |
539 | 539 | else |
540 | 540 | BISON := prebuilts/misc/$(BUILD_OS)-$(HOST_PREBUILT_ARCH)/bison/bison |
541 | 541 | endif |