diff options
author | Thomas Van Iseghem <[email protected]> | 2023-05-23 19:29:03 +0200 |
---|---|---|
committer | Thomas Van Iseghem <[email protected]> | 2023-05-23 19:29:03 +0200 |
commit | fc0709d242bcf7d2a935c8ee53296442af3aed1b (patch) | |
tree | 9aeb334743fb9515fd546be5bfd5fc57c07c5c56 /CorOS-dev-environment/CorOS-build-env | |
parent | 808a8a3cec2b75a3dcb658a2238f2998fcf38e54 (diff) | |
parent | 2c57afa1e3d61cb4a0801c0eb2c1646f3ad7be60 (diff) | |
download | OpenCortex-fc0709d242bcf7d2a935c8ee53296442af3aed1b.tar.gz OpenCortex-fc0709d242bcf7d2a935c8ee53296442af3aed1b.zip |
Merge branch 'feature/better-emulation-environment'
Diffstat (limited to 'CorOS-dev-environment/CorOS-build-env')
-rw-r--r-- | CorOS-dev-environment/CorOS-build-env/Dockerfile | 31 | ||||
-rw-r--r-- | CorOS-dev-environment/CorOS-build-env/docker-compose.yaml | 21 |
2 files changed, 52 insertions, 0 deletions
diff --git a/CorOS-dev-environment/CorOS-build-env/Dockerfile b/CorOS-dev-environment/CorOS-build-env/Dockerfile new file mode 100644 index 0000000..9ddd439 --- /dev/null +++ b/CorOS-dev-environment/CorOS-build-env/Dockerfile @@ -0,0 +1,31 @@ +# Use official Ubuntu as our base# Use official Ubuntu as our base +FROM opencortex/coros-emu:latest + +# Add required packages in the noninteractive mode +RUN apt-get -y update && apt-get -y -q install curl net-tools build-essential minicom tftpd-hpa git-all subversion openssh-server ncurses-dev php gawk g++ m4 libncurses5-dev texinfo flex bison php-cli vim php-xml python-setuptools python-dev make unzip rsync cpio bc lib32z1 lib32stdc++6 + +# Set the workspace in /sc5xx_dev +ARG TOOLCHAIN_PATH=/sc5xx_dev +RUN mkdir -p ${TOOLCHAIN_PATH} + +# Set the path and name of Patch in /sc5xx_dev/linuxaddin-dockerfile/lib +ARG PATCH_PATH=${TOOLCHAIN_PATH}/lib +ARG PATCH=${PATCH_PATH}/0002-port-to-perl-5.22-and-later.patch + +# Set the Version and Path of cces-linux-add-in. +ARG LINUX_ADDIN_VERSION="1.3.1" + +# Working directory set to /sc5xx_dev +WORKDIR ${TOOLCHAIN_PATH} + +# Copy the install_toolchain.sh to /sc5xx_dev +COPY install_toolchain.sh . +RUN dos2unix install_toolchain.sh && chmod +x install_toolchain.sh && ./install_toolchain.sh ${TOOLCHAIN_PATH} + +# Set toolchain PATH for remote container +ENV PATH=${PATH}:/opt/analog/cces-linux-add-in/${LINUX_ADDIN_VERSION}/ARM/arm-linux-gnueabi/bin/ +ENV QEMU_LD_PREFIX="/opt/analog/cces-linux-add-in/1.3.1/ARM/arm-linux-gnueabi/sysroot" + +WORKDIR / + +ENTRYPOINT ["/bin/bash"] diff --git a/CorOS-dev-environment/CorOS-build-env/docker-compose.yaml b/CorOS-dev-environment/CorOS-build-env/docker-compose.yaml new file mode 100644 index 0000000..6abd5da --- /dev/null +++ b/CorOS-dev-environment/CorOS-build-env/docker-compose.yaml @@ -0,0 +1,21 @@ +# Docker compose file for easy volume mounting and running of the container + +services: + coros-dev: + image: opencortex/coros-dev:latest + build: + context: ../ + dockerfile: CorOS-build-env/Dockerfile + tags: + - opencortex/coros-dev:latest + + volumes: + - ../filesystems:/qc-fs + - ../mount:/mnt + + environment: + # Edit this to your needs. This should be just the file name, not the path. + - UPDATE_FILE=verify.bin.gz + + privileged: true + entrypoint: /bin/bash -c "while true; do sleep 1; done"
\ No newline at end of file |