Skip to content

Commit

Permalink
fixes for OI debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
debian_lenny build user committed Nov 30, 2009
1 parent 7afeb3d commit 25544b8
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
#include /usr/share/cdbs/1/class/autotools.mk

CFLAGS += -fvisibility=hidden

DEB_CONFIGURE_EXTRA_FLAGS := --disable-rpath --host=$(DEB_HOST_GNU_TYPE)
DEB_MAKE_CLEAN_TARGET := clean

clean::
cmake -D CMAKE_TOOLCHAIN_FILE=../tools/toolchain-$(DEB_HOST_GNU_TYPE)-oi.cmake -D GUI=CRGUI_XCB ..
cmake -D CMAKE_TOOLCHAIN_FILE=tools/toolchain-$(DEB_HOST_GNU_TYPE).cmake -D GUI=CRGUI_XCB .

# ./configure --prefix=/usr --sysconfdir=/etc $(DEB_CONFIGURE_EXTRA_FLAGS)
19 changes: 19 additions & 0 deletions tools/toolchain-arm-ip-linux-gnueabi.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# CMake toolchain file for building ARM software on OI environment

# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)

# specify the cross compiler
SET(CMAKE_C_COMPILER /usr/bin/arm-ip-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER /usr/bin/arm-ip-linux-gnueabi-g++)

# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /usr/arm-ip-linux-gnueabi)

# 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)
19 changes: 19 additions & 0 deletions tools/toolchain-mipsel-ip-linux-gnueabi.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# CMake toolchain file for building MIPS software on OI environment

# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)

# specify the cross compiler
SET(CMAKE_C_COMPILER /usr/bin/mipsel-ip-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER /usr/bin/mipsel-ip-linux-gnueabi-g++)

# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /usr/mipsel-ip-linux-gnueabi)

# 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)

0 comments on commit 25544b8

Please sign in to comment.