Adapt base-codezero to new ports mechanism

Fixes #1425
This commit is contained in:
Norman Feske
2015-03-02 12:16:36 +01:00
parent 54ef87c979
commit f9269f5cb1
14 changed files with 58 additions and 125 deletions

View File

@ -2,17 +2,7 @@
# Specifics for the Codezero kernel API
#
#
# Read default and builddir-specific config files
#
# In these config files, we expect to find the definition of CODEZERO_DIR
#
-include $(call select_from_repositories,etc/codezero.conf)
-include $(BUILD_BASE_DIR)/etc/codezero.conf
ifeq ($(CODEZERO_DIR),)
$(error Could not find the definition of CODEZERO_DIR in etc/codezero.conf)
endif
CODEZERO_DIR := $(call select_from_ports,codezero)/src/kernel/codezero
#
# Convert path to absolute directory
@ -28,11 +18,9 @@ INC_DIR += $(BUILD_BASE_DIR)/include
#
# Codezero headers
#
CODEZERO_ABS_DIR = $(call absdir,$(CODEZERO_DIR))
INC_DIR += $(CODEZERO_ABS_DIR)/include
INC_DIR += $(CODEZERO_ABS_DIR)/conts/userlibs/libl4/include
INC_DIR += $(CODEZERO_ABS_DIR)/conts/userlibs/libdev/uart/include
INC_DIR += $(CODEZERO_DIR)/include
INC_DIR += $(CODEZERO_DIR)/conts/userlibs/libl4/include
INC_DIR += $(CODEZERO_DIR)/conts/userlibs/libdev/uart/include
#
# Allow programs to test for the Codezero kernel