-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic s390x and riscv64 build system support
- Loading branch information
Showing
21 changed files
with
98 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,5 @@ include config/extra/with-openssl.mk | |
include config/extra/with-rocksdb.mk | ||
|
||
endif | ||
|
||
FD_ARCH_SUPPORTS_SANDBOX:=1 |
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
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
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
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
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 |
---|---|---|
@@ -1,17 +1,29 @@ | ||
BUILDDIR:=linux/gcc/power9 | ||
|
||
include config/base.mk | ||
include config/extra/with-clang.mk | ||
include config/extra/with-debug.mk | ||
include config/extra/with-gcc.mk | ||
|
||
CPPFLAGS:=-mcpu=power9 | ||
LDFLAGS:=-lm | ||
|
||
ifneq ($(shell uname -m),ppc64le) | ||
CROSS=1 | ||
endif | ||
|
||
ifeq ($(CROSS),1) | ||
CC:=powerpc64le-linux-gnu-gcc | ||
CXX:=powerpc64le-linux-gnu-g++ | ||
LD:=powerpc64le-linux-gnu-g++ | ||
endif | ||
|
||
include config/extra/with-brutality.mk | ||
include config/extra/with-optimization.mk | ||
include config/extra/with-debug.mk | ||
include config/extra/with-security.mk | ||
include config/extra/with-threads.mk | ||
|
||
CPPFLAGS+=-D_XOPEN_SOURCE=700 | ||
CPPFLAGS+=-DFD_HAS_INT128=1 -DFD_HAS_DOUBLE=1 -DFD_HAS_ALLOCA=1 | ||
CPPFLAGS+=-DFD_ENV_STYLE=0 -DFD_IO_STYLE=0 -DFD_LOG_STYLE=0 | ||
CPPFLAGS+=-DFD_HAS_ATOMIC=1 | ||
|
||
FD_HAS_INT128:=1 | ||
FD_HAS_DOUBLE:=1 | ||
FD_HAS_ALLOCA:=1 | ||
FD_HAS_ATOMIC:=1 | ||
|
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,29 @@ | ||
BUILDDIR:=linux/gcc/riscv | ||
|
||
include config/base.mk | ||
include config/extra/with-gcc.mk | ||
|
||
CPPFLAGS:= | ||
LDFLAGS:=-lm | ||
|
||
ifneq ($(shell uname -m),ppc64le) | ||
CROSS=1 | ||
endif | ||
|
||
ifeq ($(CROSS),1) | ||
CC:=riscv64-linux-gnu-gcc | ||
CXX:=riscv64-linux-gnu-g++ | ||
LD:=riscv64-linux-gnu-g++ | ||
endif | ||
|
||
include config/extra/with-brutality.mk | ||
include config/extra/with-optimization.mk | ||
include config/extra/with-debug.mk | ||
include config/extra/with-security.mk | ||
include config/extra/with-threads.mk | ||
|
||
CPPFLAGS+=-DFD_HAS_INT128=1 -DFD_HAS_DOUBLE=1 -DFD_HAS_ALLOCA=1 | ||
|
||
FD_HAS_INT128:=1 | ||
FD_HAS_DOUBLE:=1 | ||
FD_HAS_ALLOCA:=1 |
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,29 @@ | ||
BUILDDIR:=linux/gcc/s390x | ||
|
||
include config/base.mk | ||
include config/extra/with-gcc.mk | ||
|
||
CPPFLAGS:= | ||
LDFLAGS:=-lm | ||
|
||
ifneq ($(shell uname -m),s390x) | ||
CROSS=1 | ||
endif | ||
|
||
ifeq ($(CROSS),1) | ||
CC:=s390x-linux-gnu-gcc | ||
CXX:=s390x-linux-gnu-g++ | ||
LD:=s390x-linux-gnu-g++ | ||
endif | ||
|
||
include config/extra/with-brutality.mk | ||
include config/extra/with-optimization.mk | ||
include config/extra/with-debug.mk | ||
include config/extra/with-security.mk | ||
include config/extra/with-threads.mk | ||
|
||
CPPFLAGS+=-DFD_HAS_INT128=1 -DFD_HAS_DOUBLE=1 -DFD_HAS_ALLOCA=1 | ||
|
||
FD_HAS_INT128:=1 | ||
FD_HAS_DOUBLE:=1 | ||
FD_HAS_ALLOCA:=1 |
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
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
ifdef FD_HAS_HOSTED | ||
ifdef FD_HAS_LINUX | ||
ifdef FD_ARCH_SUPPORTS_SANDBOX | ||
$(call add-hdrs,fd_sandbox.h) | ||
$(call add-objs,fd_sandbox,fd_util) | ||
$(call make-unit-test,test_sandbox,test_sandbox,fd_util) | ||
endif | ||
endif | ||
endif |