Skip to content

Commit 3dc6f6a

Browse files
committed
FEAT: new platform for TurrisOS
1 parent feaaef9 commit 3dc6f6a

File tree

1 file changed

+36
-7
lines changed

1 file changed

+36
-7
lines changed

make/rebol3.nest

+36-7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ version: 3.14.1
2727
#if OpenBSD? [ defines: TO_OPENBSD ]
2828
#if FreeBSD? [ defines: TO_FREEBSD ]
2929
#if (system/platform = 'NetBSD) [ defines: TO_NETBSD ]
30+
#if (system/platform = 'Turris) [ defines: TO_LINUX ]
3031

3132
#if Posix? [ clfag: -Wno-pointer-sign ] ;@@ Review these warnings and fix them!
3233

@@ -85,6 +86,13 @@ target-haiku: [
8586
library: [%network %iconv]
8687
defines: [ENDIAN_LITTLE USE_OLD_PIPE]
8788
]
89+
target-turris: [
90+
os: turris
91+
sys: linux
92+
platform: Turris
93+
vendor: pc
94+
compiler: gcc
95+
]
8896

8997
#if Linux? [
9098
cross-haiku-x86: [
@@ -462,7 +470,7 @@ include-image-codecs: [
462470
#if MacOS? [
463471
:include-image-os-codec
464472
]
465-
#if (find [Linux OpenBSD FreeBSD NetBSD] system/platform) [
473+
#if (find [Linux OpenBSD FreeBSD NetBSD Turris] system/platform) [
466474
:include-native-bmp-codec
467475
:include-native-png-codec
468476
:include-native-jpg-codec
@@ -1017,7 +1025,7 @@ common: [
10171025
flag: -mmacosx-version-min=10.9
10181026
entitlements: %make/Entitlements.plist
10191027
]
1020-
#if (find [Linux OpenBSD FreeBSD NetBSD] system/platform) [
1028+
#if (find [Linux OpenBSD FreeBSD NetBSD Turris] system/platform) [
10211029
library: %m
10221030
defines: ENDIAN_LITTLE
10231031
]
@@ -1032,20 +1040,18 @@ common-host: [
10321040
resource: %make/r3.rc
10331041
]
10341042
;#if Posix []
1035-
#if (find [Linux OpenBSD FreeBSD NetBSD Haiku] system/platform) [
1043+
#if (find [Linux OpenBSD FreeBSD NetBSD Haiku Turris] system/platform) [
10361044
flag: -fPIC ; position independent (used for libs)
10371045
]
10381046
]
10391047

10401048
common-64bit: [
10411049
define: _FILE_OFFSET_BITS=64
10421050

1043-
#if Windows? [
1051+
#either Windows? [
10441052
defines: _WIN32
10451053
defines: __LLP64__ ; 64-bit, long (integer) has 32 bits and 'void *' is sizeof(long long)
1046-
]
1047-
1048-
#if (find [Linux OpenBSD FreeBSD macOS Haiku] system/platform) [
1054+
][
10491055
;has long (integer) 64 bits
10501056
defines: __LP64__ ; same like LLP64, but long (integer) has 64 bits instead of 32
10511057
]
@@ -1188,6 +1194,10 @@ make-ext-test: [
11881194
flag: -fPIC
11891195
:target-netbsd
11901196
]
1197+
#if ('Turris = system/platform) [
1198+
flag: -fPIC
1199+
:target-turris
1200+
]
11911201
]
11921202

11931203
eggs: [
@@ -1715,6 +1725,25 @@ eggs: [
17151725
:make-x64-exe
17161726
]
17171727
]
1728+
#if (system/platform = 'turris) [
1729+
"Rebol/Base turris-armv7" [
1730+
name: %rebol3-base-turris-armv7
1731+
:target-turris
1732+
:make-armv7-exe
1733+
]
1734+
"Rebol/Core turris-armv7" [
1735+
name: %rebol3-core-turris-armv7
1736+
:target-turris
1737+
:include-rebol-core
1738+
:make-armv7-exe
1739+
]
1740+
"Rebol/Bulk turris-armv7" [
1741+
name: %rebol3-bulk-turris-armv7
1742+
:target-turris
1743+
:include-rebol-bulk
1744+
:make-armv7-exe
1745+
]
1746+
]
17181747
"Test extension 32bit" [
17191748
name: %test-x86.rebx
17201749
:arch-x86

0 commit comments

Comments
 (0)