forked from pedro0311/buildroot-2012.02-arm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-toolchain.sh
executable file
·33 lines (24 loc) · 1.02 KB
/
build-toolchain.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
make clean
make
FILES=./dl_save/files
HERE=$(pwd)
TOOLCHAIN=./output/host/hndtools-arm-linux-2.6.36-uclibc-4.5.3
SYSROOT=$TOOLCHAIN/arm-brcm-linux-uclibcgnueabi/sysroot
cd $TOOLCHAIN
ln -sf arm-linux/sysroot/usr usr
cd $HERE
rm -f $TOOLCHAIN/lib/libgmp.*
rm -f $TOOLCHAIN/lib/libiberty.a
rm -f $TOOLCHAIN/lib/libc.a
cp -f $FILES/fixed/in.h $SYSROOT/usr/include/netinet/in.h
cp -f $FILES/namespaces/if_link.h $SYSROOT/usr/include/linux/if_link.h
cp -f $FILES/namespaces/sysnum.h $SYSROOT/usr/include/bits/sysnum.h
cp -f $FILES/namespaces/unistd.h $SYSROOT/usr/include/asm-generic/unistd.h
cp -f $FILES/newer/ctype.h $SYSROOT/usr/include/ctype.h
cp -f $FILES/newer/if_pppol2tp.h $SYSROOT/usr/include/linux/if_pppol2tp.h
cp -f $FILES/newer/if_pppox.h $SYSROOT/usr/include/linux/if_pppox.h
cp -f $FILES/newer/timex.h $SYSROOT/usr/include/sys/timex.h
cp -f $FILES/pps/timepps.h $SYSROOT/usr/include/timepps.h
cp -f $FILES/wireguard/netlink.h $SYSROOT/usr/include/linux/netlink.h
echo -e "\nToolchain successfully built!\n\n"