From 0eea50f5a0a0e973ba0b2dcc6b1fba94028a2769 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 26 Jun 2019 00:12:32 +0200 Subject: [PATCH] Add support for compilation on RaspberryPiZero (armv6) More generally, add support for platforms with atomics, which not really linked to architecture but compiler features. This may also help on some mips for example. --- CHANGELOG.md | 1 + client/Makefile | 2 +- .../Linux-Installation-Instructions.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de1f4f293..4726645c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] + - Add support for compilation on RaspberryPiZero (armv6) (@doegox) - Change: updates to README (@iceman) - Change: hf mf/mfu dbg => hw dbg (@doegox) - Change: replace usb_poll_validate_length() by data_available() that supports USART too (@doegox) diff --git a/client/Makefile b/client/Makefile index c3300b0cd..135b143e4 100644 --- a/client/Makefile +++ b/client/Makefile @@ -31,7 +31,7 @@ platform = $(shell uname) VPATH = ../common ../zlib ../uart OBJDIR = obj -LDLIBS = -L/opt/local/lib -L/usr/local/lib -lreadline -lpthread -lm +LDLIBS = -L/opt/local/lib -L/usr/local/lib -lreadline -lpthread -lm -Wl,--as-needed -latomic -Wl,--no-as-needed LUALIB = ../liblua/liblua.a JANSSONLIBPATH = ./jansson JANSSONLIB = $(JANSSONLIBPATH)/libjansson.a diff --git a/doc/md/Installation_Instructions/Linux-Installation-Instructions.md b/doc/md/Installation_Instructions/Linux-Installation-Instructions.md index 5eb8bc66b..065672bca 100644 --- a/doc/md/Installation_Instructions/Linux-Installation-Instructions.md +++ b/doc/md/Installation_Instructions/Linux-Installation-Instructions.md @@ -13,7 +13,7 @@ You might want to follow one of these external resources to get an overview, but # Install the required dependencies -## On Debian / Ubuntu / Kali / ParrotOS +## On Debian / Ubuntu / Kali / ParrotOS / Raspbian First what we want to do is get an update for the system. If you need to upgrade do this **before** the install. An upgrade was carried out prior to following these instructions.