- Go to https://toolchains.bootlin.com
- Select arch: armv6-eabihf
- Select libc: glibc
- Download bleeding-edge
- Uncompress it (for example to
/opt
) - Add the
bin/
directory of the toolchain to$PATH
- In my case:
export PATH=$PATH:/opt/armv6-eabihf--glibc--bleeding-edge-2020.08-1
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
arm-vita-eabi-gcc -I. -D"__attribute__(ARGS)=" -D"__extension__=" -D"__asm__(ARGS)=" -D"__builtin_va_list=int" -E vitasdk.h > preprocessor.h |
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
#!/bin/bash | |
#wget https://aur.archlinux.org/cgit/aur.git/plain/config.x86_64?h=linux-drm-tip-git -O ./.config | |
zcat /proc/config.gz > ./.config | |
rm ./arch/x86_64/boot/bzImage | |
commit="$(git rev-parse --short HEAD)" | |
echo "commit: $commit" | |
# set localversion to git commit |
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
#Raspberry Pi mount | |
export PI_SSHFS_MOUNT=/mnt/pi | |
export PI_IP=192.168.1.130 | |
alias pimount='sshfs alarm@$PI_IP:/ $PI_SSHFS_MOUNT' | |
alias piumount='fusermount -u $PI_SSHFS_MOUNT' |
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
#!/bin/bash | |
JOBS=4 | |
sudo pacman --needed -S base-devel gcc git make autoconf automake pkgconfig libxml2 \ | |
libinput libunwind mesa mesa-libgl libxcursor cairo-xcb libxkbcommon | |
git clone git://anongit.freedesktop.org/wayland/wayland | |
pushd wayland | |
./autogen.sh --prefix=$WLD --disable-documentation |
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
#!/bin/bash | |
CROSS_COMPILE=arm-linux-gnueabihf | |
PREFIX=$PWD/build | |
export CPATH=$PREFIX/include | |
export LIBRARY_PATH=$PREFIX/lib | |
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig | |
export PKG_CONFIG_DIR= | |
export PKG_CONFIG_LIBDIR=$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig |
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
#!/bin/bash | |
BOOT_MOUNT=$RPI_BOOT_MOUNT | |
ROOT_MOUNT=$RPI_ROOT_MOUNT | |
KERNELVERSION=`make ARCH=arm kernelrelease 2> /dev/null` | |
KERNELFILENAME="kernel_$KERNELVERSION.img" | |
#DEFCONFIG=bcm2709_defconfig | |
DEFCONFIG=multi_v7_defconfig | |
DTB=bcm2837-rpi-3-b.dtb |
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
#!/bin/bash | |
sudo apt-get install -y git autoconf gperf bison flex texinfo \ | |
help2man gawk libncurses5-dev | |
git clone https://github.com/crosstool-ng/crosstool-ng.git | |
pushd crosstool-ng | |
./bootstrap | |
./configure |
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
#!/bin/bash | |
if [ "$#" -lt 1 ]; then | |
echo -e "Usage:\n\t$0 directory" | |
exit 1 | |
fi | |
if [ -z "$VITASDK" ]; then | |
echo -e "Error: VITASDK is not set." | |
exit 1 |
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
/* | |
* vitajsonlinker by xerpi | |
* - ./vitajsonlinker db1.json [db2.json, ...] | |
*/ | |
#include <string> | |
#include <list> | |
#include <iostream> | |
#include <jansson.h> |