diff --git a/ci/run_build.sh b/ci/run_build.sh index 515ee69feb3..ad5cefa15cd 100755 --- a/ci/run_build.sh +++ b/ci/run_build.sh @@ -73,19 +73,7 @@ build_cppcheck() { } build_drivers() { - # install the required packages and their dependencies - wget https://launchpad.net/ubuntu/+source/binutils-arm-none-eabi/15build1/+build/23239027/+files/binutils-arm-none-eabi_2.38-3ubuntu1+15build1_amd64.deb - sudo dpkg -i ./binutils-arm-none-eabi_2.38-3ubuntu1+15build1_amd64.deb - - wget https://launchpad.net/ubuntu/+source/gcc-arm-none-eabi/15:10.3-2021.07-4/+build/22422757/+files/gcc-arm-none-eabi_10.3-2021.07-4_amd64.deb - sudo dpkg -i ./gcc-arm-none-eabi_10.3-2021.07-4_amd64.deb - - wget https://launchpad.net/ubuntu/+source/newlib/3.3.0-1.3/+build/22978164/+files/libnewlib-dev_3.3.0-1.3_all.deb - sudo dpkg -i ./libnewlib-dev_3.3.0-1.3_all.deb - - wget https://launchpad.net/ubuntu/+source/newlib/3.3.0-1.3/+build/22978164/+files/libnewlib-arm-none-eabi_3.3.0-1.3_all.deb - sudo dpkg -i ./libnewlib-arm-none-eabi_3.3.0-1.3_all.deb - + sudo apt-get install -y gcc-arm-none-eabi libnewlib-arm-none-eabi make -j${NUM_JOBS} -C ./drivers -f Makefile } diff --git a/drivers/Makefile b/drivers/Makefile index 92044779528..1dd37e08de2 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -35,7 +35,7 @@ INCLUDES = -I../include/ \ IIOD_FLAGS += -DIIO_SUPPORT -CFLAGS = -c -Wall -Wformat=0 $(IIOD_FLAGS) $(INCLUDES) +CFLAGS = -c -Wall -Wformat=0 -D__int64_t_defined=1 $(IIOD_FLAGS) $(INCLUDES) SRCS = $(shell find . $(SKIPDIR) -name '*.c') OBJS = $(SRCS:.c=.o)