Skip to content

Instantly share code, notes, and snippets.

@CruelTott
Created August 7, 2020 19:13
Show Gist options
  • Save CruelTott/c0e77a37e340265565e28e87729ac5b3 to your computer and use it in GitHub Desktop.
Save CruelTott/c0e77a37e340265565e28e87729ac5b3 to your computer and use it in GitHub Desktop.
Dockerfile to build Adrenaline
FROM ubuntu:bionic
RUN apt update
RUN apt install -y build-essential
RUN apt install -y flex bison
RUN apt install -y cmake
RUN apt install -y git
RUN apt install -y curl
RUN apt install -y wget
RUN apt install -y sudo
RUN apt install -y python
RUN apt install -y gcc-arm-linux-gnueabihf
RUN apt install -y qemu-user-static
RUN mkdir /root/checkout
WORKDIR /root/checkout
RUN git clone https://github.com/TheOfficialFloW/Adrenaline.git
RUN git clone https://github.com/vitasdk/vdpm.git
RUN git clone https://github.com/frangarcj/vita-shader-collection.git
RUN git clone --branch fbo https://github.com/frangarcj/vita2dlib.git
WORKDIR /root/checkout/vdpm
RUN ./bootstrap-vitasdk.sh
ENV VITASDK=/usr/local/vitasdk
ENV PATH=$VITASDK/bin:$PATH
RUN echo "export VITASDK=/usr/local/vitasdk" >> /root/.bashrc
RUN echo 'export PATH=$VITASDK/bin:$PATH' >> /root/.bashrc
RUN ./install-all.sh
WORKDIR /root/checkout/vita2dlib/libvita2d
RUN make
RUN make install
WORKDIR /root/checkout/vita-shader-collection
RUN git clone https://github.com/JagerDesu/vita-shaders
RUN cd vita-shaders && make && cp *.bin ../
RUN sed -i -e 's|./gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc|/usr/arm-linux-gnueabihf|g' Makefile
RUN make
RUN cp libvitashaders.a /usr/local/vitasdk/arm-vita-eabi/lib/
WORKDIR /root/checkout/Adrenaline/kernel
RUN cmake .
RUN make
RUN make install
WORKDIR /root/checkout/Adrenaline/user
RUN cmake .
RUN make
WORKDIR /root/checkout/Adrenaline/bubble
RUN cmake .
RUN make
WORKDIR /root/checkout/Adrenaline/user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment