mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-29 18:18:54 +00:00
bdd923406f
* Remove SPEC declarations from mk/spec * Remove all board-specific REQUIRE declaratiions left * Replace [have_spec <board>] run-script declarations with have_board where necessary * Remove addition of BOARD variable to SPECS in toplevel Makefile * Move board-specific directories in base-hw out of specs
32 lines
890 B
Makefile
32 lines
890 B
Makefile
include $(call select_from_repositories,etc/board.conf)
|
|
|
|
L4_INCLUDE_DIR := $(LIB_CACHE_DIR)/syscall-foc-$(BOARD)/build/include
|
|
|
|
ifeq ($(filter-out $(SPECS),x86_32),)
|
|
INC_DIR += $(L4_INCLUDE_DIR)/x86/l4f $(L4_INCLUDE_DIR)/x86
|
|
endif # 32bit
|
|
|
|
ifeq ($(filter-out $(SPECS),x86_64),)
|
|
INC_DIR += $(L4_INCLUDE_DIR)/amd64/l4f $(L4_INCLUDE_DIR)/amd64
|
|
endif # 64bit
|
|
|
|
ifeq ($(filter-out $(SPECS),arm),)
|
|
INC_DIR += $(L4_INCLUDE_DIR)/arm/l4f $(L4_INCLUDE_DIR)/arm
|
|
CC_OPT += -DARCH_arm
|
|
endif # ARM
|
|
|
|
ifeq ($(filter-out $(SPECS),arm_64),)
|
|
INC_DIR += $(L4_INCLUDE_DIR)/arm64/l4f $(L4_INCLUDE_DIR)/arm64
|
|
CC_OPT += -DARCH_arm64
|
|
endif # ARM
|
|
|
|
|
|
INC_DIR += $(L4_INCLUDE_DIR)/l4f $(L4_INCLUDE_DIR)
|
|
CC_OPT += -DCONFIG_L4_CALL_SYSCALLS
|
|
|
|
#
|
|
# Use 'regparm=0' call instead of an inline function, when accessing
|
|
# the utcb. This is needed to stay compatible with L4linux
|
|
#
|
|
CC_OPT += -DL4SYS_USE_UTCB_WRAP=1
|