aboutsummaryrefslogtreecommitdiff
path: root/zh-cn/setup/build/building-kernels.html
diff options
context:
space:
mode:
Diffstat (limited to 'zh-cn/setup/build/building-kernels.html')
-rw-r--r--zh-cn/setup/build/building-kernels.html25
1 files changed, 24 insertions, 1 deletions
diff --git a/zh-cn/setup/build/building-kernels.html b/zh-cn/setup/build/building-kernels.html
index ef657e32..ba49ca14 100644
--- a/zh-cn/setup/build/building-kernels.html
+++ b/zh-cn/setup/build/building-kernels.html
@@ -35,6 +35,18 @@
<th>编译配置</th>
</tr>
<tr>
+ <td>blueline</td>
+ <td>device/google/crosshatch-kernel</td>
+ <td><a href="#building-b1c1">说明</a></td>
+ <td>b1c1_defconfig</td>
+ </tr>
+ <tr>
+ <td>crosshatch</td>
+ <td>device/google/crosshatch-kernel</td>
+ <td><a href="#building-b1c1">说明</a></td>
+ <td>b1c1_defconfig</td>
+ </tr>
+ <tr>
<td>taimen</td>
<td>device/google/wahoo-kernel</td>
<td>kernel/msm</td>
@@ -241,7 +253,7 @@ git clone https://android.googlesource.com/kernel/common
<p><code>x86_64</code> 项目包含适用于 Nexus Player 的内核源代码,可用作在 Intel x86_64 芯片组上开展相关工作的着手点。</p>
<pre class="devsite-terminal devsite-click-to-copy">git clone https://android.googlesource.com/kernel/x86_64</pre>
-<h2 id="building">编译内核</h2>
+<h2 id="building">手动编译内核</h2>
<p>当您了解了内核的最后一条提交消息并已成功下载内核源代码和预编译的 gcc 后,就可以编译内核了。以下编译命令使用了 hikey 内核:</p>
<pre class="devsite-click-to-copy">
<code class="devsite-terminal">export ARCH=arm64</code>
@@ -264,4 +276,15 @@ export TARGET_PREBUILT_KERNEL=$your_kernel_path/arch/arm/boot/zImage-dtb
<p class="note"><strong>注意</strong>:内核名称因设备而异。要找到内核的正确文件名,请参阅内核源代码中的 <code>device/<var>VENDOR</var>/<var>NAME</var></code>。</p>
+<h2 id="building-b1c1">编译 Pixel 3 (blueline) 内核和 Pixel 3 XL (crosshatch) 内核</h2>
+
+<p>Pixel 3 和 Pixel 3 XL 的内核源代码已分为多个项目。使用 <a href="/setup/develop/repo#init">repo</a> 下载相应分支的内核源代码(在撰写本文时,<code><var>VERSION</var></code> 应为 <code>4.9-pie-qpr1</code>):</p>
+
+<pre class="devsite-terminal devsite-click-to-copy">repo init -u https://android.googlesource.com/kernel/manifest -b android-msm-bluecross-$<var>VERSION</var></pre>
+<pre class="devsite-terminal devsite-click-to-copy">repo sync</pre>
+
+<p>然后使用以下内容编译内核:</p>
+
+<pre class="devsite-terminal devsite-click-to-copy">sh build/build.sh</pre>
+
</body></html> \ No newline at end of file