Sign inSign up

w8jcik/arch-nuttx

By w8jcik

•Updated about 5 years ago

Image
0

5.5K

w8jcik/arch-nuttx repository overview

⁠Hierarchy

⁠upm.Dockerfile

ARG GCC_TAG
ARG UPM_TAG

FROM w8jcik/arch-arm-gcc:${GCC_TAG}

RUN pacman --noconfirm -Syu \
  && pacman --noconfirm -S \
    vim inetutils jq php-gd graphicsmagick colordiff uncrustify usbutils stlink openocd nano screen \
  && rm /var/cache/pacman/pkg -rf

RUN su user -c "aurman -S --noconfirm --skip_news --noedit genromfs" \
  && rm /home/user/.cache/aurman -r && rm /var/cache/pacman/pkg -rf

# We might already have kconfig-frontends installed (when using NuttX GCC). For consistency always building here.

RUN su user -c "cd ~ && git clone --depth 1 https://gitlab.com/w8jcik/nuttx-aur.git ~/nuttx-aur" \
    && su user -c "cd ~/nuttx-aur/kconfig-frontends && makepkg" \
    && pacman -U --noconfirm /home/user/nuttx-aur/kconfig-frontends/kconfig-frontends-*.pkg.tar.xz \
  && rm /home/user/nuttx-aur -rf && rm /var/cache/pacman/pkg -rf

RUN echo "extension=gd" >> /etc/php/php.ini \
  && pip3 install readchar \
  && pip3 install "git+https://gitlab.com/w8jcik/upm.git@${UPM_TAG}" ; rm -rf /root/.cache/pip

RUN git clone --depth 1 https://gitlab.com/nxtlabs/img2lvgl-cli-app.git /opt/img2lvgl \
  && ( cd /opt/img2lvgl && git submodule update --init && rm .git -rf )

ENV PATH="/opt/img2lvgl:${PATH}"

RUN gpasswd -a user uucp

USER user

⁠upm-dev.Dockerfile

ARG GCC_TAG

FROM w8jcik/arch-arm-gcc:${GCC_TAG}

RUN pacman --noconfirm -Syu \
  && pacman --noconfirm -S \
    vim inetutils jq php-gd graphicsmagick colordiff uncrustify usbutils stlink openocd nano screen \
  && rm /var/cache/pacman/pkg -rf

RUN su user -c "aurman -S --noconfirm --skip_news --noedit genromfs" \
  && rm /home/user/.cache/aurman -r && rm /var/cache/pacman/pkg -rf

# We might already have kconfig-frontends installed (when using NuttX GCC). For consistency always building here.

RUN su user -c "cd ~ && git clone --depth 1 https://gitlab.com/w8jcik/nuttx-aur.git ~/nuttx-aur" \
    && su user -c "cd ~/nuttx-aur/kconfig-frontends && makepkg" \
    && pacman -U --noconfirm /home/user/nuttx-aur/kconfig-frontends/kconfig-frontends-*.pkg.tar.xz \
  && rm /home/user/nuttx-aur -rf && rm /var/cache/pacman/pkg -rf

RUN echo "extension=gd" >> /etc/php/php.ini \
  && pip3 install readchar \
  && rm -rf /root/.cache/pip

RUN git clone --depth 1 https://gitlab.com/nxtlabs/img2lvgl-cli-app.git /opt/img2lvgl \
  && ( cd /opt/img2lvgl && git submodule update --init && rm .git -rf )

ENV PATH="/opt/img2lvgl:/home/user/.local/bin:${PATH}"

RUN gpasswd -a user uucp

USER user

⁠upm-0.4.Dockerfile

ARG GCC_TAG
ARG UPM_TAG

FROM w8jcik/arch-arm-gcc:${GCC_TAG}

RUN pacman --noconfirm -Syu \
  && pacman --noconfirm -S \
    vim inetutils jq php-gd graphicsmagick colordiff uncrustify usbutils stlink openocd nano screen \
  && rm /var/cache/pacman/pkg -rf

RUN su user -c "aurman -S --noconfirm --skip_news --noedit genromfs" \
  && rm /home/user/.cache/aurman -r && rm /var/cache/pacman/pkg -rf

# We might already have kconfig-frontends installed (when using NuttX GCC). For consistency always building here.

RUN su user -c "cd ~ && git clone --depth 1 https://gitlab.com/w8jcik/nuttx-aur.git ~/nuttx-aur" \
    && su user -c "cd ~/nuttx-aur/kconfig-frontends && makepkg" \
    && pacman -U --noconfirm /home/user/nuttx-aur/kconfig-frontends/kconfig-frontends-*.pkg.tar.xz \
  && rm /home/user/nuttx-aur -rf && rm /var/cache/pacman/pkg -rf

RUN mkdir -p /opt \
  && git clone "https://gitlab.com/w8jcik/upm.git@${UPM_TAG}" /opt/upm \
  && cd /opt/upm && git checkout release/0.4 \
  && ( cd /opt/upm && git submodule update --init && rm .git -rf )

RUN echo "extension=gd" >> /etc/php/php.ini \
    && pip3 install readchar \
  && rm -rf /root/.cache/pip

RUN git clone --depth 1 https://gitlab.com/nxtlabs/img2lvgl-cli-app.git /opt/img2lvgl \
  && ( cd /opt/img2lvgl && git submodule update --init && rm .git -rf )

ENV PATH="/opt/upm/bin:/opt/img2lvgl:${PATH}"

RUN gpasswd -a user uucp

USER user

Tag summary

Content type

Image

Digest

Size

503.3 MB

Last updated

about 5 years ago

docker pull w8jcik/arch-nuttx