mirror of
https://github.com/AmigaPorts/docker-amiga-gcc.git
synced 2026-09-12 03:40:33 +00:00
Add MorphOS toolchain
This commit is contained in:
Vendored
+1
-1
Submodule dependencies/toolchains updated: 7861cd1512...8e2b4cd70d
@@ -0,0 +1,37 @@
|
||||
FROM amigadev/morphos-cross-toolchain:latest as build-env
|
||||
|
||||
FROM ubuntu:19.04
|
||||
|
||||
ENV CROSS_PFX ppc-morphos
|
||||
|
||||
COPY --from=build-env /opt/${CROSS_PFX} ./opt/${CROSS_PFX}
|
||||
|
||||
# START COMMON
|
||||
MAINTAINER Marlon Beijer "marlon@amigadev.com"
|
||||
|
||||
RUN apt-get update && apt-get install -y apt-utils cmake wget git make autoconf pkg-config lhasa
|
||||
RUN echo "root:root" | chpasswd
|
||||
|
||||
RUN ln -s /opt/${CROSS_PFX} /tools
|
||||
|
||||
ENV CROSS_ROOT /opt/${CROSS_PFX}
|
||||
|
||||
WORKDIR /work
|
||||
ENTRYPOINT ["/entry/entrypoint.sh"]
|
||||
|
||||
COPY imagefiles/cmake.sh /usr/local/bin/cmake
|
||||
COPY imagefiles/ccmake.sh /usr/local/bin/ccmake
|
||||
COPY imagefiles/entrypoint.sh /entry/
|
||||
|
||||
ENV AS=${CROSS_ROOT}/bin/${CROSS_PFX}-as \
|
||||
LD=${CROSS_ROOT}/bin/${CROSS_PFX}-ld \
|
||||
AR=${CROSS_ROOT}/bin/${CROSS_PFX}-ar \
|
||||
CC=${CROSS_ROOT}/bin/${CROSS_PFX}-gcc \
|
||||
CXX=${CROSS_ROOT}/bin/${CROSS_PFX}-g++ \
|
||||
RANLIB=${CROSS_ROOT}/bin/${CROSS_PFX}-ranlib
|
||||
|
||||
COPY dependencies/toolchains/${CROSS_PFX}.cmake ${CROSS_ROOT}/lib/
|
||||
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/lib/${CROSS_PFX}.cmake
|
||||
ENV CMAKE_PREFIX_PATH /opt/${CROSS_PFX}:/opt/${CROSS_PFX}/usr
|
||||
ENV PATH ${PATH}:${CROSS_ROOT}/bin
|
||||
# END COMMON
|
||||
Reference in New Issue
Block a user