Skip to content
Snippets Groups Projects
Commit 38e4e1ea authored by Anders Blomdell's avatar Anders Blomdell
Browse files

mbed-cli

parent ab681879
No related branches found
No related tags found
No related merge requests found
Showing
with 402 additions and 0 deletions
/build
/.flatpak-builder
/auto-*.json
TARGET=se.lth.control.mbed-cli
FLATHUB_REPO="https://flathub.org/repo/flathub.flatpakrepo"
.PHONY : build
build: auto-ignore-installed.json\
auto-simple.json \
manual-util-linux.json \
manual-arm-none-eabi-binutils.json \
manual-XmpX.json \
manual-arm-none-eabi-bootstrap-gcc.json \
manual-arm-none-eabi-newlib.json \
manual-arm-none-eabi-gcc.json \
manual-mbed-cli-wrap.json
flatpak-builder --force-clean build $(TARGET).json
flatpak-builder --user --install --force-clean build/ $(TARGET).json
.PHONY: setup
setup:
flatpak remote-add --if-not-exists flathub $(FLATHUB_REPO)
flatpak install org.freedesktop.Platform//22.08
flatpak install org.freedesktop.Sdk//22.08
manual-%.json: manual-%.install
auto-ignore-installed.json: pip-ignore-installed.txt
cat $< | xargs flatpak run se.lth.control.pip-install-to-json \
--name $@ --extra-flag --ignore-installed > $@.tmp
mv $@.tmp $@
auto-simple.json: pip-simple.txt
cat $< | xargs flatpak run se.lth.control.pip-install-to-json \
--name $@ > $@.tmp
mv $@.tmp $@
.PHONY: clean
clean:
rm -f auto-*.json
rm -rf .flatpak-builder/build
.PHONY: distclean
clean: clean
rm -rf build
rm -rf .flatpak-builder
rm -f *~
#!/bin/sh
set -e
tar -xf gmp-6.2.1.tar.xz
(
cd gmp-6.2.1
./configure --prefix=/app
make
make install
)
tar -xf mpfr-4.1.0.tar.xz
(
cd mpfr-4.1.0
./configure --prefix=/app
make
make install
)
tar -xf mpc-1.2.1.tar.gz
(
cd mpc-1.2.1
./configure --prefix=/app
make
make install
)
{
"name": "manual-XmpX.json",
"buildsystem": "simple",
"build-commands": [
"./manual-XmpX.install"
],
"sources": [
{
"type": "file",
"path": "manual-XmpX.install"
},
{
"type": "file",
"url": "https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz",
"sha256": "fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2"
},
{
"type": "file",
"url": "https://www.mpfr.org/mpfr-current/mpfr-4.1.0.tar.xz",
"sha256": "0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f"
},
{
"type": "file",
"url": "https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz",
"sha256": "17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459"
}
]
}
#!/bin/sh
set -e
tar -xf binutils-2.37.tar.xz
cd binutils-2.37
./configure --prefix=/app \
--target=arm-none-eabi \
--enable-interwork \
--enable-multilib \
--enable-plugins \
--disable-nls \
--disable-shared \
--disable-threads \
--with-gcc \
--with-gnu-as \
--with-gnu-ld \
--with-system-zlib \
--disable-werror
make
make install
{
"name": "manual-arm-none-eabi-binutils.json",
"buildsystem": "simple",
"build-commands": [
"./manual-arm-none-eabi-binutils.install"
],
"sources": [
{
"type": "file",
"path": "manual-arm-none-eabi-binutils.install"
},
{
"type": "file",
"url": "https://ftp.gnu.org/pub/gnu/binutils/binutils-2.37.tar.xz",
"sha256": "820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c"
}
]
}
#!/bin/sh
set -e
tar -xf gcc-12.2.0.tar.xz
(
mkdir build-gcc-12.2.0
cd build-gcc-12.2.0
../gcc-12.2.0/configure --prefix=/app \
--target=arm-none-eabi \
--enable-interwork \
--enable-multilib \
--with-multilib-list=rmprofile \
--enable-plugins \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-libssp \
--disable-libstdcxx-pch \
--disable-nls \
--disable-shared \
--disable-threads \
--disable-tls \
--enable-languages=c \
--with-newlib \
--disable-nls \
--disable-shared \
--disable-threads \
--with-gnu-as \
--with-gnu-ld \
--with-gmp \
--with-mpfr \
--with-mpc \
--without-headers \
--with-system-zlib
make
make install
)
{
"name": "manual-arm-none-eabi-bootstrap-gcc.json",
"buildsystem": "simple",
"build-commands": [
"./manual-arm-none-eabi-bootstrap-gcc.install"
],
"sources": [
{
"type": "file",
"path": "manual-arm-none-eabi-bootstrap-gcc.install"
},
{
"type": "file",
"url": "https://ftp.mpi-inf.mpg.de/mirrors/gnu/mirror/gcc.gnu.org/pub/gcc/releases/gcc-12.2.0/gcc-12.2.0.tar.xz",
"sha256": "e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff"
}
]
}
#!/bin/sh
set -e
(
mkdir full
cd full
tar -xf ../gcc-12.2.0.tar.xz
mkdir build
cd build
../gcc-12.2.0/configure --prefix=/app \
--target=arm-none-eabi \
--enable-interwork \
--enable-multilib \
--with-multilib-list=rmprofile \
--enable-plugins \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-libssp \
--disable-libstdcxx-pch \
--disable-nls \
--disable-shared \
--disable-threads \
--disable-tls \
--enable-languages=c,c++ \
--with-newlib \
--disable-nls \
--disable-shared \
--disable-threads \
--with-gnu-as \
--with-gnu-ld \
--with-gmp \
--with-mpfr \
--with-mpc \
--with-headers=yes \
--with-system-zlib
make
make install
)
{
"name": "manual-arm-none-eabi-gcc.json",
"buildsystem": "simple",
"build-commands": [
"./manual-arm-none-eabi-gcc.install"
],
"sources": [
{
"type": "file",
"path": "manual-arm-none-eabi-gcc.install"
},
{
"type": "file",
"url": "https://ftp.mpi-inf.mpg.de/mirrors/gnu/mirror/gcc.gnu.org/pub/gcc/releases/gcc-12.2.0/gcc-12.2.0.tar.xz",
"sha256": "e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff"
}
]
}
#!/bin/sh
tar -xf newlib-4.2.0.20211231.tar.gz
(
cd newlib-4.2.0.20211231
export CFLAGS_FOR_TARGET="-g -O2 -ffunction-sections -fdata-sections"
./configure --prefix=/app \
--target=arm-none-eabi \
--enable-newlib-io-long-long \
--enable-newlib-register-fini \
--enable-newlib-retargetable-locking \
--disable-newlib-supplied-syscalls \
--disable-nls \
--enable-multilib \
--disable-libssp \
--with-float=soft
make
make install
)
{
"name": "manual-arm-none-eabi-newlib.json",
"buildsystem": "simple",
"build-commands": [
"./manual-arm-none-eabi-newlib.install"
],
"sources": [
{
"type": "file",
"path": "manual-arm-none-eabi-newlib.install"
},
{
"type": "file",
"url": "ftp://sourceware.org/pub/newlib/newlib-4.2.0.20211231.tar.gz",
"sha256": "c3a0e8b63bc3bef1aeee4ca3906b53b3b86c8d139867607369cb2915ffc54435"
}
]
}
#!/bin/sh
set -e
tar -xf git-2.38.1.tar.gz
cd git-2.38.1
make configure
./configure --prefix=/app
make
make install
{
"name": "manual-git.json",
"buildsystem": "simple",
"build-commands": [
"./manual-git.install"
],
"sources": [
{
"type": "file",
"path": "manual-git.install"
},
{
"type": "file",
"url": "https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.38.1.tar.gz",
"sha256": "620ed3df572a34e782a2be4c7d958d443469b2665eac4ae33f27da554d88b270"
}
]
}
#!/bin/sh
cat<<'EOF'>/app/mbed-cli
#!/bin/bash
/app/bin/mbed-cli "$@"
EOF
chmod +x /app/mbed-cli
{
"name" : "manual-mbed-cli-wrap.json",
"buildsystem" : "simple",
"sources" : [
{
"type" : "file",
"path" : "manual-mbed-cli-wrap.install"
}
],
"build-commands" : [
"./manual-mbed-cli-wrap.install"
]
}
#!/bin/sh
set -e
tar -xf util-linux-2.38.1.tar.gz
cd util-linux-2.38.1
./autogen.sh
./configure --prefix /app \
--disable-makeinstall-chown \
--disable-all-programs \
--enable-mount \
--enable-libmount \
--enable-libblkid
make
make install
{
"name": "manual-util-linux.json",
"buildsystem": "simple",
"build-commands": [
"./manual-util-linux.install"
],
"sources": [
{
"type": "file",
"path": "manual-util-linux.install"
},
{
"type": "file",
"url": "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/snapshot/util-linux-2.38.1.tar.gz",
"sha256": "75add98ee04e8ca742e860dd06936379737465149904152175a64708de399125"
}
]
}
pip
wheel
mbed-cli
mbed_ls
mbed_host_tests
mbed_greentea
mbed_cloud_sdk
cbor
cmsis_pack_manager
fuzzywuzzy
icetea
jinja2
manifest_tool
pycryptodome
pyyaml
jsonschema
pyelftools
pyusb
psutil
cryptography
click
mercurial
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment