Skip to content

Commit

Permalink
ansible: add gcc 4.9 to the cross compiling machine (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
seishun authored and joaocgreis committed Apr 3, 2018
1 parent 9a58175 commit 6bd9147
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 8 deletions.
4 changes: 4 additions & 0 deletions ansible/roles/cross-compiler/files/cc-armv6-4.9.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export CC_host='ccache gcc-4.9 -m32'
export CXX_host='ccache g++-4.9 -m32'
export CC="ccache /opt/raspberrypi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -march=armv6zk"
export CXX="ccache /opt/raspberrypi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -march=armv6zk"
4 changes: 4 additions & 0 deletions ansible/roles/cross-compiler/files/cc-armv7-4.9.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export CC_host='ccache gcc-4.9 -m32'
export CXX_host='ccache g++-4.9 -m32'
export CC="ccache /opt/raspberrypi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -march=armv7-a"
export CXX="ccache /opt/raspberrypi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -march=armv7-a"
24 changes: 18 additions & 6 deletions ansible/roles/cross-compiler/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,28 @@
repo: https://github.com/raspberrypi/tools.git
dest: /opt/raspberrypi/tools

- name: Raspberry | Copy cc-armv6.sh script
- name: Raspberry | Copy cc-armv6-4.8.sh script
copy:
src: ./files/cc-armv6.sh
dest: /opt/raspberrypi/cc-armv6.sh
src: ./files/cc-armv6-4.8.sh
dest: /opt/raspberrypi/cc-armv6-4.8.sh
mode: 0755

- name: Raspberry | Copy cc-armv7.sh script
- name: Raspberry | Copy cc-armv7-4.8.sh script
copy:
src: ./files/cc-armv7.sh
dest: /opt/raspberrypi/cc-armv7.sh
src: ./files/cc-armv7-4.8.sh
dest: /opt/raspberrypi/cc-armv7-4.8.sh
mode: 0755

- name: Raspberry | Copy cc-armv6-4.9.sh script
copy:
src: ./files/cc-armv6-4.9.sh
dest: /opt/raspberrypi/cc-armv6-4.9.sh
mode: 0755

- name: Raspberry | Copy cc-armv7-4.9.sh script
copy:
src: ./files/cc-armv7-4.9.sh
dest: /opt/raspberrypi/cc-armv7-4.9.sh
mode: 0755

- name: User | Download Jenkins pubkey
Expand Down
6 changes: 4 additions & 2 deletions ansible/roles/cross-compiler/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---

packages:
- gcc-multilib
- g++-multilib
- gcc-4.8-multilib
- g++-4.8-multilib
- gcc-4.9-multilib
- g++-4.9-multilib
- python-all
- python-software-properties
- curl
Expand Down

0 comments on commit 6bd9147

Please sign in to comment.