build: add support for building tools targeting host machine

This commit is contained in:
2023-02-07 11:25:33 +00:00
parent 625eac9ca7
commit 2f69bfd4f0
7 changed files with 374 additions and 3 deletions

8
tools/tool-config.mk Normal file
View File

@@ -0,0 +1,8 @@
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
TOOLS_DIR := $(patsubst %/,%,$(dir $(MAKEFILE_PATH)))
include $(TOOLS_DIR)/make/gcc-host.mk
TOOLS_BUILD_DIR := $(TOOLS_DIR)/../build/tools
BUILD_DIR := $(TOOLS_BUILD_DIR)/$(TOOL_NAME)