36 lines
1.0 KiB
Makefile
36 lines
1.0 KiB
Makefile
.PHONY: image f4pga buildroot litex clone help
|
|
ADDED_FILES=f4pga/scripts/prepare_environment.sh litex/litex_setup.py buildroot.tar.gz
|
|
|
|
help:
|
|
@echo 'make image: build docker image'
|
|
@echo 'make open: open docker image'
|
|
@echo 'make clone: clone repositories'
|
|
|
|
image: ${ADDED_FILES}
|
|
docker build -t "upsilon-buildenv" .
|
|
|
|
## Download external projects
|
|
clone: f4pga buildroot litex
|
|
|
|
f4pga:
|
|
if [ ! -d 'f4pga' ]; then \
|
|
git clone https://github.com/chipsalliance/f4pga; \
|
|
fi
|
|
cd f4pga && git checkout main && git pull && \
|
|
git checkout -B upsilon_stable 835a40534f9efd70770d74f56f25fef6cfc6ebc6
|
|
|
|
buildroot:
|
|
if [ ! -d 'buildroot' ]; then \
|
|
git clone https://git.buildroot.org/buildroot; \
|
|
fi
|
|
cd buildroot && git checkout master && git pull && \
|
|
git checkout -B upsilon_stable 2023.02.1
|
|
tar -czvf buildroot.tar.gz buildroot/
|
|
|
|
litex:
|
|
if [ ! -d 'litex' ]; then \
|
|
git clone https://github.com/enjoy-digital/litex; \
|
|
fi
|
|
cd litex && git checkout master && git pull && \
|
|
git checkout -B upsilon_stable c6ccb626e88168045edacced3743f6bd98746742
|