add: get wiringpi from repos for arm

This commit is contained in:
Tobias Reisinger 2020-07-17 20:31:54 +02:00
parent 4c3c99ba5a
commit ec094aae04

View file

@ -9,21 +9,13 @@ platform:
arch: arm arch: arm
steps: steps:
- name: download-wiringpi
image: plugins/download
settings:
source: https://github.com/WiringPi/WiringPi/archive/final_official_2.50.tar.gz
destination: wiringPi.tar.gz
- name: makepkg - name: makepkg
image: agners/archlinuxarm image: agners/archlinuxarm
commands: commands:
- pacman -Syu --noconfirm base-devel awk tar - pacman -Syu --noconfirm base-devel awk tar wiringpi
- sed -i 's/(( EUID == 0 ))/(( 1 == 0 ))/g' /usr/bin/makepkg - sed -i 's/(( EUID == 0 ))/(( 1 == 0 ))/g' /usr/bin/makepkg
- export CFLAGS="-marm -mfpu=vfp -march=armv6zk+fp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s" - export CFLAGS="-marm -mfpu=vfp -march=armv6zk+fp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s"
- tar xzf wiringPi.tar.gz - cd core/
- cd WiringPi-final_official_2.50/
- ./build
- cd ../core/
- makepkg -s -f --cleanbuild --noconfirm - makepkg -s -f --cleanbuild --noconfirm
- cd ../core-testing - cd ../core-testing
- makepkg -s -f --cleanbuild --noconfirm - makepkg -s -f --cleanbuild --noconfirm