Skip to content

Instantly share code, notes, and snippets.

View stefanct's full-sized avatar

Stefan Tauner stefanct

  • Vienna, Austria
View GitHub Profile
@stefanct
stefanct / cmake
Created March 6, 2024 17:56
cmake: create a debug target that launches gdb and a respective gdbserver
add_custom_target (
${PROJECT_NAME}_debug
DEPENDS .${PROJECT_NAME}_gdbserver
COMMAND gdb-multiarch
-ex "target extended-remote :3333"
-ex "load"
-ex "monitor reset"
--args $<TARGET_FILE:${PROJECT_NAME}>
)
add_custom_target (
@stefanct
stefanct / gist:f1240dfc0ec7a2c56201e8a789502c90
Last active November 7, 2019 17:26 — forked from gmas/gist:b5fd3d038905d1265485
switch gcc versions in debian
#!/bin/sh
versions="6 8"
basetools="cpp gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool"
opttools= # "g++ gfortran"
platform="arm-linux-gnueabihf" # FIXME: make it work with "", and multiple platforms
# Test for root rights
if [ $(id -u) -ne 0 ]; then
echo "This script must be run as root.">&2
@stefanct
stefanct / README.md
Created January 11, 2019 11:04 — forked from seanf/81-thinkpad-dock.rules
Example ThinkPad docking script for multi-monitor
@stefanct
stefanct / IEEEtranUrldate.bst
Last active July 1, 2020 11:04 — forked from philmtd/IEEEtran.bst
IEEEtran bibstyle with URLdate and ISBN, ISSN + DOI support
%% IEEEtranUrldate.bst
%% BibTeX Bibliography Style file for IEEE Journals and Conferences (unsorted)
%% Merged GQMJr + Ian Oois versions on 2017.02.14
%%
%% Edited on 2013.05.18 by GQMJr
%% Added ISBN, ISSN, DOI support
%%
%% Edited by Ian Ooi
%% Added urldate field, with accompanying default and CTLname variables to
%% allow for last accessed date on urls
@stefanct
stefanct / .config-sparc64-multilib
Created February 3, 2015 21:00
crosstool-ng sparc64 multilib .config
#
# Automatically generated make config: don't edit
# crosstool-NG 1.20.0 Configuration
# Tue Feb 3 10:16:31 2015
#
CT_CONFIGURE_has_xz=y
CT_MODULES=y
#
# Paths and misc options
@stefanct
stefanct / .config-sparc32-multilib
Created February 3, 2015 20:59
crosstool-ng sparc32 multilib .config
#
# Automatically generated make config: don't edit
# crosstool-NG 1.20.0 Configuration
# Sun Feb 1 15:27:22 2015
#
CT_CONFIGURE_has_xz=y
CT_MODULES=y
#
# Paths and misc options
@stefanct
stefanct / gist:001475efa87ece6d8de5
Last active August 29, 2015 14:14
crosstool-ng sparc64 pass-2 compiler fail
[ALL ] /home/flashrom/download/gcc/build-sparc64-unknown-linux-gnu-test/sparc64-unknown-linux-gnu/build/build-cc-core-pass-2/./gcc/xgcc -B/home/flashrom/download/gcc/build-sparc64-unknown-linux-gnu-test/sparc64-unknown-linux-gnu/build/build-cc-core-pass-2/./gcc/ -B/home/flashrom/download/gcc/build-sparc64-unknown-linux-gnu-test/sparc64-unknown-linux-gnu/buildtools/sparc64-unknown-linux-gnu/bin/ -B/home/flashrom/download/gcc/build-sparc64-unknown-linux-gnu-test/sparc64-unknown-linux-gnu/buildtools/sparc64-unknown-linux-gnu/lib/ -isystem /home/flashrom/download/gcc/build-sparc64-unknown-linux-gnu-test/sparc64-unknown-linux-gnu/buildtools/sparc64-unknown-linux-gnu/include -isystem /home/flashrom/download/gcc/build-sparc64-unknown-linux-gnu-test/sparc64-unknown-linux-gnu/buildtools/sparc64-unknown-linux-gnu/sys-include -g -Os -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -