Commit c10e7654 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

contribs: add boostrap code for Tizen

Unfortunately the Tizen toolchain uses standard linux target triplets
(like arm-linux-gnueabi or i386-linux-gnueabi) and thus cannot be easily
detected otherwise.
parent 79fb35fc
...@@ -225,6 +225,16 @@ check_android_sdk() ...@@ -225,6 +225,16 @@ check_android_sdk()
[ ${ANDROID_ABI} = "armeabi" -a -z "${NO_ARMV6}" ] && add_make_enabled "HAVE_ARMV6" [ ${ANDROID_ABI} = "armeabi" -a -z "${NO_ARMV6}" ] && add_make_enabled "HAVE_ARMV6"
} }
check_tizen_sdk()
{
[ -z "${TIZEN_SDK}" ] && echo "You must set TIZEN_SDK environment variable" && exit 1
add_make "TIZEN_SDK := ${TIZEN_SDK}"
[ -z "${TIZEN_ABI}" ] && echo "You must set TIZEN_ABI environment variable" && exit 1
add_make "TIZEN_ABI := ${TIZEN_ABI}"
[ ${TIZEN_ABI} = "armv7l" ] && add_make_enabled "HAVE_NEON"
[ ${TIZEN_ABI} = "armv7l" ] && add_make_enabled "HAVE_ARMV7A"
}
test -z "$PREFIX" || add_make "PREFIX := $PREFIX" test -z "$PREFIX" || add_make "PREFIX := $PREFIX"
test -z "$BUILD_DISCS" || add_make_enabled "BUILD_DISCS" test -z "$BUILD_DISCS" || add_make_enabled "BUILD_DISCS"
test -z "$BUILD_ENCODERS" || add_make_enabled "BUILD_ENCODERS" test -z "$BUILD_ENCODERS" || add_make_enabled "BUILD_ENCODERS"
...@@ -279,6 +289,19 @@ case "${OS}" in ...@@ -279,6 +289,19 @@ case "${OS}" in
esac esac
;; ;;
*linux*) *linux*)
if [ "`${CC} -v 2>&1 | grep tizen`" ]; then
check_tizen_sdk
add_make_enabled "HAVE_TIZEN"
case "${HOST}" in
*arm*)
add_make "PLATFORM_SHORT_ARCH := arm"
;;
*i386*)
add_make "PLATFORM_SHORT_ARCH := x86"
;;
esac
fi
add_make_enabled "HAVE_LINUX" add_make_enabled "HAVE_LINUX"
;; ;;
*mingw*) *mingw*)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment