From 946294774e06c51fe61b7c0c2cb89c5984989df5 Mon Sep 17 00:00:00 2001 From: kr rt Date: Fri, 19 Jul 2024 01:45:18 +0300 Subject: [PATCH] scripts add --- .docker_run.sh.swp | Bin 0 -> 12288 bytes dockerfile | 13 ++++-- dslogic_insatll-lib.sh | 52 ----------------------- scipts/cppcheck/cppcheck-install.sh | 9 ++++ scipts/doxygen/doxygen-install.sh | 5 +++ scipts/gcc-arm/arm-none-edabi-install.sh | 7 +-- 6 files changed, 27 insertions(+), 59 deletions(-) create mode 100644 .docker_run.sh.swp delete mode 100755 dslogic_insatll-lib.sh create mode 100755 scipts/cppcheck/cppcheck-install.sh create mode 100755 scipts/doxygen/doxygen-install.sh diff --git a/.docker_run.sh.swp b/.docker_run.sh.swp new file mode 100644 index 0000000000000000000000000000000000000000..d655d87c94510d0fcbb6766fcf4825029d8ab0b7 GIT binary patch literal 12288 zcmeI2y>1gh6on^<28r+&YINfip|Kr86C_GNLV_+(&{$*dBw1zuwBCTyKthxPrK2DX z6uf~GVkIEfd4<^rpo4}M9)Pp!b&QbZDn*daNXNS~cjw$YUpMk?&OLqjSQcvY3ge1W z7k<85x_R-D`gT<*$2>P)7@0VajTz4t?~jQNLoZJZ>kr)6f1zX3aD#TDJ+JPBtyL2@ z;nA zgnETC&y}U(+Fy)`f1c%(4-y~&5+DH*AOR8}0TLhq5+DH*Ac6mofOeERm{jWeB@~bU z{|EQ~-bI|qO3WG$ufr+JD$rJCE36O7; zF-l1DI(jH5&C}Q}CUy@wJ9%+3TYAl&7V&%Q%W&HPQGX!IAO7^C-hy54kydQ+p*{tu4o7~=o{ literal 0 HcmV?d00001 diff --git a/dockerfile b/dockerfile index 34767b0..3b4ed17 100644 --- a/dockerfile +++ b/dockerfile @@ -6,10 +6,15 @@ WORKDIR /app COPY . /app # Устанавливаем необходимые зависимости -RUN apt-get update && \ - apt-get install -y make cppcheck git wget tar - -RUN ./scipts/gcc-arm/arm-none-edabi-install.sh +RUN apt-get update && apt-get upgrade + +RUN ./scipts/cppcheck/cppcheck-install.sh +RUN ./scipts/gcc-arm/arm-none-edabi-install.sh +RUN ./scipts/doxygen/doxygen-install.sh +RUN apt-get -y install openocd #последня версия в репе +RUN apt-get -y install make #не последняя но нормально +RUN apt-get -y install stlink-tools #не последняя но нормально +RUN apt-get -y install graphviz #для doxygen diff --git a/dslogic_insatll-lib.sh b/dslogic_insatll-lib.sh deleted file mode 100755 index 686d205..0000000 --- a/dslogic_insatll-lib.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -## -## This file is part of the sigrok-util project. -## -## Copyright (C) 2016 Uwe Hermann -## -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 3 of the License, or -## (at your option) any later version. -## -## This program is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with this program; if not, see . -## - -umask 022 - -WGET="wget -c -q" -if [ -z $PREFIX ]; then - PREFIX="/usr/local" -fi -FWDIR="$PREFIX/share/sigrok-firmware" - -# Use the upstream 0.97 firmware/bitstream set. This is the only supported -# set of files in libsigrok >= 20170621. -FWURL="https://github.com/DreamSourceLab/DSView/raw/886b847c21c606df3138ce7ad8f8e8c363ee758b/DSView/res" - -echo "Installing into: $FWDIR" - -mkdir -p $FWDIR - -$WGET $FWURL/DSLogic50.bin -O $FWDIR/dreamsourcelab-dslogic-fpga-5v.fw -$WGET $FWURL/DSLogic33.bin -O $FWDIR/dreamsourcelab-dslogic-fpga-3v3.fw -$WGET $FWURL/DSLogic.fw -O $FWDIR/dreamsourcelab-dslogic-fx2.fw - -$WGET $FWURL/DSCope.bin -O $FWDIR/dreamsourcelab-dscope-fpga.fw -$WGET $FWURL/DSCope.fw -O $FWDIR/dreamsourcelab-dscope-fx2.fw - -$WGET $FWURL/DSLogicPro.bin -O $FWDIR/dreamsourcelab-dslogic-pro-fpga.fw -$WGET $FWURL/DSLogicPro.fw -O $FWDIR/dreamsourcelab-dslogic-pro-fx2.fw - -$WGET $FWURL/DSLogicPlus.bin -O $FWDIR/dreamsourcelab-dslogic-plus-fpga.fw -$WGET $FWURL/DSLogicPlus.fw -O $FWDIR/dreamsourcelab-dslogic-plus-fx2.fw - -$WGET $FWURL/DSLogicBasic.bin -O $FWDIR/dreamsourcelab-dslogic-basic-fpga.fw -$WGET $FWURL/DSLogicBasic.fw -O $FWDIR/dreamsourcelab-dslogic-basic-fx2.fw - diff --git a/scipts/cppcheck/cppcheck-install.sh b/scipts/cppcheck/cppcheck-install.sh new file mode 100755 index 0000000..fab8b9d --- /dev/null +++ b/scipts/cppcheck/cppcheck-install.sh @@ -0,0 +1,9 @@ +apt-get install -y wget g++ python3 tar bzip2 make libghc-regex-pcre-dev +wget https://github.com/danmar/cppcheck/archive/2.14.1.tar.gz +tar -xvf ./2.14.1.tar.gz +rm ./2.14.1.tar.gz +mkdir /usr/share/cppcheck +cd ./cppcheck-2.14.1/ +make MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck HAVE_RULES=yes CXXFLAGS="-O2 -DNDEBUG -Wall -Wno-sign-compare -Wno-unused-function" +make install FILESDIR=/usr/share/cppcheck +cd .. diff --git a/scipts/doxygen/doxygen-install.sh b/scipts/doxygen/doxygen-install.sh new file mode 100755 index 0000000..dd7a15f --- /dev/null +++ b/scipts/doxygen/doxygen-install.sh @@ -0,0 +1,5 @@ +apt-get install -y wget tar bzip2 +wget https://www.doxygen.nl/files/doxygen-1.11.0.linux.bin.tar.gz +tar -xvf ./doxygen-1.11.0.linux.bin.tar.gz +rm ./doxygen-1.11.0.linux.bin.tar.gz +echo "export PATH=$PATH:./doxygen-1.11.0/bin/" >> ~/.bashrc \ No newline at end of file diff --git a/scipts/gcc-arm/arm-none-edabi-install.sh b/scipts/gcc-arm/arm-none-edabi-install.sh index 561c0a3..593463f 100755 --- a/scipts/gcc-arm/arm-none-edabi-install.sh +++ b/scipts/gcc-arm/arm-none-edabi-install.sh @@ -1,4 +1,5 @@ +apt-get install -y wget tar bzip2 wget "https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2" -tar -jxf gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 -rm gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 -export PATH="/opt/gcc-arm-none-eabi-10.3-2021.10/bin:$PATH" +tar -jxf ./*.tar.bz2 +rm ./*.tar.bz2 +echo "export PATH=$PATH:./gcc-arm-none-eabi-10.3-2021.10/bin/" >> ~/.bashrc