Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,780,552 Members 47,578 Now Online
XDA Developers Android and Mobile Development Forum

Kernel Building Help

Tip us?
 
Chochiwpg
Old
#1  
Chochiwpg's Avatar
Senior Member - OP
Thanks Meter 2,142
Posts: 4,252
Join Date: Feb 2012
Location: Winnipeg
Default Kernel Building Help

Wondering if anyone can give me a hand. I am trying to build the kernel from source and am running into a problem. What am I doing wrong?

First I obtain the kernel binary git log

git clone https://android.googlesource.com/device/lge/hammerhead
cd hammerhead
git log --max-count=1

I then made note of the commit message received

Then I downloaded kernel sources

git clone https://android.googlesource.com/kernel/msm.git

Then I downloaded prebuilt GCC

git clone https://android.googlesource.com/pla...m/arm-eabi-4.6

Then I went to build

export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-eabi-
git checkout (with the commit message from earlier)
make hammerhead_deconfig

Then I get this error message
make: *** No rule to make target `hammerhead_deconfig'. Stop.

Not sure what I did wrong or how to resolve. Any suggestions? Thanks.
You Are Either Nexus Or Against Us

My Android File Host Profile
http://www.androidfilehost.com/?w=pr...17610006234125

SimpleAOSP Hammerhead Builds
http://www.androidfilehost.com/?w=files&flid=16341
 
Gnome
Old
(Last edited by Gnome; 28th June 2014 at 03:41 AM.)
#2  
Gnome's Avatar
Recognized Contributor
Thanks Meter 5,168
Posts: 1,678
Join Date: Jul 2013
Location: 127.0.0.1

 
DONATE TO ME
Dude, its hammerhead_defconfig not hammerhead_deconfig.

Check my SCRIPT
Guides:
How to Make Flashable Zips: Link
Repositories:
Kernel Repo's for certain devices: Link1 && Link2
Organizations:
Lead Developer: The Arkenstone Kernel / Stuxnet Kernel
Team Member: AOSPAL (PSD)
Team Member: SimpleAOSP
Google+/Hangouts: Link
Team AOSPAL Paranoid Saber Droid: Link
Downloads
The Arkenstone Kernel: Link
The Following User Says Thank You to Gnome For This Useful Post: [ Click to Expand ]
 
Chochiwpg
Old
#3  
Chochiwpg's Avatar
Senior Member - OP
Thanks Meter 2,142
Posts: 4,252
Join Date: Feb 2012
Location: Winnipeg
Quote:
Originally Posted by Gnome View Post
Dude, its hammerhead_defconfig not hammerhead_deconfig.

Check my SCRIPT
I'll give that a go and should I perform that command in the hammerhead path or msm path?

Sent from my Nexus 5 using XDA Free mobile app
You Are Either Nexus Or Against Us

My Android File Host Profile
http://www.androidfilehost.com/?w=pr...17610006234125

SimpleAOSP Hammerhead Builds
http://www.androidfilehost.com/?w=files&flid=16341
 
Gnome
Old
(Last edited by Gnome; 28th June 2014 at 04:14 AM.)
#4  
Gnome's Avatar
Recognized Contributor
Thanks Meter 5,168
Posts: 1,678
Join Date: Jul 2013
Location: 127.0.0.1

 
DONATE TO ME
Quote:
Originally Posted by Chochiwpg View Post
I'll give that a go and should I perform that command in the hammerhead path or msm path?

Sent from my Nexus 5 using XDA Free mobile app
Do that in kernel patch itself..

Based on your post the Kernel Path is msm, so:

Code:
cd msm
then run the commands, dont forget to checkout the right branch, I think it's android-hammerhead-kk-mr2

Code:
git checkout android-hammerhead-kk-mr2
Guides:
How to Make Flashable Zips: Link
Repositories:
Kernel Repo's for certain devices: Link1 && Link2
Organizations:
Lead Developer: The Arkenstone Kernel / Stuxnet Kernel
Team Member: AOSPAL (PSD)
Team Member: SimpleAOSP
Google+/Hangouts: Link
Team AOSPAL Paranoid Saber Droid: Link
Downloads
The Arkenstone Kernel: Link
The Following User Says Thank You to Gnome For This Useful Post: [ Click to Expand ]
 
Chochiwpg
Old
#5  
Chochiwpg's Avatar
Senior Member - OP
Thanks Meter 2,142
Posts: 4,252
Join Date: Feb 2012
Location: Winnipeg
Quote:
Originally Posted by Gnome View Post
Dude, its hammerhead_defconfig not hammerhead_deconfig.

Check my SCRIPT
Hey bud,

tried defconfig as well and got the exact same error message. Sigh
You Are Either Nexus Or Against Us

My Android File Host Profile
http://www.androidfilehost.com/?w=pr...17610006234125

SimpleAOSP Hammerhead Builds
http://www.androidfilehost.com/?w=files&flid=16341
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes