mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-06-07 21:38:34 +00:00
Format
This commit is contained in:
parent
91074e5b4e
commit
70551ef155
@ -53,4 +53,3 @@ addons:
|
|||||||
- sed
|
- sed
|
||||||
- cmake
|
- cmake
|
||||||
- dfu-util
|
- dfu-util
|
||||||
|
|
||||||
|
14
dockerfile
14
dockerfile
@ -24,9 +24,9 @@ RUN curl https://bootstrap.pypa.io/pip/3.4/get-pip.py -o get-pip.py && \
|
|||||||
#Fetch additional dependencies from Python 2.x pip
|
#Fetch additional dependencies from Python 2.x pip
|
||||||
RUN pip install pyyaml
|
RUN pip install pyyaml
|
||||||
RUN rm -rf /usr/bin/python && \
|
RUN rm -rf /usr/bin/python && \
|
||||||
rm -rf /usr/bin/pip && \
|
rm -rf /usr/bin/pip && \
|
||||||
ln -s /usr/bin/python3 /usr/bin/python && \
|
ln -s /usr/bin/python3 /usr/bin/python && \
|
||||||
ln -s /usr/bin/pip3 /usr/bin/pip
|
ln -s /usr/bin/pip3 /usr/bin/pip
|
||||||
|
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
ENV LC_ALL C.UTF-8
|
ENV LC_ALL C.UTF-8
|
||||||
@ -37,12 +37,12 @@ RUN mkdir /opt/build && cd /opt/build && \
|
|||||||
wget -O gcc-arm-none-eabi $ARMBINURL && \
|
wget -O gcc-arm-none-eabi $ARMBINURL && \
|
||||||
mkdir armbin && \
|
mkdir armbin && \
|
||||||
tar --strip=1 -xjvf gcc-arm-none-eabi -C armbin
|
tar --strip=1 -xjvf gcc-arm-none-eabi -C armbin
|
||||||
|
|
||||||
#Set environment variable so compiler knows where the toolchain lives
|
#Set environment variable so compiler knows where the toolchain lives
|
||||||
ENV PATH=$PATH:/opt/build/armbin/bin
|
ENV PATH=$PATH:/opt/build/armbin/bin
|
||||||
|
|
||||||
CMD cd /havocsrc && \
|
CMD cd /havocsrc && \
|
||||||
mkdir build && cd build && \
|
mkdir build && cd build && \
|
||||||
cmake .. && make firmware && \
|
cmake .. && make firmware && \
|
||||||
cp /portapack-havoc/firmware/portapack-h1-havoc.bin /havocbin
|
cp /portapack-havoc/firmware/portapack-h1-havoc.bin /havocbin
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ RUN curl https://bootstrap.pypa.io/pip/3.4/get-pip.py -o get-pip.py && \
|
|||||||
#Fetch additional dependencies from Python 3.x pip
|
#Fetch additional dependencies from Python 3.x pip
|
||||||
RUN pip install pyyaml
|
RUN pip install pyyaml
|
||||||
RUN ln -s /usr/bin/python3 /usr/bin/python && \
|
RUN ln -s /usr/bin/python3 /usr/bin/python && \
|
||||||
ln -s /usr/bin/pip3 /usr/bin/pip
|
ln -s /usr/bin/pip3 /usr/bin/pip
|
||||||
|
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
ENV LC_ALL C.UTF-8
|
ENV LC_ALL C.UTF-8
|
||||||
@ -38,4 +38,4 @@ RUN mkdir ~/bin && cd ~/bin && \
|
|||||||
for tool in gcc g++ cpp c++;do ln -s $(which ccache) arm-none-eabi-$tool;done
|
for tool in gcc g++ cpp c++;do ln -s $(which ccache) arm-none-eabi-$tool;done
|
||||||
|
|
||||||
CMD cd .. && cd build && \
|
CMD cd .. && cd build && \
|
||||||
cmake .. && make firmware
|
cmake .. && make firmware
|
||||||
|
Loading…
x
Reference in New Issue
Block a user