Newer
Older
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
45
46
47
48
49
50
51
WHAT IS THIS?
=============
Linux Kernel source code for the devices:
* bq aquaris M5.5
BUILD INSTRUCTIONS?
===================
Specific sources are separated by branches and each version is tagged with it's corresponding number. First, you should
clone the project:
$ git clone https://github.com/bq/aquaris-M5.5.git
After it, choose the version you would like to build:
*Aquaris M5.5*
$ mv aquaris-M5.5 kernel
$ cd kernel
$ git checkout aquaris-M5.5_5.x
At the same level of the "kernel" directory:
Download a prebuilt gcc
$ git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8
Create KERNEL_OUT dir:
$ mkdir KERNEL_OUT
Your directory tree should look like this:
* kernel
* arm-eabi-4.8
* KERNEL_OUT
Finally, build the kernel according the next table of product names:
| device | product |
| --------------------------|-------------------------|
| bq aquaris M5.5 | namek |
$ make -C kernel O=../KERNEL_OUT ARCH=arm CROSS_COMPILE=../arm-eabi-4.8/bin/arm-eabi- {product}_defconfig
$ make O=../KERNEL_OUT/ -C kernel ARCH=arm CROSS_COMPILE=../arm-eabi-4.8/bin/arm-eabi-
You can specify "-j CORES" argument to speed-up your compilation, example:
$ make O=../KERNEL_OUT/ -C kernel ARCH=arm CROSS_COMPILE=../arm-eabi-4.8/bin/arm-eabi- -j 8