This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2024 Gentoo Authors | |
# Distributed under the terms of the GNU General Public License v2 | |
# Autogenerated by pycargoebuild 0.13.2 | |
EAPI=8 | |
CRATES=" | |
ab_glyph@0.2.23 | |
ab_glyph_rasterizer@0.1.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e # exit script if control-c is used | |
main() { | |
USAGE="Usage: $0 source_dir destination_dir ffmpegcommand" | |
if [ $# != 3 ] ; then | |
echo $USAGE | |
exit 1; | |
fi | |
# Convert relative path to absolute. Also remove trailing slash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Cross compiling Rust | |
Rust mainly is statically linked by default. But when compiled against Glibc (for syscalls etc.) it is dynamically linked against that. | |
There are several ways to tackle this problem | |
NOTE: The target-triples (the 'arm-unknown-linux-musleabihf' and such) in the following commands are just examples. The targets need to be adapted accordingly. | |
** Static linking using Musl | |
While it is not impossible to statically link against Glibc it is discouraged. (Mostly because Glibc itself makes great use of dlopen and other dynamic libraries.) | |
Musl is a Glibc alternative that can be statically linked and is often used for that in cross compiling scenarios. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Makefile for building Keil projects out of WSL | |
# Pascal Jaeger <pascal.jaeger@schaltbau-bode.com> 2023.01.02 | |
KEIL ?= "/mnt/c/Keil_v5/UV4/UV4.exe" | |
BCONSOLE ?= "/mnt/c/Program\ Files\ \(x86\)/Cortex\ Bootloader/BConsole/BConsole.exe" | |
TMP=keil.out | |
NULL=/dev/null | |
.PHONY: build all clean flash help | |
# Keils exit code will be 1 when there were warnungs, which would trigger make to exit |