cmake: remove creating cmake configfiles here (moved to setup_toolchain() )

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2016-09-23 14:29:49 -07:00 committed by Lukas Rusak
parent aca0869cf4
commit 4e7c8d7e7c
No known key found for this signature in database
GPG Key ID: 8C310C807E7393A3

View File

@ -42,54 +42,3 @@ configure_host() {
-DCMAKE_USE_OPENSSL=ON \
-DBUILD_CursesDialog=0
}
post_makeinstall_host() {
mkdir -p $ROOT/$TOOLCHAIN/etc
cat >$ROOT/$TOOLCHAIN/etc/cmake-$TARGET_NAME.conf <<EOF
# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)
# processor (or hardware) of the target system
SET(CMAKE_SYSTEM_PROCESSOR $TARGET_ARCH)
# specify the cross compiler
SET(CMAKE_C_COMPILER $TARGET_CC)
SET(CMAKE_CXX_COMPILER $TARGET_CXX)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH $SYSROOT_PREFIX)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
EOF
cat >$ROOT/$TOOLCHAIN/etc/cmake-$HOST_NAME.conf <<EOF
# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)
# specify the host compiler
SET(CMAKE_C_COMPILER $HOST_CC)
SET(CMAKE_CXX_COMPILER $HOST_CXX)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH $ROOT/$TOOLCHAIN)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
EOF
}