Updated makefile to cross-compile and updated github workflow to install tools

This commit is contained in:
akuker 2020-08-27 23:16:23 -05:00
parent 7ca21414f3
commit 2338b9b791
2 changed files with 7 additions and 8 deletions

View File

@ -12,16 +12,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install cross compile toolchain
run: sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# - name: configure
# run: ./configure
- name: make - name: make
run: make all DEBUG=1 run: make all DEBUG=1
working-directory: ./src/raspberrypi working-directory: ./src/raspberrypi
# - name: make check
# run: make check
# - name: make distcheck
# run: make distcheck
# buildroot-image: # buildroot-image:
# runs-on: ubuntu-latest # runs-on: ubuntu-latest

View File

@ -1,7 +1,10 @@
.DEFAULT_GOAL: all .DEFAULT_GOAL: all
CC = gcc ARCH ?= arm
CXX = g++ CROSS_COMPILE ?= arm-linux-gnueabihf-
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
DEBUG ?= 0 DEBUG ?= 0
ifeq ($(DEBUG), 1) ifeq ($(DEBUG), 1)