File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM ubuntu:18.04
2- LABEL Description="A clone of the i2c-tiny-usb based upon STM32 and libopencm3"
1+ FROM archlinux:20200605
2+ LABEL Description="STM32 and libopencm3"
33
4- RUN DEBIAN_FRONTEND=noninteractive apt-get update -y -q \
5- && apt-get install -y -q sudo make python git-core \
6- && apt-get install -y -q software-properties-common \
7- && add-apt-repository ppa:team-gcc-arm-embedded/ppa \
8- && apt-get update
9- RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gcc-arm-embedded
4+ RUN pacman -Syu --noconfirm \
5+ && pacman -S make git python --noconfirm \
6+ && pacman -S arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib --noconfirm
107
118WORKDIR /build
129RUN git clone https://github.com/libopencm3/libopencm3.git \
1310 && cd libopencm3 \
14- && git checkout f7a952c41a815572622f137881af6160730a3768 \
15- && make
11+ && git checkout 90753950bbe10e87b8caabfb0bd6e1d195bb24b8 \
12+ && TARGETS=stm32/f4 make
1613
1714WORKDIR /build/veccart
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ TOOLCHAIN_DIR=../libopencm3
6262CFLAGS += -O3 -g -Wextra -Wshadow -Wimplicit-function-declaration -Wredundant-decls \
6363 -Wmissing-prototypes -Wstrict-prototypes -fno-common -ffunction-sections -fdata-sections \
6464 -MD -Wall -Wundef -I$(TOOLCHAIN_DIR ) /include $(ARCH_FLAGS )
65+ ASFLAGS += $(ARCH_FLAGS )
6566
6667LDSCRIPT = stm32f411rct6.ld
6768# ../libopencm3/lib/lib$(LIBNAME).ld
You can’t perform that action at this time.
0 commit comments