Skip to content

Instantly share code, notes, and snippets.

View abrodkin's full-sized avatar

Alexey Brodkin abrodkin

View GitHub Profile
@abrodkin
abrodkin / arc64-snps-linux-gnu.md
Last active November 12, 2020 12:00
Crosstool-NG configuration for ARC64 Linux toolchain
CT_CONFIG_VERSION="3"
CT_EXPERIMENTAL=y
CT_ARCH_ARC=y
CT_ARCH_64=y
CT_TARGET_VENDOR="snps"
CT_TARGET_ALIAS="arc64-linux"
CT_KERNEL_LINUX=y
CT_LINUX_SRC_DEVEL=y
CT_LINUX_DEVEL_URL="https://github.com/foss-for-synopsys-dwc-arc-processors/linux.git"
@abrodkin
abrodkin / build-gcc_tg.o.md
Created December 24, 2020 08:41
How to build DejaGnu's "test glue" binary: gcc_tg.o

arc-elf32-gcc -w -c -mcpu=archs -o gcc_tg.o /usr/share/dejagnu/testglue.c

@abrodkin
abrodkin / Debian-rebootstrap-for-ARCv2.md
Created April 2, 2021 07:08
Running Debian rebootstrap in Docker container

On the host:

git clone https://salsa.debian.org/vineetgarc/rebootstrap.git
cd rebootstrap
docker run --privileged --rm -it -v $PWD:/host debian:stretch /bin/bash

In the container:

apt-get update && apt-get install -y pbuilder
@abrodkin
abrodkin / dotfiles.md
Last active November 28, 2021 19:49
My dotfiles

.bashrc

# Figure-out location of Python user packages
PYTHON_SITE=$(python -m site --user-site)

# Powerline configuration
if [ -f $PYTHON_SITE/powerline/bindings/bash/powerline.sh ]; then
    $HOME/.local/bin/powerline-daemon -q
    POWERLINE_BASH_CONTINUATION=1
    POWERLINE_BASH_SELECT=1
@abrodkin
abrodkin / speedcrunch-for-windows.md
Created March 8, 2023 15:04
Build Speedcrunch on Windows

Install MSYS2

Install additional packages

make
mingw-w64-ucrt-x86_64-cmake
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-qt5-base
mingw-w64-ucrt-x86_64-qt5-tools

Find the divergence point between the current and XXX branches.

git rev-list -1 git rev-list ...XXX | tail -1^