[make] add BUILDDIR_SUFFIX build variable

This allows you to tag your build dirs with an optional string.

Update scripts/buildall to also allow building all release (DEBUG=0)
builds. Add a few other convenience switches.
This commit is contained in:
Travis Geiselbrecht
2022-07-23 15:57:53 -07:00
parent 576a7a7c82
commit 3dff26ae7b
2 changed files with 52 additions and 2 deletions

View File

@@ -54,7 +54,8 @@ endif # PROJECT == null
DEBUG ?= 2
BUILDDIR := $(BUILDROOT)/build-$(PROJECT)
BUILDDIR_SUFFIX ?=
BUILDDIR := $(BUILDROOT)/build-$(PROJECT)$(BUILDDIR_SUFFIX)
OUTBIN := $(BUILDDIR)/lk.bin
OUTELF := $(BUILDDIR)/lk.elf
CONFIGHEADER := $(BUILDDIR)/config.h