Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] How to upstream/update a custom kernel?

OP DualJoe

30th July 2014, 03:29 PM   |  #1  
DualJoe's Avatar
OP Senior Member
DE
Thanks Meter: 560
 
1,358 posts
Join Date:Joined: Oct 2011
Hallo,
most custom kernels get updated/upstreamed to most recent (minor) Linux kernel base like 3.0.98 -> 3.0.101.
How can i upstream an untouched manufacturer kernel (eg. from Samsung) to current kernel.org (minor) kernel version?
Last edited by DualJoe; 31st July 2014 at 02:42 AM.
30th July 2014, 10:04 PM   |  #2  
Masrepus's Avatar
Senior Member
Thanks Meter: 80
 
707 posts
Join Date:Joined: Feb 2013
More
You can only do this if the kernel dev provides you with an updated version. So to update you must take a custom kernel with active development

---------------------------------
Phone : Nexus 4
OS :
- KitKat 4.4.4 stock
- Xposed: 58(app_process); 54(bridge)
- SU: SuperSU
- no custom recovery
---------------------------------

4d 61 73 72 65 70 75 73 20 66 74 77

Gesendet von Tapatalk
30th July 2014, 10:16 PM   |  #3  
DualJoe's Avatar
OP Senior Member
DE
Thanks Meter: 560
 
1,358 posts
Join Date:Joined: Oct 2011
I don't want to fork any pre-made usercontent (if possible). I have Samsung 4.4.2, AOSP and kernel.org sources available that should result in my own custom kernel (that can be updated to latest -but same- mainline base).

The question is what are the best methods/workflows to merge them (to get a source that can be updated with kernel.org source)? I guess that's how people 'rebase' their kernels...

Or can i simply merge the official kernel.org updates directly into Samsung source?

Edit: I guess i've found the answer already. Mainline patches will be applied directly from mainline (kernel.org) indeed (see here) with git apply. For minor updates it shouldn't be necessary to 3-way diff the sources like i thought in the first place (like this).
Last edited by DualJoe; 31st July 2014 at 03:20 AM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes