Created
March 4, 2021 12:15
-
-
Save Ced2911/636d17377f6500a3ff6ca6ed4bc65564 to your computer and use it in GitHub Desktop.
Libyaul Dockerfile archlinux:base-devel-20210228.0.16308
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
FROM archlinux:base-devel-20210228.0.16308 | |
ENV YAUL_INSTALL_ROOT=/opt/tool-chains/sh2eb-elf/ | |
ENV YAUL_PROG_SH_PREFIX= | |
ENV YAUL_ARCH_SH_PREFIX=sh2eb-elf | |
ENV YAUL_ARCH_M68K_PREFIX=m68keb-elf | |
ENV YAUL_BUILD_ROOT=${HOME}/libyaul | |
ENV YAUL_BUILD=build | |
ENV YAUL_CDB=1 | |
ENV YAUL_OPTION_DEV_CARTRIDGE=0 | |
ENV YAUL_OPTION_MALLOC_IMPL="tlsf" | |
ENV YAUL_OPTION_SPIN_ON_ABORT=1 | |
ENV YAUL_OPTION_BUILD_GDB=0 | |
ENV YAUL_OPTION_BUILD_ASSERT=0 | |
#ENV SILENT=1 | |
#ENV NOCOLOR= | |
ENV MAKE_ISO_XORRISO=/usr/bin/xorriso | |
ENV CDB_GCC=/usr/bin/gcc | |
ENV CDB_CPP=/usr/bin/g++ | |
# WORKAROUND for glibc 2.33 and old Docker | |
# See https://github.com/actions/virtual-environments/issues/2658 | |
# Thanks to https://github.com/lxqt/lxqt-panel/pull/1562 | |
# copy pasted from: https://github.com/ijacquez/libyaul-packages/blob/d788a1287c2692bf8f360ae5f175b28cff9730fc/docker-pacman/Dockerfile#L23 | |
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst && \ | |
curl -LO "https://repo.archlinuxcn.org/x86_64/${patched_glibc}" && \ | |
bsdtar -C / -xvf "${patched_glibc}" | |
# install required tools | |
RUN echo -e "[yaul-linux]\nSigLevel = Optional TrustAll\nServer = http://packages.yaul.org/linux/x86_64\n" | sudo tee -a /etc/pacman.conf && \ | |
pacman -Syy && \ | |
pacman -S --noconfirm yaul-tool-chain-git yaul-git yaul-examples-git | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment