[make] define and undefine some make variables

Based on building with --warn-undefined-variables, find a few places in
the build system where undefined variables were used incorrectly, or
never set due to unused code.
This commit is contained in:
Travis Geiselbrecht
2022-07-22 23:45:42 -07:00
parent 8372f46055
commit cd96c43006
4 changed files with 10 additions and 7 deletions

View File

@@ -38,9 +38,6 @@ ifeq ($(RISCV_MODE),supervisor)
KERNEL_LOAD_OFFSET ?= 0x00200000 # kernel load offset
endif
# sifive_e or _u?
GLOBAL_DEFINES += PLATFORM_${VARIANT}=1
# set some global defines based on capability
GLOBAL_DEFINES += ARCH_RISCV_CLINT_BASE=0x02000000
GLOBAL_DEFINES += ARCH_RISCV_MTIME_RATE=10000000