Giter VIP home page Giter VIP logo

lambchops468 / android_kernel_pantech_msm8660-common Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pantechdevteam/android_kernel_pantech_msm8660-common

0.0 2.0 0.0 655.43 MB

Pantech Burst P9070 (presto) - android kernel tree

License: Other

Makefile 0.27% C 93.64% Assembly 1.90% C++ 3.21% Objective-C 0.79% Shell 0.03% Perl 0.09% Awk 0.01% Python 0.02% GDB 0.01% UnrealScript 0.01% Yacc 0.02% Lex 0.01% M4 0.01% Roff 0.01% Scilab 0.01% ASP 0.01% Prolog 0.01% Perl 6 0.01% XS 0.01%

android_kernel_pantech_msm8660-common's Introduction

Kernel for Pantech Burst P9070 (Board name "Presto")

These instructions are based off the README which accompanies the LG P769BK
v20h source code, located at
https://www.lg.com/global/support/opensource/opensourceList?types=ALL&search=P769
and the offical AOSP instructions at
https://source.android.com/source/building-kernels
 
How to build:
1. Obtain compiler from Android project:
1a. Get android’s ‘repo’ http://source.android.com/source/downloading.html
1b. Run
      repo init --depth=1 -u https://android.googlesource.com/platform/manifest -b android-4.4.4_r1
1c. Run
      repo sync platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7 platform/prebuilts/misc
2. Build the Kernel
2a. In the kernel directory, Run
      ARCH=arm
      CROSS_COMPILE="prebuilts/misc/linux-x86/ccache/ccache ../android-4.4.4_r1-prebuilt/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-"
      make -j4 zImage modules
    This will use the .config located at the root of this repository.
    The .config located at the root of this repository is based off the config that
    LG uses to build their official kernel. This can be found at
    arch/arm/configs/cyanogenmod_presto_defconfig or on the phone the kernel is
    booted at /proc/config.gz

2b. Alternatively, in the kernel directory, Run
      ./build_kernel.sh
    This uses the config at arch/arm/configs/cyanogenmod_presto_defconfig 



Obtaining the latest security patches

SUSE Linux Enterprise 11 Service Pack 4 uses the 3.0.101 kernel, and as of November 2017, is currently supported. We'll try to use their security backports in our kernel to bring our kernel up to date, since this kernel is also based on 3.0.101
The SUSE kernel source is browsable at https://kernel.opensuse.org/cgit/kernel/log/Makefile?h=SLE11-SP4 or at https://github.com/openSUSE/kernel/tree/SLE11-SP4

1. Add the SUSE kernel repo as a remote:
     git remote add -t SLE11-SP4 -m SLE11-SP4 suse https://github.com/openSUSE/kernel

2. Fetch all the objects since the creation of the 3.0.101 release
     git fetch --shallow-since 2013-10-20 suse

   If you need a local copy of the repo for conflict resolution, you can do a shallow one-branch clone:
     git clone --single-branch -b SLE11-SP4 --shallow-since 2013-10-20 https://github.com/openSUSE/kernel sle-kernel

3. Rebase interactively SUSE kernel patches into our kernel. You'll want to go through the list of commits being rebased and exclude any that add new kernel features, since those are for enterprise kernels and might mess with the android-specific changes in the kernel.

   Create the new branch into which we will add the security patches and switch to it.
     git checkout cm-11.0-mod
     git branch cm-11.0-mod-suse-sle11-sp4-6d327cd0f13-import  # 6d327cd0f13 is the last commit in the suse repo.

   Configure git so that it shows us full commit messages during interactive rebase 
     git config --add rebase.instructionFormat "%s - %b%n"

   Perform the rebase, adding the security patches to the newly created branch. Skip any commits that are not security fixes during this process. Luckily, security fixes have "CVE" and the CVE number in their descriptions, so they are easy to spot. During the editing of the rebase TODO list, just remove any lines which do not contain "CVE". Of those containing "CVE," try to drop security fixes for subsystems not used by Android to avoid unnecssary conflicts.
     git rebase -i --onto cm-11.0-mod-suse-sle11-sp4-6d327cd0f13-import 5dba9ddd98c suse/SLE11-SP4  # 5dba9ddd98c is the commit that creates the 3.0.101 release

android_kernel_pantech_msm8660-common's People

Contributors

acmel avatar adrianbunk avatar alanstern avatar arndb avatar avikivity avatar axellin avatar broonie avatar bzolnier avatar chrismason-xx avatar davem330 avatar dhowells avatar gregkh avatar heicarst avatar herbertx avatar htejun avatar hverkuil avatar jmberg avatar jmberg-intel avatar joeperches avatar kaber avatar lenb avatar neilbrown avatar ozbenh avatar pmundt avatar ralfbaechle avatar rddunlap avatar rjwysocki avatar sfrothwell avatar tiwai avatar torvalds avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.