2020-04-08 15:24:34 +00:00
|
|
|
TMP := $(call select_from_repositories,lib/mk/bootstrap-hw.inc)
|
|
|
|
BASE_HW_DIR := $(TMP:%lib/mk/bootstrap-hw.inc=%)
|
2016-11-07 17:00:24 +00:00
|
|
|
|
|
|
|
LIBS = cxx
|
|
|
|
|
|
|
|
SRC_CC += bootstrap/env.cc
|
|
|
|
SRC_CC += bootstrap/init.cc
|
|
|
|
SRC_CC += bootstrap/lock.cc
|
2017-02-21 12:46:59 +00:00
|
|
|
SRC_CC += bootstrap/log.cc
|
2016-11-07 17:00:24 +00:00
|
|
|
SRC_CC += bootstrap/platform.cc
|
|
|
|
SRC_CC += bootstrap/thread.cc
|
2017-02-21 12:46:59 +00:00
|
|
|
SRC_CC += hw/capability.cc
|
2016-11-07 17:00:24 +00:00
|
|
|
SRC_CC += lib/base/allocator_avl.cc
|
|
|
|
SRC_CC += lib/base/avl_tree.cc
|
|
|
|
SRC_CC += lib/base/console.cc
|
|
|
|
SRC_CC += lib/base/elf_binary.cc
|
|
|
|
SRC_CC += lib/base/heap.cc
|
2017-03-06 16:15:58 +00:00
|
|
|
SRC_CC += lib/base/registry.cc
|
2016-11-07 17:00:24 +00:00
|
|
|
SRC_CC += lib/base/log.cc
|
|
|
|
SRC_CC += lib/base/output.cc
|
2019-10-16 13:06:44 +00:00
|
|
|
SRC_CC += lib/base/raw_output.cc
|
2016-11-07 17:00:24 +00:00
|
|
|
SRC_CC += lib/base/slab.cc
|
|
|
|
SRC_CC += lib/base/sleep.cc
|
|
|
|
SRC_CC += lib/base/sliced_heap.cc
|
|
|
|
SRC_CC += lib/startup/_main.cc
|
|
|
|
|
2020-04-08 15:24:34 +00:00
|
|
|
INC_DIR += $(BASE_HW_DIR)/src/bootstrap
|
|
|
|
INC_DIR += $(BASE_HW_DIR)/src/include
|
2016-11-07 17:00:24 +00:00
|
|
|
INC_DIR += $(BASE_DIR)/src/include
|
2017-02-21 12:46:59 +00:00
|
|
|
INC_DIR += $(BASE_DIR)/src/core/include # for boot_modules.h only
|
2016-11-07 17:00:24 +00:00
|
|
|
|
|
|
|
# configure multiprocessor mode
|
|
|
|
NR_OF_CPUS ?= 1
|
|
|
|
CC_OPT += -Wa,--defsym -Wa,NR_OF_CPUS=$(NR_OF_CPUS) -DNR_OF_CPUS=$(NR_OF_CPUS)
|
|
|
|
|
2020-04-08 15:24:34 +00:00
|
|
|
vpath base/% $(BASE_HW_DIR)/src
|
|
|
|
vpath bootstrap/% $(BASE_HW_DIR)/src
|
|
|
|
vpath hw/% $(BASE_HW_DIR)/src/lib
|
|
|
|
vpath lib/base/% $(BASE_HW_DIR)/src
|
|
|
|
vpath lib/muen/% $(BASE_HW_DIR)/src
|
2016-11-07 17:00:24 +00:00
|
|
|
vpath lib/base/% $(BASE_DIR)/src
|
|
|
|
vpath lib/startup/% $(BASE_DIR)/src
|