Last active
August 25, 2018 16:09
-
-
Save minhducsun2002/6b53b69a4d0c6b60ac460be8dda3abf8 to your computer and use it in GitHub Desktop.
Script to compile kernel for my device, HTC Desire 700 dual-SIM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!rm -rf * | |
!git clone --depth=1 https://github.com/minhducsun2002/android_kernel_htc_cp5dug | |
!mv android_kernel_htc_cp5dug/* ./ | |
!apt install build-essential kernel-package libncurses5-dev bzip2 > /dev/null 2>&1 | |
!apt install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip > /dev/null 2>&1 | |
!git clone https://github.com/aosp-mirror/platform_prebuilt/tree/master/linux-x86/toolchain/arm-eabi-4.4.3 | |
!export PATH=./platform_prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH | |
# !cd android_kernel_htc_cp5dug | |
# !ls | |
!export ARCH=arm | |
!expot | |
!make cp5dug_defconfig; printf '\n' | make -j3; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment