Skip to content
Permalink
Browse files

Add pkg-config, a52dec and mpeg2dec to the ps3 toolchain

  • Loading branch information...
bgK committed Nov 11, 2018
1 parent d8cb275 commit d9a1f77b21d86a0c38c9d43ecebaba7f88b9b2fb
Showing with 24 additions and 5 deletions.
  1. +22 −5 workers/ps3/Dockerfile
  2. +2 −0 workers/ps3/compile-libraries-ps3.sh
@@ -2,13 +2,19 @@ ARG DEFAULT_BASE_IMAGE
ARG DEFAULT_OS_IMAGE
FROM ${DEFAULT_OS_IMAGE} AS builder
USER root
ARG WORKER_NAME

RUN apt-get update && \
apt-get install -y \
# dpkg-dev is required to retrieve sources from apt
RUN sed 's/^deb \(.*\)/deb-src \1/' /etc/apt/sources.list \
> /etc/apt/sources.list.d/debsrc.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
autoconf \
automake \
bison \
bzip2 \
ca-certificates \
dpkg-dev \
flex \
g++ \
gcc \
@@ -42,13 +48,23 @@ RUN hg clone https://bitbucket.org/bgK/sdl_psl1ght/ /sdl -r psl1ght-2.0.3
WORKDIR /sdl
RUN ./script.sh && make && make install

WORKDIR /tmp/compile
COPY common/compile-libraries.sh ${WORKER_NAME}/compile-libraries-ps3.sh ./

COPY common/library-rules/a52dec.sh library-rules/
RUN ./compile-libraries-ps3.sh a52dec

COPY common/library-rules/mpeg2dec.sh library-rules/
RUN ./compile-libraries-ps3.sh mpeg2dec

FROM ${DEFAULT_BASE_IMAGE}
USER root
ARG WORKER_NAME

ENV PS3DEV /ps3dev
ENV PSL1GHT $PS3DEV
ENV PATH $PATH:$PS3DEV/bin:$PS3DEV/ppu/bin:$PS3DEV/spu/bin
ENV PS3DEV /ps3dev
ENV PSL1GHT $PS3DEV
ENV PATH $PATH:$PS3DEV/bin:$PS3DEV/ppu/bin:$PS3DEV/spu/bin
ENV PKG_CONFIG_LIBDIR $PS3DEV/portlibs/ppu/lib/pkgconfig

COPY --from=builder /ps3dev /ps3dev

@@ -57,6 +73,7 @@ RUN apt-get update && \
libelf1 \
libgmp10 \
libssl1.1 \
pkg-config \
python \
&& \
rm -rf /var/lib/apt/lists/*
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
./compile-libraries.sh powerpc64-ps3-elf $PS3DEV/ppu $@

0 comments on commit d9a1f77

Please sign in to comment.
You can’t perform that action at this time.