[build] add a few pseudo targets to assist with building

list-arch and list-toolchain will compute and print the architecture and
toolchain needed to build the project the build is set to.

Used by the CI builder to decide what toolchain to grab.
This commit is contained in:
Travis Geiselbrecht
2021-09-18 16:51:15 -07:00
parent 20af129a81
commit ddd7cba04d
3 changed files with 28 additions and 7 deletions

View File

@@ -1,3 +1,6 @@
# A collection of handy macros used all over the build system.
# This can be included anywhere and must not have any side effects.
# Find the local dir of the make file
GET_LOCAL_DIR = $(patsubst %/,%,$(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))))