aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoyster <oysterized@gmail.com>2016-10-27 13:59:33 +0200
committerMoyster <oysterized@gmail.com>2016-11-07 13:44:38 +0100
commit2b342ea36edded8e0b344c687569b2ed0274ba5b (patch)
tree4733f5b6d456a1a5065cf2d6b23d430e894d3201
parentbbf9d22cf912b459f21d213198520babb2c899fb (diff)
cleanup infos
readme update
-rw-r--r--README.md12
-rwxr-xr-xbuild_kernel.sh44
-rwxr-xr-xbuild_recovery_kernel.sh45
-rwxr-xr-xclean.sh18
4 files changed, 9 insertions, 110 deletions
diff --git a/README.md b/README.md
index 173e9a5c0..a4f6a786f 100644
--- a/README.md
+++ b/README.md
@@ -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