diff options
| author | Moyster <oysterized@gmail.com> | 2016-10-27 13:59:33 +0200 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-11-07 13:47:00 +0100 |
| commit | 3e2390c9a2d689a83ede2e1321054afa3fb89132 (patch) | |
| tree | 577f2c7d3846e870ca9d02742d338bc97ddf0ea8 | |
| parent | 5b33bacac215f1d42dbb5a046967b14795579907 (diff) | |
cleanup infos
readme update
| -rw-r--r-- | README.md | 12 | ||||
| -rwxr-xr-x | build_kernel.sh | 44 | ||||
| -rwxr-xr-x | build_recovery_kernel.sh | 45 | ||||
| -rwxr-xr-x | clean.sh | 18 |
4 files changed, 9 insertions, 110 deletions
@@ -1,7 +1,7 @@ [M571](http://www.meizu.com) ================= -M571 repo is Linux kernel source code for Meizu M2 Note smartphones. With this repo, you can customize the source code and compile a Linux kernel image yourself. Enjoy it! +Linux kernel source code for the Meizu M2 Note. HOW TO COMPILE ----------- @@ -12,7 +12,13 @@ HOW TO COMPILE ###2. Compiling### +From within the Android Sources you want to build, do : + ``` -In the build_kernel.sh (or build_recovery_kernel.sh) script You need to set the value ANDROID_SOURCES -Run script ;) +. build/envsetup.sh && breakfast m2note +make -jX bootimage +(where -jX is your number of cores + 1, -j5 for a quadcore) ``` + +This will give you a flashable boot.img located in out/target/product/device-xyz/ + diff --git a/build_kernel.sh b/build_kernel.sh deleted file mode 100755 index adef67752..000000000 --- a/build_kernel.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash -############################################################################## -# -# Kernel Build Script -# -############################################################################## -# 2016-08-17 Shev_t : created -############################################################################## - -############################################################################## -# define path to android 6.X sources -# Note: Set his value! -############################################################################## -ANDROID_SOURCES=~/AndroidSources/OmniROM-5.1/master - -############################################################################## -# set toolchain -############################################################################## -export ARCH=arm64 -export SUBARCH=arm64 -export CROSS_COMPILE=$ANDROID_SOURCES/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- -export MY_CONFIG=cm_m2note_defconfig - -############################################################################## -# set variables -############################################################################## -export KERNELDIR=`pwd` -KERNEL_OUT=$KERNELDIR/obj/KERNEL_OBJ -STRIP=${CROSS_COMPILE}strip - -############################################################################## -# make kernel -############################################################################## -mkdir -p $KERNEL_OUT -mkdir -p $KERNEL_OUT/tmp/kernel -mkdir -p $KERNEL_OUT/tmp/system/lib/modules - -make O=$KERNEL_OUT $MY_CONFIG -make -j10 O=$KERNEL_OUT - -if [ -f $KERNEL_OUT/arch/arm64/boot/Image.gz-dtb ] -then - cp -f $KERNEL_OUT/arch/arm64/boot/Image.gz-dtb ./ -fi diff --git a/build_recovery_kernel.sh b/build_recovery_kernel.sh deleted file mode 100755 index 566a64154..000000000 --- a/build_recovery_kernel.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -############################################################################## -# -# Kernel Build Script -# -############################################################################## -# 2016-08-15 Shev_t : created -############################################################################## - -############################################################################## -# define path to android 6.X sources -# Note: Set his value! -############################################################################## -ANDROID_SOURCES=~/AndroidSources/OmniROM-5.1/master - -############################################################################## -# set toolchain -############################################################################## -export ARCH=arm64 -export SUBARCH=arm64 -export CROSS_COMPILE=$ANDROID_SOURCES/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- -export LOCALVERSION="-recovery" -export MY_CONFIG=m2note_recovery_defconfig - -############################################################################## -# set variables -############################################################################## -export KERNELDIR=`pwd` -KERNEL_OUT=$KERNELDIR/obj/KERNEL_OBJ -STRIP=${CROSS_COMPILE}strip - -############################################################################## -# make kernel -############################################################################## -mkdir -p $KERNEL_OUT -mkdir -p $KERNEL_OUT/tmp/kernel -mkdir -p $KERNEL_OUT/tmp/system/lib/modules - -make O=$KERNEL_OUT $MY_CONFIG -make -j10 O=$KERNEL_OUT - -if [ -f $KERNEL_OUT/arch/arm64/boot/Image.gz-dtb ] -then - cp -f $KERNEL_OUT/arch/arm64/boot/Image.gz-dtb ./ -fi diff --git a/clean.sh b/clean.sh deleted file mode 100755 index ab3ccf9ad..000000000 --- a/clean.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -############################################################################### -# -# Kernel Clean Script -# -############################################################################### -# 2016-08-15 Shev_t : created -############################################################################### - -if [ -f ./Image.gz-dtb ] -then - rm ./Image.gz-dtb -fi - -if [ -d ./obj/ ] -then - rm -r ./obj/ -fi |
