-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
44 lines (37 loc) · 1.09 KB
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
#
# type
# make env
# to download the sources and prepare your system for kernel cross-compilation
#
# type
# make kernel
# to compile kernel
#
all:
make source compiler kernel
exit
source:
apt-get install git -y
git clone [email protected]:linux-sunxi/linux-sunxi.git --depth 1
cd linux-sunxi; git checkout sunxi-3.0; rm .git -Rf
compiler:
# append
# deb http://www.emdebian.org/debian/ testing main
# to /etc/apt/source.list
# apt-get update
apt-get install emdebian-archive-keyring -y
apt-get install gcc-4.4-arm-linux-gnueabi build-essential --force-yes
apt-get install uboot-mkimage -y
kernel:
cd linux-sunxi; \
#make ARCH=arm sun4i_defconfig; \
#make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- menuconfig \
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j3 uImage; \
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j3 INSTALL_MOD_PATH=output modules; \
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j3 INSTALL_MOD_PATH=output modules_install
cp linux-sunxi/arch/arm/boot/uImage .
socinit:
apt-get install libusb-1.0-0-dev -y
cd sunxi-tools; make
libcedarx:
./libcedarx.sh