Add instructions for building the RaspberryPi loader. This is still untested.

This commit is contained in:
David Betz 2015-01-26 22:41:00 -05:00
parent d5b5b31e98
commit dff1df30bc
1 changed files with 14 additions and 4 deletions

View File

@ -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)