################################################################################
#
#   Copyright (c) 2015 Minoca Corp. All Rights Reserved
#
#   Binary Name:
#
#       Blobs
#
#   Abstract:
#
#       This directory contains the binary blobs needed to boot the Raspberry
#       Pi and Raspberry Pi 2.
#
#   Author:
#
#       Evan Green 26-Oct-2015
#
#   Environment:
#
#       User Mode
#
################################################################################

include $(SRCROOT)/os/minoca.mk

BINDIR = $(BINROOT)/rpi

BINFILES = $(BINDIR)/bootcode.bin     \
           $(BINDIR)/config.txt       \
           $(BINDIR)/fixup.dat        \
           $(BINDIR)/start.elf        \
           $(BINDIR)/LICENCE.broadcom \

all: $(BINFILES)

$(BINFILES): | $(BINDIR)

$(BINDIR):
	@mkdir -p $@

$(BINDIR)/bootcode.bin: bootcode.bin
	@cp -pv $< $@

$(BINDIR)/config.txt: config.txt
	@cp -pv $< $@

$(BINDIR)/fixup.dat: fixup.dat
	@cp -pv $< $@

$(BINDIR)/start.elf: start.elf
	@cp -pv $< $@

$(BINDIR)/LICENCE.broadcom: LICENCE.broadcom
	@cp -pv $< $@
