---
# System prepended metadata

title: Compile Quectel SC600
tags: [Android BSP Development]

---

---
tags: Android BSP Development
---
# Compile Quectel SC600
Ubuntu 16.04
## Where to Get Source Code
#### Download Google Android 9.0.0 kernel 4.9
```
$ repo init -u https://source.codeaurora.org/quic/la/platform/manifest.git -b release -m LA.UM.7.6.2.r1-04300-89xx.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
$ repo sync
```
Download SC600 platform dependent SDK 'SC600_Android9.0.0_Quectel_SDK_r000120_20190610.tar.gz', decompress and overwrite the Google Android 9.0.0 kernel 4.9

## Compile
```
$ source build/envsetup.sh
$ lunch msm8953_64-userdebug
$ make -j 6
```

## FAQ
編譯過程中若有報錯缺少opensslv.h
```
CHK     include/config/kernel.release
  GEN     ./Makefile
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  Using /home/kevinlee/protech_workspace/android_source/MH5108_SC600/kernel/msm-4.9 as source for kernel
  CHK     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/sign-file
/home/kevinlee/protech_workspace/android_source/MH5108_SC600/kernel/msm-4.9/scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: 沒有此一檔案或目錄
compilation terminated.
scripts/Makefile.host:101: recipe for target 'scripts/sign-file' failed
make[2]: *** [scripts/sign-file] Error 1
/home/kevinlee/protech_workspace/android_source/MH5108_SC600/kernel/msm-4.9/Makefile:562: recipe for target 'scripts' failed

```
安裝缺少套件
```
$ sudo apt-get install libssl-dev
```