From 6ad2431694b346eb6b99279dbe56731b0230f021 Mon Sep 17 00:00:00 2001 From: s-matyukevich Date: Thu, 23 Nov 2017 02:37:01 -0700 Subject: [PATCH] build script updated --- Dockerfile | 2 +- build.sh | 2 +- src/lesson01/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9d87e037..b3a5bb5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ FROM ubuntu:16.04 MAINTAINER Sergey Matyukevich -RUN apt-get update && apt-get install -y gcc-aarch64-linux-gnu +RUN apt-get update && apt-get install -y gcc-aarch64-linux-gnu build-essential diff --git a/build.sh b/build.sh index 441b67d8..c42701a1 100755 --- a/build.sh +++ b/build.sh @@ -6,4 +6,4 @@ if [[ -z "$1" ]]; then exit 1 fi -docker run -it smatyukevich/raspberry-pi-os-builder "cd src/$1 && make" +docker run -it -v $(pwd)"/src/$1:/app" smatyukevich/raspberry-pi-os-builder "cd app && make" diff --git a/src/lesson01/Makefile b/src/lesson01/Makefile index 9c5fc3dd..ec0ab4ef 100644 --- a/src/lesson01/Makefile +++ b/src/lesson01/Makefile @@ -1,4 +1,4 @@ -ARMGNU ?= aarch64-linux-gnu +ARMGNU ?= gcc-aarch64-linux-gnu COPS = -Wall -nostdlib -nostartfiles -ffreestanding -Iinclude -mgeneral-regs-only