File tree 4 files changed +36
-2
lines changed
4 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,15 @@ before_script:
31
31
- cp ./cgi-getfield ../dest/arm/
32
32
- rm -rf *
33
33
34
+ # build ostro binary
35
+ - ../tools/install_ostro_sdk.sh
36
+ - cmake -D CMAKE_TOOLCHAIN_FILE=../ostro_toolchain.cmake ..
37
+ - make
38
+ - cp ./tinyweb ../dest/ostro/
39
+ - cp ./cgi-getcookie ../dest/ostro/
40
+ - cp ./cgi-getfield ../dest/ostro/
41
+ - rm -rf *
42
+
34
43
# build android ndk binary
35
44
- cd ../tools
36
45
- ./install_android_ndk.sh
@@ -48,7 +57,7 @@ before_script:
48
57
# # copy busybox dest
49
58
- cp -r ../tools/busybox_dest/libs ./assets/system/
50
59
51
- - gradlew build --stacktrace
60
+ - ./ gradlew build --stacktrace
52
61
- cp -r build/outputs/apk ../dest/android_PIE/
53
62
- cd ..
54
63
@@ -66,7 +75,7 @@ before_script:
66
75
# # copy busybox dest
67
76
- cp -r ../tools/busybox_dest/libs ./assets/system/
68
77
69
- - gradlew build --stacktrace
78
+ - ./ gradlew build --stacktrace
70
79
- cp -r build/outputs/apk ../dest/android_non_PIE/
71
80
- cd ..
72
81
Original file line number Diff line number Diff line change
1
+ # this one is important
2
+ SET (CMAKE_SYSTEM_NAME Linux)
3
+
4
+ # specify the cross compiler
5
+ SET (CMAKE_C_COMPILER "/usr/local/ostroxt-x86_64/sysroots/x86_64-ostroxtsdk-linux/usr/bin/x86_64-ostro-linux/x86_64-ostro-linux-clang" )
6
+ SET (CMAKE_CXX_COMPILER "/usr/local/ostroxt-x86_64/sysroots/x86_64-ostroxtsdk-linux/usr/bin/x86_64-ostro-linux/x86_64-ostro-linux-clang++" )
7
+
8
+ # where is the target environment
9
+ SET (CMAKE_FIND_ROOT_PATH /usr/local/ostroxt-x86_64/sysroots/corei7-64-ostro-linux)
10
+
11
+ # search for programs in the build host directories
12
+ SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
13
+ # for libraries and headers in the target directories
14
+ SET (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
15
+ SET (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
16
+
17
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -lpthread" )
18
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -lpthread" )
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+
3
+ wget https://download.ostroproject.org/releases/ostro-os-xt/milestone/v1.0.0/sdk/intel-corei7-64/ostroxt-x86_64-corei7-64-toolchain-1.0+snapshot.sh
4
+
5
+ chmod a+x ostroxt-x86_64-corei7-64-toolchain-1.0+snapshot.sh
6
+
7
+ ./ostroxt-x86_64-corei7-64-toolchain-1.0+snapshot.sh -y > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments