From dff1df30bc8e5b94abb300d9e61703505590c338 Mon Sep 17 00:00:00 2001 From: David Betz Date: Mon, 26 Jan 2015 22:41:00 -0500 Subject: [PATCH] Add instructions for building the RaspberryPi loader. This is still untested. --- Makefile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1ea40d4..205f0e9 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,10 @@ RM=rm CC=cc ECHO=echo +OBJS=\ +$(OBJDIR)/p1load.o \ +$(OBJDIR)/ploader.o + OS?=macosx ifeq ($(OS),linux) @@ -12,6 +16,15 @@ OSINT=osint_linux LIBS= endif +ifeq ($(OS),raspberrypi) +OS=linux +CFLAGS+=-DLINUX -DRASPBERRY_PI +EXT= +OSINT=osint_linux +LIBS= +OBJS+=$(OBJDIR)/gpio_sysfs.o +endif + ifeq ($(OS),msys) CFLAGS += -DMINGW EXT=.exe @@ -39,10 +52,7 @@ TARGET=$(BINDIR)/p1load$(EXT) HDRS=\ ploader.h -OBJS=\ -$(OBJDIR)/p1load.o \ -$(OBJDIR)/ploader.o \ -$(foreach x, $(OSINT), $(OBJDIR)/$(x).o) +OBJS+=$(foreach x, $(OSINT), $(OBJDIR)/$(x).o) CFLAGS+=-Wall -DOS_$(OS) LDFLAGS=$(CFLAGS)