summaryrefslogtreecommitdiffstats
path: root/cmake/scripts/rbpi
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2017-07-23 16:59:43 +0200
committermanuel <manuel@mausz.at>2017-07-23 16:59:43 +0200
commit4c3251ec645c8b71820dab7e51e612e5919d4e75 (patch)
tree9533268a93e58fc2e16de1b8ee3fafe3784e5225 /cmake/scripts/rbpi
parentf44ecaa4f27e7538ddcad66d40e543bffa2d2d86 (diff)
downloadkodi-pvr-build-4c3251ec645c8b71820dab7e51e612e5919d4e75.tar.gz
kodi-pvr-build-4c3251ec645c8b71820dab7e51e612e5919d4e75.tar.bz2
kodi-pvr-build-4c3251ec645c8b71820dab7e51e612e5919d4e75.zip
sync with upstream
Diffstat (limited to 'cmake/scripts/rbpi')
-rw-r--r--cmake/scripts/rbpi/ArchSetup.cmake35
l---------cmake/scripts/rbpi/ExtraTargets.cmake1
l---------cmake/scripts/rbpi/Install.cmake1
l---------cmake/scripts/rbpi/Macros.cmake1
l---------cmake/scripts/rbpi/PathSetup.cmake1
5 files changed, 0 insertions, 39 deletions
diff --git a/cmake/scripts/rbpi/ArchSetup.cmake b/cmake/scripts/rbpi/ArchSetup.cmake
deleted file mode 100644
index 6fc2c21..0000000
--- a/cmake/scripts/rbpi/ArchSetup.cmake
+++ /dev/null
@@ -1,35 +0,0 @@
1set(ARCH_DEFINES -DTARGET_POSIX -DTARGET_LINUX -D_LINUX -D_ARMEL -DTARGET_RASPBERRY_PI
2 -DHAS_OMXPLAYER -DHAVE_OMXLIB)
3set(SYSTEM_DEFINES -D__STDC_CONSTANT_MACROS -D_LARGEFILE64_SOURCE
4 -D_FILE_OFFSET_BITS=64)
5set(PLATFORM_DIR linux)
6
7string(REGEX REPLACE "[ ]+" ";" SYSTEM_LDFLAGS "$ENV{LDFLAGS}")
8set(CMAKE_SYSTEM_NAME Linux)
9
10if(WITH_ARCH)
11 set(ARCH ${WITH_ARCH})
12else()
13 if(CPU STREQUAL arm1176jzf-s)
14 set(ARCH arm)
15 set(NEON False)
16 set(NEON_FLAGS "-mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp")
17 elseif(CPU MATCHES "cortex-a7" OR CPU MATCHES "cortex-a53")
18 set(ARCH arm)
19 set(NEON True)
20 set(NEON_FLAGS "-fPIC -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4 -mvectorize-with-neon-quad")
21 else()
22 message(SEND_ERROR "Unknown CPU: ${CPU}")
23 endif()
24endif()
25
26# Make sure we strip binaries in Release build
27if(CMAKE_BUILD_TYPE STREQUAL Release AND CMAKE_COMPILER_IS_GNUCXX)
28 set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")
29endif()
30
31find_package(CXX11 REQUIRED)
32
33set(MMAL_FOUND 1 CACHE INTERNAL "MMAL")
34set(OMX_FOUND 1 CACHE INTERNAL "OMX")
35set(OMXLIB_FOUND 1 CACHE INTERNAL "OMX")
diff --git a/cmake/scripts/rbpi/ExtraTargets.cmake b/cmake/scripts/rbpi/ExtraTargets.cmake
deleted file mode 120000
index e757c60..0000000
--- a/cmake/scripts/rbpi/ExtraTargets.cmake
+++ /dev/null
@@ -1 +0,0 @@
1../linux/ExtraTargets.cmake \ No newline at end of file
diff --git a/cmake/scripts/rbpi/Install.cmake b/cmake/scripts/rbpi/Install.cmake
deleted file mode 120000
index 28ce012..0000000
--- a/cmake/scripts/rbpi/Install.cmake
+++ /dev/null
@@ -1 +0,0 @@
1../linux/Install.cmake \ No newline at end of file
diff --git a/cmake/scripts/rbpi/Macros.cmake b/cmake/scripts/rbpi/Macros.cmake
deleted file mode 120000
index 2fdbb25..0000000
--- a/cmake/scripts/rbpi/Macros.cmake
+++ /dev/null
@@ -1 +0,0 @@
1../linux/Macros.cmake \ No newline at end of file
diff --git a/cmake/scripts/rbpi/PathSetup.cmake b/cmake/scripts/rbpi/PathSetup.cmake
deleted file mode 120000
index 6786c1c..0000000
--- a/cmake/scripts/rbpi/PathSetup.cmake
+++ /dev/null
@@ -1 +0,0 @@
1../linux/PathSetup.cmake \ No newline at end of file