build: define source root directory and kernel arch for tool makefiles
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
|
||||
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||
TOOLS_DIR := $(patsubst %/,%,$(dir $(MAKEFILE_PATH)))
|
||||
|
||||
SOCKS_ARCH ?= x86_64
|
||||
|
||||
include $(TOOLS_DIR)/make/gcc-host.mk
|
||||
SOURCE_ROOT := $(TOOLS_DIR)/..
|
||||
|
||||
TOOLS_BUILD_DIR := $(TOOLS_DIR)/../build/tools
|
||||
BUILD_DIR := $(TOOLS_BUILD_DIR)/$(TOOL_NAME)
|
||||
|
||||
Reference in New Issue
Block a user