2016-11-07 17:00:24 +00:00
|
|
|
HW_DIR = $(BASE_DIR)/../base-hw
|
|
|
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
2017-02-21 12:46:59 +00:00
|
|
|
INC_DIR += $(HW_DIR)/src/bootstrap
|
2016-11-07 17:00:24 +00:00
|
|
|
INC_DIR += $(HW_DIR)/src/include
|
|
|
|
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)
|
|
|
|
|
2017-02-21 12:46:59 +00:00
|
|
|
vpath base/% $(HW_DIR)/src
|
|
|
|
vpath bootstrap/% $(HW_DIR)/src
|
|
|
|
vpath hw/% $(HW_DIR)/src/lib
|
2016-11-07 17:00:24 +00:00
|
|
|
vpath lib/base/% $(HW_DIR)/src
|
|
|
|
vpath lib/muen/% $(HW_DIR)/src
|
|
|
|
vpath lib/base/% $(BASE_DIR)/src
|
|
|
|
vpath lib/startup/% $(BASE_DIR)/src
|