diff --git a/CrossMakefile b/CrossMakefile new file mode 100644 index 0000000..c1f474c --- /dev/null +++ b/CrossMakefile @@ -0,0 +1,55 @@ +PREFIX=$(HOME)/opt +CROSS_PREFIX=$(shell pwd) +export PATH := $(CROSS_PREFIX)/bin/:$(PREFIX)/bin/:$(PATH) +all: sources + +sources: autoconf-2.64.tar.xz automake-1.11.1.tar.bz2 gcc-6.1.0.tar.bz2 binutils-2.26.tar.bz2 mpc-1.0.3.tar.gz mpfr-3.1.3.tar.xz gmp-6.1.0.tar.xz isl-0.16.tar.xz cloog-0.18.4.tar.gz gawk-4.1.3.tar.xz + mkdir sources; \ + cd sources; \ + tar -xf ../autoconf-2.64.tar.xz; \ + tar -xf ../automake-1.11.1.tar.bz2; \ + tar -xf ../gawk-4.1.3.tar.xz; \ + tar -xf ../binutils-2.26.tar.bz2; \ + tar -xf ../gcc-6.1.0.tar.bz2; \ + cd gcc-6.1.0; \ + tar -xf ../../mpc-1.0.3.tar.gz; \ + mv mpc-1.0.3 mpc; \ + tar -xf ../../mpfr-3.1.3.tar.xz; \ + mv mpfr-3.1.3 mpfr; \ + tar -xf ../../gmp-6.1.0.tar.xz; \ + mv gmp-6.1.0 gmp; \ + tar -xf ../../isl-0.16.tar.xz; \ + mv isl-0.16 isl; \ + tar -xf ../../cloog-0.18.4.tar.gz; \ + mv cloog-0.18.4 cloog +autoconf-2.64.tar.xz: + wget -q http://ftp.gnu.org/gnu/autoconf/autoconf-2.64.tar.xz + +automake-1.11.1.tar.bz2: + wget -q http://ftp.gnu.org/gnu/automake/automake-1.11.1.tar.bz2 + +gcc-6.1.0.tar.bz2: + wget -q ftp://ftp.gnu.org/gnu/gcc/gcc-6.1.0/gcc-6.1.0.tar.bz2 + +binutils-2.26.tar.bz2: + wget -q ftp://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.bz2 + +mpc-1.0.3.tar.gz: + wget -q ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz + +mpfr-3.1.3.tar.xz: + wget -q ftp://ftp.gnu.org/gnu/mpfr/mpfr-3.1.3.tar.xz + +gmp-6.1.0.tar.xz: + wget -q ftp://ftp.gnu.org/gnu/gmp/gmp-6.1.0.tar.xz + +isl-0.16.tar.xz: + wget -q http://isl.gforge.inria.fr/isl-0.16.tar.xz + +cloog-0.18.4.tar.gz: + wget -q http://www.bastoul.net/cloog/pages/download/cloog-0.18.4.tar.gz + +gawk-4.1.3.tar.xz: + wget -q http://ftp.gnu.org/gnu/gawk/gawk-4.1.3.tar.xz + +.PHONY: all cross \ No newline at end of file diff --git a/firmlink b/firmlink new file mode 100755 index 0000000..0a5c093 Binary files /dev/null and b/firmlink differ diff --git a/firmlink.cpp b/firmlink.cpp index ee8eaa3..100a4f5 100644 --- a/firmlink.cpp +++ b/firmlink.cpp @@ -12,7 +12,7 @@ struct FIRM_sect { uint32_t offset; uint32_t physical; uint32_t size; - bool arm11; + uint32_t arm11; uint8_t SHA256[0x20]; //Implement later. }__attribute__((packed)); struct FIRM_header { diff --git a/install_manifest.txt b/install_manifest.txt new file mode 100644 index 0000000..d2f0c84 --- /dev/null +++ b/install_manifest.txt @@ -0,0 +1 @@ +/usr/local/bin/firmlink \ No newline at end of file