Created
March 30, 2015 07:34
-
-
Save Gui13/df0dac0494e67504b84a to your computer and use it in GitHub Desktop.
Rpi2 compilation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index e577430..f7102c7 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -26,7 +26,7 @@ PWD=$(shell pwd) | |
build-desktop clean-desktop \ | |
build-flexisip clean-flexisip \ | |
build-flexisip-rpm clean-flexisip-rpm \ | |
- build-python clean-python build-python-raspberry \ | |
+ build-python clean-python build-python-raspberry build-py-pi2 \ | |
build-bb10-i486 build-bb10-arm build-bb10 clean-bb10-i486 clean-bb10-arm clean-bb10 help-bb10 generate-bb10-sdk \ | |
build-ios-i386 build-ios-armv7 build-ios-armv7s build-ios clean-ios-i386 clean-ios-armv7 clean-ios-armv7s clean-ios help-ios generate-ios-sdk \ | |
veryclean | |
@@ -93,6 +93,13 @@ build-python-raspberry: | |
$(filter -D%,$(MAKEFLAGS)) && \ | |
make | |
+build-py-pi2: | |
+ mkdir -p WORK/cmake-py-pi2 && \ | |
+ cd WORK/cmake-py-pi2 && \ | |
+ cmake ../.. -DLINPHONE_BUILDER_CONFIG_FILE=configs/config-python-pi2.cmake \ | |
+ -DCMAKE_PREFIX_PATH=$(PWD)/OUTPUT -DCMAKE_INSTALL_PREFIX=$(PWD)/OUTPUT \ | |
+ $(filter -D%,$(MAKEFLAGS)) | |
+ | |
clean-python: | |
rm -rf WORK/Build-python && \ | |
rm -rf WORK/tmp-python | |
diff --git a/builders/vpx.cmake b/builders/vpx.cmake | |
index f3e8586..16395b0 100644 | |
--- a/builders/vpx.cmake | |
+++ b/builders/vpx.cmake | |
@@ -76,5 +76,5 @@ else() | |
"--prefix=${CMAKE_INSTALL_PREFIX}" | |
"--target=${EP_vpx_TARGET}" | |
) | |
- set(EP_vpx_CONFIGURE_ENV "LD=$CC") | |
+ set(EP_vpx_CONFIGURE_ENV "LD=$CC AS=$AS") | |
endif() | |
diff --git a/configs/config-python-pi2.cmake b/configs/config-python-pi2.cmake | |
new file mode 100644 | |
index 0000000..4b084e6 | |
--- /dev/null | |
+++ b/configs/config-python-pi2.cmake | |
@@ -0,0 +1,41 @@ | |
+############################################################################ | |
+# config-python-raspberry.cmake | |
+# Copyright (C) 2014 Belledonne Communications, Grenoble France | |
+# | |
+############################################################################ | |
+# | |
+# This program is free software; you can redistribute it and/or | |
+# modify it under the terms of the GNU General Public License | |
+# as published by the Free Software Foundation; either version 2 | |
+# of the License, or (at your option) any later version. | |
+# | |
+# This program is distributed in the hope that it will be useful, | |
+# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
+# GNU General Public License for more details. | |
+# | |
+# You should have received a copy of the GNU General Public License | |
+# along with this program; if not, write to the Free Software | |
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
+# | |
+############################################################################ | |
+ | |
+set(PACKAGE_NAME "linphone4raspberry") | |
+set(AS_COMPILER "/usr/bin/as") | |
+set(AUTOTOOLS_AS_COMPILER ${AS_COMPILER} CACHE PATH "Initial cache" FORCE) | |
+include("configs/config-python.cmake") | |
+ | |
+set(DEFAULT_VALUE_ENABLE_WASAPI OFF) | |
+ | |
+# ffmpeg | |
+set(EP_ffmpeg_CROSS_COMPILATION_OPTIONS | |
+ "--prefix=${CMAKE_INSTALL_PREFIX}" | |
+ "--arch=arm" | |
+ "--target-os=linux" | |
+) | |
+ | |
+# vpx | |
+set(EP_vpx_CROSS_COMPILATION_OPTIONS | |
+ "--prefix=${CMAKE_INSTALL_PREFIX}" | |
+ "--target=armv7-linux-gcc" | |
+) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment