From: Michael Wagner Date: Thu, 11 Feb 2021 18:55:06 +0000 (+0100) Subject: initial checkin X-Git-Tag: i686-linux-gnu-4.7-cross_0.1-1~5 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1faba6b41f00608d43bc0a6286e46284cf441ea1;p=cross.git initial checkin --- 1faba6b41f00608d43bc0a6286e46284cf441ea1 diff --git a/arm-linux-gnueabihf-4.9/toolset.cmake b/arm-linux-gnueabihf-4.9/toolset.cmake new file mode 100644 index 0000000..8254d45 --- /dev/null +++ b/arm-linux-gnueabihf-4.9/toolset.cmake @@ -0,0 +1,16 @@ +# Define our host system +SET(CMAKE_SYSTEM_NAME Linux) +SET(CMAKE_SYSTEM_VERSION 1)# Define the cross compiler locations +SET(CMAKE_C_COMPILER /opt/cross/arm-linux-gnueabihf-4.9/bin/arm-linux-gnueabihf-gcc) +SET(CMAKE_CXX_COMPILER /opt/cross/arm-linux-gnueabihf-4.9/bin/arm-linux-gnueabihf-g++)# Define the sysroot path for the RaspberryPi distribution in our tools folder +SET(CMAKE_FIND_ROOT_PATH /opt/cross/arm-linux-gnueabihf-4.9/arm-linux-gnueabihf/sysroot/)# Use our definitions for compiler tools + +SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +# Search for libraries and headers in the target directories only +SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +#add_definitions(-Wall -std=c11) +add_definitions(-Wall) +add_definitions(-std=c++11) +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" ) + diff --git a/debian/arm-linux-gnueabihf-4.9-cross.build b/debian/arm-linux-gnueabihf-4.9-cross.build new file mode 100755 index 0000000..7c2f2a1 --- /dev/null +++ b/debian/arm-linux-gnueabihf-4.9-cross.build @@ -0,0 +1,4 @@ +#!/bin/bash + +exit + diff --git a/debian/arm-linux-gnueabihf-4.9-cross.changelog b/debian/arm-linux-gnueabihf-4.9-cross.changelog new file mode 100644 index 0000000..071708d --- /dev/null +++ b/debian/arm-linux-gnueabihf-4.9-cross.changelog @@ -0,0 +1,4 @@ +projects (0.1-%BUILD%) unstable; urgency=medium + * initial version + -- Michael Wagner Sun, 22 Jan 2021 20:03:04 +0100 + diff --git a/debian/arm-linux-gnueabihf-4.9-cross.control b/debian/arm-linux-gnueabihf-4.9-cross.control new file mode 100644 index 0000000..0f7fb8b --- /dev/null +++ b/debian/arm-linux-gnueabihf-4.9-cross.control @@ -0,0 +1,10 @@ +Source: projects +Section: main +Priority: optional +Maintainer: Michael Wagner +Build-Depends: git + +Package: arm-linux-gnueabihf-4.9-cross +Architecture: amd64 +Description: Cross compile for Raspberry Pi + diff --git a/debian/arm-linux-gnueabihf-4.9-cross.cp b/debian/arm-linux-gnueabihf-4.9-cross.cp new file mode 100755 index 0000000..a7cbc5f --- /dev/null +++ b/debian/arm-linux-gnueabihf-4.9-cross.cp @@ -0,0 +1,7 @@ +#!/bin/bash +set -e + +mkdir -p $1/opt/cross/arm-linux-gnueabihf-4.9 +rsync -av --delete ../build/raspberry-tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/ $1/opt/cross/arm-linux-gnueabihf-4.9/ +cp cross/arm-linux-gnueabihf-4.9/toolset.cmake $1/opt/cross/arm-linux-gnueabihf-4.9/ + diff --git a/debian/arm-linux-gnueabihf-4.9-cross.prebuild b/debian/arm-linux-gnueabihf-4.9-cross.prebuild new file mode 100755 index 0000000..6ccc526 --- /dev/null +++ b/debian/arm-linux-gnueabihf-4.9-cross.prebuild @@ -0,0 +1,8 @@ +#!/bin/bash +set -e + +# clone toolset +git clone https://github.com/raspberrypi/tools raspberry-tools + +# this repos has no tags -> no checkout +