From b708bc553381d2fa003f95b4a0d65016bc923f81 Mon Sep 17 00:00:00 2001 From: Shinichiro Hamaji Date: Tue, 5 Apr 2016 20:12:48 +0900 Subject: [PATCH] Add Bison binary and its data to prerequisite Bug: 27954979 Change-Id: Id68425ef85c07b9bd06d9640f4bf96270af1b893 --- core/binary.mk | 4 ++-- core/config.mk | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/binary.mk b/core/binary.mk index 280e0ba32..3113a4de2 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -812,7 +812,7 @@ y_yacc_cs := $(addprefix \ $(intermediates)/,$(y_yacc_sources:.y=.c)) ifneq ($(y_yacc_cs),) $(y_yacc_cs): $(intermediates)/%.c: \ - $(TOPDIR)$(LOCAL_PATH)/%.y \ + $(TOPDIR)$(LOCAL_PATH)/%.y $(BISON) $(BISON_DATA) \ $(my_additional_dependencies) $(call transform-y-to-c-or-cpp) $(call track-src-file-gen,$(y_yacc_sources),$(y_yacc_cs)) @@ -825,7 +825,7 @@ yy_yacc_cpps := $(addprefix \ $(intermediates)/,$(yy_yacc_sources:.yy=$(LOCAL_CPP_EXTENSION))) ifneq ($(yy_yacc_cpps),) $(yy_yacc_cpps): $(intermediates)/%$(LOCAL_CPP_EXTENSION): \ - $(TOPDIR)$(LOCAL_PATH)/%.yy \ + $(TOPDIR)$(LOCAL_PATH)/%.yy $(BISON) $(BISON_DATA) \ $(my_additional_dependencies) $(call transform-y-to-c-or-cpp) $(call track-src-file-gen,$(yy_yacc_sources),$(yy_yacc_cpps)) diff --git a/core/config.mk b/core/config.mk index 39c58da45..ebe348e44 100644 --- a/core/config.mk +++ b/core/config.mk @@ -500,6 +500,7 @@ LEX := prebuilts/misc/$(BUILD_OS)-$(HOST_PREBUILT_ARCH)/flex/flex-2.5.39 BISON_PKGDATADIR := $(PWD)/external/bison/data BISON := prebuilts/misc/$(BUILD_OS)-$(HOST_PREBUILT_ARCH)/bison/bison YACC := $(BISON) -d +BISON_DATA := $(wildcard external/bison/data/* external/bison/data/*/*) YASM := prebuilts/misc/$(BUILD_OS)-$(HOST_PREBUILT_ARCH)/yasm/yasm