Skip to content

Instantly share code, notes, and snippets.

View sjaeckel's full-sized avatar
🐙

Steffen Jaeckel sjaeckel

🐙
View GitHub Profile
@sjaeckel
sjaeckel / test.c
Created January 2, 2012 16:21 — forked from anonymous/libtommathtest_jaeckel
libtommathtest
#include <stdio.h>
#include <stdlib.h>
#include<conio.h>
#include"tommath.h"
/*
int mp_int_loader(mp_int *a){
}
*/
void show_mp_int_fullinfo(mp_int *a){
@sjaeckel
sjaeckel / commit_ids.sed
Created January 20, 2014 21:38
script to remove content of CVS/SVN tags from files
s@\$Author.*\$@\$Author\$@Ig
s@\$Date.*\$@\$Date\$@Ig
s@\$Id.*\$@\$Id\$@Ig
s@\$Revision.*\$@\$Revision\$@Ig
s@\$Source.*\$@\$Source\$@Ig
### Keybase proof
I hereby claim:
* I am sjaeckel on github.
* I am jaeckel (https://keybase.io/jaeckel) on keybase.
* I have a public key ASDHSekhicTMt38UBqGhLqRAqiLHJEgP6iKlP1hh55dp-Qo
To claim this, I am signing this object:

introduction

Today I received a notification that TLSe which uses libtomcrypt and libtommath had an issue on Big-Endian MIPS32.

I took this as a reason to finally write down this tutorial on how to build a toolchain, linux kernel and root-fs for a foreign architecture, in this example MIPS32, with Buildroot to run your cross-compiled software on.

We also need QEMU to run all this and I use the system-provided QEMU version in this example. Building QEMU is pretty straight-forward if you follow their examples if you want to build it from source. so I also describe the build process of QEMU for MIPS32.

First let's say the most important, the Buildroot&QEMU documentation is fine and pretty complete and this basically just sums up all the quirks I had to get this up and running.

@sjaeckel
sjaeckel / MISRA_C_2012.txt
Created April 3, 2019 13:07
MISRA_C_2012.txt
echo "Appendix A Summary of guidelines" > MISRA_C_2012.txt
grep misra-c2012 clang-tidy-misra/src/RuleHeadlineTexts.cpp | sed -e 's/R"ruletext(//g' -e 's/)ruletext"//g' -e 's/misra-c2012-//g' | tr -d '",{}' | sed -e 's/ /Rule /' -e 's/\([0-9]\) /\1\n/' >> MISRA_C_2012.txt
@sjaeckel
sjaeckel / .gitignore
Last active September 25, 2019 11:41
Valgrind vararg error
*.c
*.o
*.a
vafail
@sjaeckel
sjaeckel / Makefile
Created January 20, 2020 22:40
ghdl/docker issue #11
mkfile_path := $(abspath $(lastword ${MAKEFILE_LIST}))
my_dir := $(dir ${mkfile_path})
base := $(shell basename $$(pwd))
basedir := $(shell dirname $$(pwd))
docker_path := -v /${basedir}://work
docker_path_all := -v /$(shell pwd)://work
docker_opts = --rm -it -w //work --user $(shell id -u)
#docker_opts += ghdl/ghdl:buster-gcc-7.4.0-mcode
#docker_opts += ghdl/ghdl:buster-gcc-8.3.0-1