Blame view

buildroot/buildroot-2016.08.1/package/kodi-visualisation-goom/0001-cross-compile.patch 1.51 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  Fix cross-compilation
  
  Use the cross-compiler and not the host version.
  
  Patch sent upstream:
  https://github.com/notspiff/visualization.goom/pull/4
  
  Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  
  diff -uNr visualization.goom-fb5933ba5b2143d055cc7749dc60a82f6002b305.org/CMakeLists.txt visualization.goom-fb5933ba5b2143d055cc7749dc60a82f6002b305/CMakeLists.txt
  --- visualization.goom-fb5933ba5b2143d055cc7749dc60a82f6002b305.org/CMakeLists.txt	2014-10-31 11:34:21.000000000 +0100
  +++ visualization.goom-fb5933ba5b2143d055cc7749dc60a82f6002b305/CMakeLists.txt	2015-07-19 19:49:43.340054342 +0200
  @@ -13,6 +13,10 @@
                       ${KODI_INCLUDE_DIR}
                       ${PROJECT_SOURCE_DIR}/lib/goom2k4-0/src)
   
  +get_filename_component( COMPILER_FILENAME "${CMAKE_C_COMPILER}" NAME )
  +string( REGEX REPLACE "-[^-]+$" ""
  +        TOOLCHAIN_NAME "${COMPILER_FILENAME}" )
  +
   include(ExternalProject)
   set(update_command "")
   if(BOOTSTRAP_IN_TREE OR NOT DEFINED BOOTSTRAP_IN_TREE)
  @@ -20,7 +24,7 @@
   endif()
   externalproject_add(libgoom SOURCE_DIR ${PROJECT_SOURCE_DIR}/lib/goom2k4-0
                       "${update_command}"
  -                    CONFIGURE_COMMAND ${PROJECT_SOURCE_DIR}/lib/goom2k4-0/configure --disable-shared --enable-static --with-pic --prefix=<INSTALL_DIR>
  +                    CONFIGURE_COMMAND ${PROJECT_SOURCE_DIR}/lib/goom2k4-0/configure --disable-shared --enable-static --with-pic --prefix=<INSTALL_DIR> --host=${TOOLCHAIN_NAME}
                       BUILD_COMMAND ${MAKE}
                       INSTALL_COMMAND "")