remove old scripts
old-commit-hash: 84b3c56925f5637a46e4e59c644bdb3032033598
This commit is contained in:
@@ -1 +0,0 @@
|
||||
route add default gw 192.168.5.1 && ndc network create 100 && ndc network interface add 100 eth0 && ndc resolver setnetdns 100 localdomain 8.8.8.8 8.8.4.4 && ndc network default set 100
|
||||
3
scripts/panda_gcc/.gitignore
vendored
3
scripts/panda_gcc/.gitignore
vendored
@@ -1,3 +0,0 @@
|
||||
build
|
||||
out
|
||||
src
|
||||
@@ -1,66 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# https://blog.tan-ce.com/gcc-bare-metal/
|
||||
# https://imvoid.wordpress.com/2013/05/01/building-the-gnu-arm-toolchain-for-bare-metal/
|
||||
set -e
|
||||
|
||||
BINUTILS=binutils-2.32
|
||||
GCC=gcc-4.7.1
|
||||
|
||||
mkdir -p src
|
||||
pushd src
|
||||
if [ ! -d $BINUTILS ]; then
|
||||
wget ftp://ftp.gnu.org/gnu/binutils/$BINUTILS.tar.bz2
|
||||
tar -xf $BINUTILS.tar.bz2
|
||||
fi
|
||||
popd
|
||||
|
||||
# TODO: replace with /usr
|
||||
mkdir -p out
|
||||
PREFIX=$PWD/out
|
||||
|
||||
mkdir -p build/$BINUTILS
|
||||
pushd build/$BINUTILS
|
||||
../../src/$BINUTILS/configure --target=arm-none-eabi \
|
||||
--build=aarch64-unknown-linux-gnu \
|
||||
--prefix=$PREFIX --with-cpu=cortex-m4 \
|
||||
--with-mode=thumb \
|
||||
--disable-nls \
|
||||
--disable-werror
|
||||
make -j4 all
|
||||
make install
|
||||
popd
|
||||
|
||||
mkdir -p src
|
||||
pushd src
|
||||
if [ ! -d $GCC ]; then
|
||||
wget ftp://ftp.gnu.org/gnu/gcc/$GCC/$GCC.tar.bz2
|
||||
tar -xf $GCC.tar.bz2
|
||||
|
||||
cd $GCC
|
||||
contrib/download_prerequisites
|
||||
fi
|
||||
|
||||
popd
|
||||
|
||||
export PATH="$PREFIX/bin:$PATH"
|
||||
|
||||
mkdir -p build/$GCC
|
||||
pushd build/$GCC
|
||||
../../src/$GCC/configure --target=arm-none-eabi \
|
||||
--build=aarch64-unknown-linux-gnu \
|
||||
--disable-libssp --disable-gomp --disable-libstcxx-pch --enable-threads \
|
||||
--disable-shared --disable-libmudflap \
|
||||
--prefix=$PREFIX --with-cpu=cortex-m4 \
|
||||
--with-mode=thumb --disable-multilib \
|
||||
--enable-interwork \
|
||||
--enable-languages="c" \
|
||||
--disable-nls \
|
||||
--disable-libgcc
|
||||
make -j4 all-gcc
|
||||
make install-gcc
|
||||
popd
|
||||
|
||||
# replace stdint.h with stdint-gcc.h for Android compatibility
|
||||
mv $PREFIX/lib/gcc/arm-none-eabi/4.7.1/include/stdint-gcc.h $PREFIX/lib/gcc/arm-none-eabi/4.7.1/include/stdint.h
|
||||
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/sh
|
||||
echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||
#iptables -t nat --delete-chain
|
||||
iptables --flush
|
||||
iptables -t nat --flush
|
||||
|
||||
# could be either one
|
||||
iptables -t nat -A POSTROUTING -o v4-rmnet_data0 -j MASQUERADE
|
||||
iptables -t nat -A POSTROUTING -o rmnet_data0 -j MASQUERADE
|
||||
|
||||
#iptables --delete-chain
|
||||
#iptables -A INPUT -i eth0 -j ACCEPT
|
||||
#iptables -A INPUT -i v4-rmnet_data0 -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
#iptables -A OUTPUT -j ACCEPT
|
||||
#iptables -A FORWARD -i rmnet_data0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
#iptables -A FORWARD -i eth0 -o v4-rmnet_data0 -j ACCEPT
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# workaround for a git lfs bug when pushing
|
||||
# to PR branches that don't have lfs enabled
|
||||
|
||||
git lfs uninstall
|
||||
git push
|
||||
git lfs install
|
||||
Reference in New Issue
Block a user