git rev-list -1 git rev-list ...XXX | tail -1
^
.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
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
arc-elf32-gcc -w -c -mcpu=archs -o gcc_tg.o /usr/share/dejagnu/testglue.c
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"
Preparation of the build host:
- Clone
osxcross
repo:git clone https://github.com/tpoechtrager/osxcross
cd osxcross
- Download MacOS SDK:
curl -sLo tarballs/MacOSX10.10.sdk.tar.xz https://www.dropbox.com/s/yfbesd249w10lpc/MacOSX10.10.sdk.tar.xz
- Run container for building
CentOS 8.x
docker run -v $PWD:/osxcross --name centos8-osxcross -i -t centos:centos8 /bin/bash
Ubuntu/Debian: apt-get update && apt-get install -y texinfo byacc flex libncurses5-dev zlib1g-dev libexpat1-dev texlive build-essential git wget gawk bison xz-utils make python3 rsync locales
CentOS/RHEL 7: yum install -y autoconf automake binutils bison byacc flex gcc gcc-c++ libtool patch texinfo-tex ncurses-devel ncurses-compat-libs flex zlib-devel expat-devel git texlive-collection-latexrecommended wget make xz rsync diffutils which
Fedora, CentOS/RHEL 8: dnf install -y autoconf automake binutils bison byacc flex gcc gcc-c++ libtool patch texinfo-tex ncurses-devel ncurses-compat-libs flex zlib-devel expat-devel git texlive-collection-latexrecommended wget make xz rsync diffutils which
./configure --target-list=arc-softmmu --enable-sdl --enable-opengl --enable-virglrenderer --enable-gtk --enable-spice
./arc-softmmu/qemu-system-arc -M simhs -nographic -kernel vmlinux -cpu archs -append "root=/dev/vda ro" -drive file=rootfs.ext2,format=raw,id=hd0 -device virtio-blk-device,drive=hd0 -vga virtio -spice gl=on
qemu-system-arc -M simhs -nographic -no-reboot -monitor none -cpu archs -chardev stdio,id=char0,logfile=serial.log,signal=off -serial chardev:char0 -kernel vmlinux