forked from commaai/openpilot
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vehicle Researcher
committed
Oct 1, 2017
1 parent
94fe677
commit daf54ad
Showing
130 changed files
with
20,576 additions
and
1,742 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
FROM ubuntu:16.04 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
RUN apt-get update && apt-get install -y build-essential clang vim screen wget bzip2 git libglib2.0-0 python-pip capnproto libcapnp-dev libzmq5-dev libffi-dev | ||
|
||
RUN apt-get update && apt-get install -y build-essential clang vim screen wget bzip2 git libglib2.0-0 python-pip capnproto libcapnp-dev libzmq5-dev libffi-dev libusb-1.0-0 | ||
RUN pip install numpy==1.11.2 scipy==0.18.1 matplotlib | ||
|
||
COPY requirements_openpilot.txt /tmp/ | ||
RUN pip install -r /tmp/requirements_openpilot.txt | ||
|
||
ENV PYTHONPATH /tmp/openpilot:$PYTHONPATH | ||
|
||
COPY . /tmp/openpilot | ||
COPY ./common /tmp/openpilot/common | ||
COPY ./cereal /tmp/openpilot/cereal | ||
COPY ./opendbc /tmp/openpilot/opendbc | ||
COPY ./selfdrive /tmp/openpilot/selfdrive | ||
COPY ./phonelibs /tmp/openpilot/phonelibs | ||
COPY ./pyextra /tmp/openpilot/pyextra | ||
|
||
RUN mkdir /tmp/openpilot/selfdrive/test/out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,45 @@ | ||
-include build_from_src.mk | ||
SRCS := log.capnp car.capnp | ||
|
||
GENS := gen/cpp/car.capnp.c++ gen/cpp/log.capnp.c++ | ||
|
||
|
||
UNAME_M ?= $(shell uname -m) | ||
|
||
# only generate C++ for docker tests | ||
ifneq ($(OPTEST),1) | ||
GENS += gen/c/car.capnp.c gen/c/log.capnp.c gen/c/c++.capnp.h gen/c/java.capnp.h | ||
|
||
# Dont build java on the phone... | ||
ifeq ($(UNAME_M),x86_64) | ||
GENS += gen/java/Car.java gen/java/Log.java | ||
endif | ||
|
||
endif | ||
|
||
.PHONY: all | ||
all: $(GENS) | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf gen | ||
|
||
gen/c/%.capnp.c: %.capnp | ||
@echo "[ CAPNPC C ] $@" | ||
mkdir -p gen/c/ | ||
capnpc '$<' -o c:gen/c/ | ||
|
||
gen/cpp/%.capnp.c++: %.capnp | ||
@echo "[ CAPNPC C++ ] $@" | ||
mkdir -p gen/cpp/ | ||
capnpc '$<' -o c++:gen/cpp/ | ||
|
||
gen/java/Car.java gen/java/Log.java: $(SRCS) | ||
@echo "[ CAPNPC java ] $@" | ||
mkdir -p gen/java/ | ||
capnpc $^ -o java:gen/java | ||
|
||
# c-capnproto needs some empty headers | ||
gen/c/c++.capnp.h gen/c/java.capnp.h: | ||
mkdir -p gen/c/ | ||
touch '$@' | ||
|
||
release: | ||
@echo "cereal: this is a release" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.