build: define source root directory and kernel arch for tool makefiles

This commit is contained in:
2023-04-30 14:25:41 +01:00
parent f349e4963c
commit c945ee059a

View File

@@ -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)