yashsingh1/xdaforums huggingface dataset:
[Android] lithid-cm:
sudo apt-get install openjdk-6-jdk

line 141 in build/core/main.mk

remove, this lets the build move forward with using openjdk

$(error stop)
[Android] kmmxracer:
Your post is to vague. What do you mean install "any version" a

The OP needs to be changed because that version of java is not available anymore through terminal
[Android] Trugglepunts:
do this

sudo add-apt-repository ppa:ferramroberto/java

sudo apt-get update

You can now install the JDK with the following command:

sudo apt-get install sun-java6-jdk
[Android] dastin1015:
If you read the entire quote you saw that he found the Java 6 JDK files and asked which update version to install. I said any Java 6 JDK version. OP is currently being worked on. I'm not aware of some inablities to download certain aspects of the environment as I've had my environment set since Gingerbread.
[Android] onlychevys:
seems to be installed :

mark@mark:~$ sudo apt-get install openjdk-6-jdk

Reading package lists... Done

Building dependency tree

Reading state information... Done

openjdk-6-jdk is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.

mark@mark:~$ sudo apt-get install openjdk-6-jdk

Reading package lists... Done

Building dependency tree

Reading state information... Done

openjdk-6-jdk is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.

try to run:

You are attempting to build with the incorrect version

of java.

Your version is: /bin/bash: java: command not found.

The correct version is: Java SE 1.6.

Please follow the machine setup instructions at

https://source.android.com/source/download.html

************************************************************

build/core/main.mk:141: *** stop. Stop.

mark@mark:~/WORKING_DIRECTORY$
[Android] dastin1015:
I've opted to use Open JDK in the OP.
[Android] dastin1015:
You have yet to delete line 141 in main.mk in build/core and java hasn't been set apparently
[Android] Trugglepunts:
i'm not being cheeky but if you are having trouble installing the correct version of java then you should really ask yourself if you should be compiling this from source
[Android] onlychevys:
Yea thanks for that, I think I will give up and let you take over! Oh,wait I did not say I was a dev I just had everything set up before and compiled ICS that I could not get working on my device but I'm freaking trying. And thanks to the great dev's that help people like me ,we can brick our own phone's without your help. This is a Tutorial right?

And this is a post from you:This is all downloading nicely but I don't see any files in WORKING_DIRECTORY yet

where will they be?

, I set up my build system a while back and have to reconfigure, you are not quiet a dev yourself, just sayin& not being cheeky
[Android] lithid-cm:
Pretty sure we could have gone on without this comment. He is just trying to get his feet wet, what does it bother you anyways? Not like your the one helping him...
[Android] Trugglepunts:
i apologise, i was a bit out of order there. Good luck with the build, i will prob have questions tomorrow!
[Android] murray68w:
Upon syncing I get this

error: Couldn't resolve host 'android.googlesource.com' while accessing https://android.googlesource.com/platform/bootable/bootloader/legacy/info/refs

fatal: HTTP request failed

I'm assuming it could not sync with that portion, repeat the sync get the same error on different parts exp. bluetooth will not sync. should I take my computer to a more reliable internet source or is this just a google server problem? I just want to make sure I have all the required parts before I continue my build.

Thank you.
[Android] lithid-cm:
You may see that issue over the next few days since it was just released recently. There are though a few things you might be able to try.

First, sync with only one job to see if it can stabilize the sync.

repo sync -j1

If that is no good, type making this change to the ipv4 tcp stack.

sudo sysctl -w net.ipv4.tcp_window_scaling=0

Good Luck.
[Android] kmmxracer:
I've compiled many roms from AOSP and have figured out a way around this, I just think if someone is going to make a tutorial for the community then they should have details like this worked out.
[Android] onlychevys:
Originally Posted by onlychevys

seems to be installed :

mark@mark:~$ sudo apt-get install openjdk-6-jdk

Reading package lists... Done

Building dependency tree

Reading state information... Done

openjdk-6-jdk is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.

mark@mark:~$ sudo apt-get install openjdk-6-jdk

Reading package lists... Done

Building dependency tree

Reading state information... Done

openjdk-6-jdk is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.

try to run:

You are attempting to build with the incorrect version

of java.

Your version is: /bin/bash: java: command not found.

The correct version is: Java SE 1.6.

Please follow the machine setup instructions at

https://source.android.com/source/download.html

************************************************** **********

build/core/main.mk:141: *** stop. Stop.

mark@mark:~/WORKING_DIRECTORY$

You have yet to delete line 141 in main.mk in build/core and java hasn't been set apparently

Line 141 is deleted, how do I set java?
[Android] lithid-cm:
You can list the installed java variants with:

sudo update-java-alternatives -l

To set openjdk-6

sudo update-java-alternatives -s java-6-openjdk
[Android] onlychevys:
mark@mark:~$ sudo update-java-alternatives -l

[sudo] password for mark:

java-1.6.0-openjdk-amd64 1061 /usr/lib/jvm/java-1.6.0-openjdk-amd64

java-1.7.0-openjdk-amd64 1051 /usr/lib/jvm/java-1.7.0-openjdk-amd64

mark@mark:~$ sudo update-java-alternatives -s java-6-openjdk

update-java-alternatives: directory does not exist: /usr/lib/jvm/java-6-open

I can't get close to the water much less get my feet wet. How in the heck did I get the last setup running?
[Android] lithid-cm:
sudo update-java-alternatives -s java-6-openjdk-amd64

Sorry I left out the amd64 detail.
[Android] PoXFreak:
Is anyone else working on the Samsung Infuse?

I'm wondering because if I can get my system set up I should be on the way to compiling within a couple of days.

Haven't compiled anything since Froyo, much less JB, might need pointers once in awhile.

Thanx to all that have the "been there-done that-got the t shirt" badges on, I think we're all in for a fun ride!
[Android] cybojenix:
problem

Hi, I am from p350, and I am having an issue getting jb to compile

http://pastebin.com/9cprtrTc

any help is appreciated. We are all stuck on trying to get this to work:/
[Android] Roladriz:
Anyone familiar with cherry picking? Just tried to pick something that was submitted and never seen this before.

michael@sourcebuilder:~/android/paranoid/build$ git fetch http://review.paranoid-rom.com/ParanoidAndroid/android_frameworks_base refs/changes/17/17/2 && git cherry-pick FETCH_HEAD
warning: no common commits
remote: Counting objects: 612291, done
remote: Finding sources: 100% (612291/612291)
remote: Total 612291 (delta 373566), reused 607853 (delta 373566)
Receiving objects: 100% (612291/612291), 844.30 MiB | 2.46 MiB/s, done.
Resolving deltas: 100% (373566/373566), done.
From http://review.paranoid-rom.com/ParanoidAndroid/android_frameworks_base
* branch refs/changes/17/17/2 -> FETCH_HEAD
warning: too many files (created: 525 deleted: 18450), skipping inexact rename detection
Automatic cherry-pick failed. After resolving the conflicts,
mark the corrected paths with 'git add <paths>' or 'git rm <paths>'
and commit the result with:

git commit -c FETCH_HEAD
[Android] TUN_SD:
hello devs.

I need to build some apps with all graphics formats, (mdpi/hdpi/xhdpi) atm only xhdpi is compiled. Is this possible and where can I change this? ( I have cm and stock android source on my ssd)

any help is extremely appreciated. ;)
[Android] lithid-cm:
sudo apt-get install meld
git mergetool

Merge the code and compile again.
[Android] lithid-cm:
Example:

https://github.com/CyanogenMod/android_device_samsung_tuna/blob/jellybean/device.mk

PRODUCT_AAPT_CONFIG := mdpi hdpi xhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi

PRODUCT_AAPT_CONFIG will build with whatever formats you describe.

PRODUCT_AAPT_PREF_CONFIG is what your device will search for first.

Just add what you want to PRODUCT_AAPT_CONFIG example:

PRODUCT_AAPT_CONFIG := mdpi hdpi xhdpi
[Android] TUN_SD:
your´re the man! can´t thank you enough! :D:D
[Android] Roladriz:
Lithid you are extremely helpful man. I get this after git mergetool

michael@sourcebuilder:~$ git mergetool
fatal: Not a git repository (or any of the parent directories): .git
michael@sourcebuilder:~$
[Android] lithid-cm:
Try git merg and hit tab a few times any options? Also, make sure you are in the directory causing the error. Like if you cerry picked to build make sure you cd into build first then run git mergetool
[Android] Roladriz:
michael@sourcebuilder:~$ git merg
git: 'merg' is not a git command. See 'git --help'.

Did you mean this?
merge
michael@sourcebuilder:~$
Display all 2314 possibilities? (y or n)
:
!
./
[
[[
]]
{
}
2to3
2to3-2.6
a2p
aapt
abiword
accept
accessdb
aclocal
aclocal-1.11
aconnect
acpi_available
acpid
acpi_fakekey
acpi_listen
adb
michael@sourcebuilder:~$

ok will try that
[Android] lithid-cm:
Output this for me:

dpkg --get-selections git-core

I think you are missing the "git-core" packages.

lithid@UbuntuLaptop:~/Documents/AOSCompiler$ dpkg -S git-core |grep mergetool
git: /usr/lib/git-core/mergetools/diffuse
git: /usr/lib/git-core/mergetools/meld
git: /usr/lib/git-core/mergetools/tortoisemerge
git: /usr/lib/git-core/mergetools/vim
git: /usr/lib/git-core/mergetools/kompare
git: /usr/lib/git-core/git-mergetool--lib
git: /usr/lib/git-core/mergetools/emerge
git: /usr/lib/git-core/mergetools/ecmerge
git: /usr/lib/git-core/mergetools/p4merge
git: /usr/lib/git-core/mergetools/araxis
git: /usr/lib/git-core/mergetools
git: /usr/lib/git-core/mergetools/defaults
git: /usr/lib/git-core/mergetools/xxdiff
git: /usr/lib/git-core/mergetools/tkdiff
git: /usr/lib/git-core/mergetools/kdiff3
git: /usr/lib/git-core/mergetools/bc3
git: /usr/lib/git-core/git-mergetool
git: /usr/lib/git-core/mergetools/opendiff
[Android] Roladriz:
michael@sourcebuilder:~$ dpkg --get-selections git-core
git-core	install
michael@sourcebuilder:~$

Here is the list of my git-core packages

michael@sourcebuilder:~$ cd /usr/lib/git-core
michael@sourcebuilder:/usr/lib/git-core$ ls
git git-hash-object git-rebase--interactive
git-add git-help git-receive-pack
git-add--interactive git-http-backend git-reflog
git-am git-http-fetch git-relink
git-annotate git-http-push git-remote
git-apply git-imap-send git-remote-ftp
git-archive git-index-pack git-remote-ftps
git-bisect git-init git-remote-http
git-bisect--helper git-init-db git-remote-https
git-blame git-instaweb git-repack
git-branch git-log git-replace
git-bundle git-lost-found git-repo-config
git-cat-file git-ls-files git-request-pull
git-check-attr git-ls-remote git-rerere
git-checkout git-ls-tree git-reset
git-checkout-index git-mailinfo git-revert
git-check-ref-format git-mailsplit git-rev-list
git-cherry git-merge git-rev-parse
git-cherry-pick git-merge-base git-rm
git-citool git-merge-file git-send-pack
git-clean git-merge-index git-shell
git-clone git-merge-octopus git-shortlog
git-commit git-merge-one-file git-show
git-commit-tree git-merge-ours git-show-branch
git-config git-merge-recursive git-show-index
git-count-objects git-merge-resolve git-show-ref
git-daemon git-merge-subtree git-sh-setup
git-describe git-mergetool git-stage
git-diff git-mergetool--lib git-stash
git-diff-files git-merge-tree git-status
git-diff-index git-mktag git-stripspace
git-difftool git-mktree git-submodule
git-difftool--helper git-mv git-symbolic-ref
git-diff-tree git-name-rev git-tag
git-fast-export git-notes git-tar-tree
git-fast-import git-pack-objects git-unpack-file
git-fetch git-pack-redundant git-unpack-objects
git-fetch-pack git-pack-refs git-update-index
git-filter-branch git-parse-remote git-update-ref
git-fmt-merge-msg git-patch-id git-update-server-info
git-for-each-ref git-peek-remote git-upload-archive
git-format-patch git-prune git-upload-pack
git-fsck git-prune-packed git-var
git-fsck-objects git-pull git-verify-pack
git-gc git-push git-verify-tag
git-get-tar-commit-id git-quiltimport git-web--browse
git-grep git-read-tree git-whatchanged
git-gui git-rebase git-write-tree
michael@sourcebuilder:/usr/lib/git-core$
[Android] sjoerd0301:
kernel compiling

I might have found a fix for this error:

i am trying it now maybe it'll work, copy the /build/core/task/kernel.mk from the CYANOGENMOD10 dir (ill post it here).

and paste it in the corresponding folder in the aosp tree, /build/core/task/kernel.mk

(it's building now and as far as this it looks good!

good luck!

ps.(do not blame me for ba english, I'm Dutch(to all the grammar nazi's))

btw, NICE TUT! :P
[Android] mg2195:
You need more than that...you'll get errors saying its still missing stuff...I got close a while back and listed all the files I copied from cyanogen...but I never got 100% there

Post 1116

http://xdaforums.com/showpost.php?p=30896686&postcount=1116
[Android] triptosyll:
Yep. I'm STILL fighting errors trying to get them to build together. Have fun! :confused:

---------------------------

Bacon in my coffee, please? u don't have bacon??!! Unacceptable!!
[Android] mg2195:
ok....stuck at this error when compiling cm10 for htc Vivi...any suggestions?

target thumb C++: copybit.msm8660 <= hardware/qcom/display/libcopybit/copybit.cpp
hardware/qcom/display/libcopybit/copybit.cpp: In function 'int get_format(int)':
hardware/qcom/display/libcopybit/copybit.cpp:134:59: error: 'MDP_Y_CBCR_H2V2_ADRENO' was not declared in this scope
hardware/qcom/display/libcopybit/copybit.cpp: In function 'void set_infos(copybit_context_t*, mdp_blit_req*, int)':
hardware/qcom/display/libcopybit/copybit.cpp:219:23: error: 'MDP_MEMORY_ID_TYPE_FB' was not declared in this scope
make: *** [out/target/product/holiday/obj/SHARED_LIBRARIES/copybit.msm8660_intermediates/copybit.o] Error 1
make: *** Waiting for unfinished jobs....
target StaticLib: libc_nomalloc (out/target/product/holiday/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
mikey@mikey-GeForce7050M-M:~/vividcm10$

should i just delete the mdp... references?
[Android] sakindia123:
Define that function in header (include/linux) in device tree

Sent from my GT-I9100
[Android] cpwshf:
Hello.

Okay, well i've been trying to get a custom build for my SGS3, using device and vendor trees from cyanogenmod for my AOSP build. I am able to compile and flash to my phone, however it is having issues with the display, part of a logcat shows:

I/Adreno200-EGL( 561): <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB.04.01.01.00.036_msm8960_JB_CL2644550_release_AU (CL2644550)
I/Adreno200-EGL( 561): Build Date: 07/31/12 Tue
I/Adreno200-EGL( 561): Local Branch:
I/Adreno200-EGL( 561): Remote Branch: quic/master
I/Adreno200-EGL( 561): Local Patches: NONE
I/Adreno200-EGL( 561): Reconstruct Branch: AU_LINUX_ANDROID_JB.04.01.01.00.036 + NOTHING
E/memalloc( 236): ION_IOC_ALLOC failed with error - Out of memory
W/memalloc( 236): Falling back to system heap
E/memalloc( 236): ION_IOC_ALLOC failed with error - Out of memory
E/gralloc ( 236): gralloc failed err=Out of memory
W/GraphicBufferAllocator( 236): alloc(720, 1280, 2, 00000b03, ...) failed -12 (Out of memory)

I have a complete logcat here: http://pastebin.com/UkCF9WUv

[. I am wondering if there's something with the graphics buffer NOT being there(as compared to a CM logcat), and I am wondering how do I got about enabling it if that is the issue? I know there are other problems from the logcat like audio, but I am trying to do this one step at a time.

I'd appreciate any ideas, Thank You.

UPDATE: I found that there are two additional directories under hardware I was missing, qcom and cm, after adding them in, my build errors out with:

In file included from hardware/qcom/display/liboverlay/overlayRotator.h:35:0,
from hardware/qcom/display/liboverlay/overlayRotator.cpp:18:
hardware/qcom/display/liboverlay/mdpWrapper.h:39:31: fatal error: linux/msm_rotator.h: No such file or directory
compilation terminated.
hardware/qcom/display/libgenlock/genlock.cpp:33:27: fatal error: linux/genlock.h: No such file or directory
compilation terminated.
make: *** [out/target/product/d2vzw/obj/SHARED_LIBRARIES/libgenlock_intermediates/genlock.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/d2vzw/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayRotator.o] Error 1
In file included from hardware/qcom/display/liboverlay/overlayUtils.cpp:37:0:

Still trying to figure out where it's looking for those files...
[Android] mg2195:
Would've never thought to look there...I kept looking in qcom...the branch I cloned was actually missing the include folder...switched to a different jellybean branch and now it seems to be going :D
[Android] mg2195:
new error...seems pretty straight forward...just dont know where im supposed to add the reference...

make -C kernel/htc/KangBanged-Kernel/ O=/home/mikey/vividcm10/out/target/product/holiday/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/mikey/vividcm10/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" kangbang_defconfig
make[1]: Entering directory `/home/mikey/vividcm10/kernel/htc/KangBanged-Kernel'
target Symbolic: libstdc++ (out/target/product/holiday/symbols/system/lib/libstdc++.so)
target SharedLib: libm (out/target/product/holiday/obj/SHARED_LIBRARIES/libm_intermediates/LINKED/libm.so)
/home/mikey/vividcm10/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/holiday/obj/SHARED_LIBRARIES/libm_intermediates/src/e_pow.o: in function pow:bionic/libm/src/e_pow.c:237: error: undefined reference to 'pow_neon'
collect2: ld returned 1 exit status
make: *** [out/target/product/holiday/obj/SHARED_LIBRARIES/libm_intermediates/LINKED/libm.so] Error 1
make: *** Waiting for unfinished jobs....
GEN /home/mikey/vividcm10/out/target/product/holiday/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/mikey/vividcm10/kernel/htc/KangBanged-Kernel'
mikey@mikey-GeForce7050M-M:~/vividcm10$

edit just added a better output

edit2...think i figured it out on my own
[Android] cybojenix:
build error

I have been having issues building Jelly Bean, and I can't find the answers anyway

I know people have had similar issues, but the topic has always just suddenly been dropped

Here are the errors, please help me fix them

http://pastebin.com/LXmRxUPm

target thumb C++: libSR_AudioIn <= external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioSetVolume(int, int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:155:61: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:58:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::setStreamVolume(audio_stream_type_t, float, audio_io_handle_t)' [-fpermissive]
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioGetVolume(int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:165:50: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:60:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::getStreamVolume(audio_stream_type_t, float*, audio_io_handle_t)' [-fpermissive]
make: *** [out/target/product/p350/obj/SHARED_LIBRARIES/libSR_AudioIn_intermediates/audioinwrapper.o] Error 1
make: *** Waiting for unfinished jobs....
true

and this one

http://pastebin.com/jf7G1iR2

target thumb C++: audio.primary.goldfish <= device/generic/goldfish/audio/AudioHardwareGeneric.cpp
device/generic/goldfish/audio/AudioHardwareGeneric.cpp: In function 'android_audio_legacy::AudioHardwareInterface* android_audio_legacy::createAudioHardware()':
device/generic/goldfish/audio/AudioHardwareGeneric.cpp:411:37: error: cannot allocate an object of abstract type 'android_audio_legacy::AudioHardwareGeneric'
device/generic/goldfish/audio/AudioHardwareGeneric.h:105:7: note: because the following virtual functions are pure within 'android_audio_legacy::AudioHardwareGeneric':
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:342:29: note:	virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface::openOutputStream(uint32_t, audio_output_flags_t, int*, uint32_t*, uint32_t*, android::status_t*)
make: *** [out/target/product/p350/obj/SHARED_LIBRARIES/audio.primary.goldfish_intermediates/AudioHardwareGeneric.o] Error 1
make: *** Waiting for unfinished jobs....

Is there anyone that can help, or does anyone know about anyone that can help?
[Android] sjoerd0301:
Hmm, seems legit :P,

Tought i'd bee the first, but no...

Well it seems to work, well except for a lot of kernel errors it self.

I DID build aosp full. For the evo 3D gsm.

Then i did this, for the record i turned off the whole kernel stuff in boardconfig.mk.

Then turned them on after the successfull build, and tadah it's working...

I had crappy .img files at first, bit it's fixed now!
[Android] mg2195:
Ugh...i hate asking for so much help...but asking is part of learning

anyways...another missing refrence and im not sure where to add this one...

make -C kernel/htc/KangBanged-Kernel/ O=/home/mikey/vividcm10/out/target/product/holiday/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/mikey/vividcm10/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" kangbang_defconfig
make[1]: Entering directory `/home/mikey/vividcm10/kernel/htc/KangBanged-Kernel'
target Symbolic: libc (out/target/product/holiday/symbols/system/lib/libc.so)
host Executable: aapt (out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt)
true
Copying: out/target/common/obj/JAVA_LIBRARIES/android-support-v4_intermediates/classes-jarjar.jar
GEN /home/mikey/vividcm10/out/target/product/holiday/obj/KERNEL_OBJ/Makefile
Install: /home/mikey/vividcm10/out/host/linux-x86/bin/zipalign
Copying: out/target/common/obj/JAVA_LIBRARIES/guava_intermediates/emma_out/lib/classes-jarjar.jar
host SharedLib: libdvm (out/host/linux-x86/obj/lib/libdvm.so)
#
# configuration written to .config
#
make[1]: Leaving directory `/home/mikey/vividcm10/kernel/htc/KangBanged-Kernel'
out/host/linux-x86/obj/SHARED_LIBRARIES/libdvm_intermediates/alloc/HeapSource.o: In function `trimHeaps':
/home/mikey/vividcm10/dalvik/vm/alloc/HeapSource.cpp:1412: undefined reference to `dlmalloc_trim'
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/lib/libdvm.so] Error 1
make: *** Waiting for unfinished jobs....
[Android] sjoerd0301:
I'd say clone another and take a look at this one later...

Maybe you can compare the source of a working kernel to this one.
[Android] cowsquad:
Very. Nice guide
[Android] sakindia123:
was building aosp jellybean(cm10 refused to boot).

it boots ,but boots to a black screen

logcat says "E/dalvikvm( 1542): Dex cache directory isn't writable: /cache/dalvik-cache" due to which dalvik-cache for any app isnt able to get created,and thus dalvik virtual machine crashes....

I checked init.rc,the below lines are present,can u double check if these are correct?

# create dalvik-cache and double-check the perms, so as to enforce our permissions

mkdir /data/dalvik-cache 0771 system system

chown system system /data/dalvik-cache

chmod 0771 /data/dalvik-cache

mkdir /cache/dalvik-cache 0771 system system

chown system system /cache/dalvik-cache

chmod 0771 /cache/dalvik-cache

i force remount as rw but doesnt help
[Android] ironmaskusa:
This sounds pretty cool Will have give it a shot