summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dan Willemsen <dwillemsen@google.com> 2020-08-12 14:48:08 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-08-12 14:48:08 +0000
commit1a9ee4054764b718a13af2c875dd9ff6e894cf6d (patch)
treec2a77d049d60579b2d00da833973a01e18ee6508
parent2dcabab1c920823367414df24029a397cad10e61 (diff)
parentfd72f7f3ac0a4bca65ff598d3ca24bf1225ba101 (diff)
Merge "Reland "Move some prebuilt build tool configs to Soong""
-rw-r--r--core/config.mk12
-rw-r--r--core/main.mk2
2 files changed, 4 insertions, 10 deletions
diff --git a/core/config.mk b/core/config.mk
index 51ec4ec417..57296d80a5 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -515,16 +515,8 @@ SOONG_ZIP := $(SOONG_HOST_OUT_EXECUTABLES)/soong_zip
# ---------------------------------------------------------------
# Generic tools.
-LEX := $(prebuilt_build_tools_bin_noasan)/flex
-# The default PKGDATADIR built in the prebuilt bison is a relative path
-# prebuilts/build-tools/common/bison.
-# To run bison from elsewhere you need to set up enviromental variable
-# BISON_PKGDATADIR.
-BISON_PKGDATADIR := $(prebuilt_build_tools)/common/bison
-BISON := $(prebuilt_build_tools_bin_noasan)/bison
-YACC := $(BISON) -d
-BISON_DATA := $(wildcard $(BISON_PKGDATADIR)/* $(BISON_PKGDATADIR)/*/*)
-M4 :=$= $(prebuilt_build_tools_bin_noasan)/m4
+# These dependencies are now handled via dependencies on prebuilt_build_tool
+BISON_DATA :=$=
YASM := prebuilts/misc/$(BUILD_OS)-$(HOST_PREBUILT_ARCH)/yasm/yasm
diff --git a/core/main.mk b/core/main.mk
index 83bbac448b..a3d594bba5 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -33,6 +33,8 @@ endif
include $(SOONG_MAKEVARS_MK)
+YACC :=$= $(BISON) -d
+
include $(BUILD_SYSTEM)/clang/config.mk
# Write the build number to a file so it can be read back in