Sync KERNEL.PLATFORM standalone tree (Proprietary content from Qualcomm ChipCode with History): i). Chip code history customer follow section "Instructions to download sync_snap_v2.sh for chipcode history" ii). Chip code only customer follow section "Instructions to download sync_snap_v2.sh only for chipcode (HY22)" KERNEL.PLATFORM compilation cd kernel_platform && BUILD_CONFIG=msm-kernel/build.config.msm.kalama.tuivm VARIANT=defconfig ./build/build.sh This should build for “msm-kernel-kalama_tuivm_defconfig” for the user variant. You can also select VARIANT=debug_defconfig which should build for “msm-kernel-kalama_tuivm-debug_defconfig” which is debug variant. Copy kernel source and build artifacts to LE workspace. mkdir -p <LE workpace path>/src/kernel-5.15/ cp -rp <kernel SI workspace path>/kernel_platform <LE workpace path>/src/kernel-5.15/ cp -rp <kernel SI workspace path>/kernel_platform/out/ <LE workpace path>/src/kernel-5.15/ Once the copy is done the, the folder should look like this, <LE workpace path>src/kernel-5.15/ |-- kernel_platform |-- out具体怎么操作
时间: 2024-03-08 20:47:20 浏览: 167
这段话提供的是一些指令,用于同步Qualcomm ChipCode的历史记录,并编译KERNEL.PLATFORM。具体操作步骤如下:
1. 根据你的需求选择需要下载的脚本。如果需要下载Chip code的历史记录,可以按照"Instructions to download sync_snap_v2.sh for chipcode history"部分的指令进行操作;如果只需要下载Chip code,可以按照"Instructions to download sync_snap_v2.sh only for chipcode (HY22)"部分的指令进行操作。
2. 进入kernel_platform目录,执行以下命令进行编译:
```
cd kernel_platform && BUILD_CONFIG=msm-kernel/build.config.msm.kalama.tuivm VARIANT=defconfig ./build/build.sh
```
这条指令会编译出"msm-kernel-kalama_tuivm_defconfig"版本的内核。如果需要编译debug版本,可以将VARIANT替换为debug_defconfig。
3. 将编译好的内核源代码和构建产物复制到LE工作区。首先创建目录:
```
mkdir -p <LE workpace path>/src/kernel-5.15/
```
然后分别执行以下指令:
```
cp -rp <kernel SI workspace path>/kernel_platform <LE workpace path>/src/kernel-5.15/
cp -rp <kernel SI workspace path>/kernel_platform/out/ <LE workpace path>/src/kernel-5.15/
```
这两条指令分别将kernel_platform目录和构建产物复制到LE工作区。
4. 复制完成后,LE工作区的目录结构应该如下所示:
```
<LE workpace path>/src/kernel-5.15/
|-- kernel_platform
|-- out
```
注意,以上指令中的路径需要根据实际情况进行调整。
阅读全文