forked from genodelabs/goa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
evaluate import-<api-name>.mk files if present
If a used API contains an import-<api-name>.mk file, we evalute this in order to set the include directories appropriately. This relieves us from most quirks. genodelabs#81
- Loading branch information
Showing
13 changed files
with
134 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/make -f | ||
|
||
ARCH ?= x86_64 | ||
REP_DIR ?= $(firstword $(REPOSITORIES)) | ||
|
||
select_from_repositories = $(firstword $(foreach REP,$(REPOSITORIES),$(wildcard $(REP)/$(1)))) | ||
select_from_ports = $(REP_DIR) | ||
|
||
# set up SPECS | ||
BASE_DIR := $(TOOL_DIR) | ||
SPECS := $(ARCH) | ||
include $(BASE_DIR)/mk/spec/$(ARCH).mk | ||
|
||
include $(IMPORT_MK) | ||
|
||
ALL_INC_DIR := $(INC_DIR) | ||
ALL_INC_DIR += $(foreach DIR,$(REP_INC_DIR), $(foreach REP,$(REPOSITORIES),$(REP)/$(DIR))) | ||
ALL_INC_DIR += $(foreach REP,$(REPOSITORIES),$(REP)/include) | ||
|
||
include_dirs: | ||
@echo ${ALL_INC_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# | ||
# 32-bit-specific Genode headers | ||
# | ||
REP_INC_DIR += include/spec/32bit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# | ||
# 64-bit-specific Genode headers | ||
# | ||
REP_INC_DIR += include/spec/64bit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# ARM-specific Genode headers | ||
# | ||
REP_INC_DIR += include/spec/arm | ||
|
||
SPECS += 32bit | ||
|
||
# | ||
# Prevent compiler message | ||
# "note: the mangling of 'va_list' has changed in GCC 4.4" | ||
# | ||
CC_C_OPT += -Wno-psabi | ||
CC_CXX_OPT += -Wno-psabi | ||
|
||
include $(BASE_DIR)/mk/spec/32bit.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SPECS += arm | ||
REP_INC_DIR += include/spec/arm_v6 | ||
CC_MARCH ?= -march=armv6k -mfpu=vfp -mfloat-abi=softfp | ||
|
||
include $(BASE_DIR)/mk/spec/arm.mk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SPECS += arm | ||
REP_INC_DIR += include/spec/arm_v7 | ||
|
||
include $(BASE_DIR)/mk/spec/arm.mk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SPECS += arm_v7 | ||
CC_MARCH ?= -march=armv7-a -mfpu=vfpv3 -mfloat-abi=softfp | ||
|
||
include $(BASE_DIR)/mk/spec/arm_v7.mk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SPECS += arm_v8 arm_64 64bit neon | ||
REP_INC_DIR += include/spec/arm_v8 | ||
REP_INC_DIR += include/spec/arm_64 | ||
|
||
CC_MARCH ?= -march=armv8-a | ||
|
||
include $(BASE_DIR)/mk/spec/64bit.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SPECS += 64bit | ||
REP_INC_DIR += include/spec/riscv | ||
|
||
# force soft-float for binutiles | ||
AS_OPT += -march rv64imac -mabi=lp64 | ||
|
||
include $(BASE_DIR)/mk/spec/64bit.mk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# Specifics for 32-bit x86 | ||
# | ||
SPECS += x86 32bit | ||
|
||
# | ||
# x86-specific Genode headers | ||
# | ||
REP_INC_DIR += include/spec/x86 | ||
REP_INC_DIR += include/spec/x86_32 | ||
|
||
# | ||
# x86-specific flags | ||
# | ||
CC_MARCH ?= -march=i686 -m32 | ||
LD_MARCH ?= -melf_i386 | ||
AS_MARCH ?= -march=i686 --32 | ||
|
||
include $(BASE_DIR)/mk/spec/32bit.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# Specifics for 64-bit x86 | ||
# | ||
SPECS += x86 64bit | ||
|
||
# | ||
# x86-specific Genode headers | ||
# | ||
REP_INC_DIR += include/spec/x86 | ||
REP_INC_DIR += include/spec/x86_64 | ||
|
||
CC_MARCH ?= -m64 -mcmodel=large | ||
|
||
# | ||
# Avoid wasting almost 4 MiB by telling the linker that the max page size is | ||
# 4K. Otherwise, the linker would align the text segment to a 4M boundary, | ||
# effectively adding 4M of zeros to each binary. | ||
# | ||
# See http://sourceware.org/ml/binutils/2009-04/msg00099.html | ||
# | ||
LD_MARCH ?= -melf_x86_64 | ||
|
||
include $(BASE_DIR)/mk/spec/64bit.mk |