Skip to content

Commit a74aee8

Browse files
committed
- Try to fix OpenSSL for Beaglebone
1 parent e4e3604 commit a74aee8

File tree

6 files changed

+29
-4
lines changed

6 files changed

+29
-4
lines changed

.build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ platforms:
6060
script_location: toolchain/ci
6161
template_location: toolchain/cmake/Templates
6262
version:
63-
hotfix: 28
63+
hotfix: 29
6464
major: 0
6565
minor: 3
6666
patch: 0

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,12 @@ if(OPENSSL_BUILD)
490490
)
491491
endif()
492492

493+
if(BEAGLE)
494+
list ( APPEND EXTRA_OPTS
495+
/usr/local/gcc-arm/arm-none-linux-gnueabihf/libc/usr/lib/libc.a
496+
)
497+
endif()
498+
493499
ExternalProject_Add ( OpenSSL
494500

495501
PREFIX ${CMAKE_BINARY_DIR}/openssl
@@ -514,6 +520,7 @@ if(OPENSSL_BUILD)
514520
no-hw
515521
no-engine
516522
no-async
523+
no-tests
517524

518525
--prefix=${CMAKE_BINARY_DIR}/install/openssl
519526
--openssldir=${CMAKE_BINARY_DIR}/install/openssl/data

toolchain/cmake/Modules/GitDependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function ( DEPENDENCY_GET )
2222
endif()
2323

2424
if("${DEP_EXTENSION}" STREQUAL "")
25-
set ( DEP_EXTENSION "tar.gz" )
25+
set ( DEP_EXTENSION "tar.bz2" )
2626
if(WIN32 AND NOT MINGW)
2727
set ( DEP_EXTENSION "zip" )
2828
endif()

toolchain/cmake/Toolchains/linux-beagle-armv7hf_linux.toolchain.cmake

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,41 @@ if(NOT SGX_SYSROOT)
2727
# Contains EGL, GLESv2 etc.
2828
set ( SGX_SYSROOT /sysroots/sgx-root )
2929
endif()
30+
if(NOT DEB_SYSROOT)
31+
# Contains sys libs for Wayland and DRM
32+
set ( DEB_SYSROOT /sysroots/${TOOLCHAIN_ARCH} )
33+
endif()
3034

3135
set ( CMAKE_FIND_ROOT_PATH
3236
${CMAKE_SYSROOT}
3337
${CMAKE_SYSROOT}/usr
38+
${SGX_SYSROOT}
39+
${DEB_SYSROOT}/usr
40+
${DEB_SYSROOT}
3441
)
3542

3643
set ( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
37-
set ( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
38-
set ( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
44+
#set ( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
45+
#set ( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
3946

4047
set ( CMAKE_LIBRARY_ARCHITECTURE "${TOOLCHAIN_ARCH}" CACHE STRING "" )
4148

4249
include_directories (
4350
${LIBC_SYSROOT}/usr/include
4451
${SGX_SYSROOT}/include
52+
${DEB_SYSROOT}/usr/include
4553
)
4654
link_directories (
4755
${LIBC_SYSROOT}/lib
4856
${LIBC_SYSROOT}/usr/lib
4957
${SGX_SYSROOT}/lib
5058
)
5159

60+
set ( CMAKE_LIBRARY_PATH
61+
${LIBC_SYSROOT}/lib
62+
${LIBC_SYSROOT}/usr/lib
63+
${SGX_SYSROOT}/lib
64+
${DEB_SYSROOT}/usr/lib/${TOOLCHAIN_ARCH}
65+
)
66+
5267
add_definitions(-D__BEAGLEBONE__ -D__BEAGLEBONEBLACK__)

toolchain/makers/Makefile.linux

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,6 +1284,7 @@ beaglebone.black: FORCE
12841284
$(CMAKE_SOURCE_DIR) \
12851285
-C$(CMAKE_SOURCE_DIR)/toolchain/cmake/Preload/nothing.cmake \
12861286
-DBUILD_BINARIES=$(GENERATE_PROGRAMS) \
1287+
-DBUILD_EGL=ON \
12871288
-DBUILD_GLES=ON \
12881289
-DBUILD_GLES_20=ON \
12891290
-DBUILD_OPENAL=OFF \
@@ -1316,6 +1317,7 @@ beaglebone.black.shell: FORCE
13161317
$(CMAKE_SOURCE_DIR) \
13171318
-C$(CMAKE_SOURCE_DIR)/toolchain/cmake/Preload/nothing.cmake \
13181319
-DBUILD_BINARIES=$(GENERATE_PROGRAMS) \
1320+
-DBUILD_EGL=ON \
13191321
-DBUILD_GLES=ON \
13201322
-DBUILD_GLES_20=ON \
13211323
-DBUILD_OPENAL=OFF \

toolchain/makers/coffee-config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,5 @@ gamecube.*:
9797
- -DBUILD_OPENAL=OFF
9898
- -DBUILD_OPENSSL=OFF
9999
- -DBUILD_SDL2=OFF
100+
- -DBUILD_EGL=ON
100101

0 commit comments

Comments
 (0)