Sign in to follow this  
Followers 0
Lеech

How to build kernel for cm10 ?

7 posts in this topic

Take the cyanogen_salsa_defconfig from the cm9 sources.

I've got this :


[email protected]:~/Documents/mydroid_cm/kernel$ make ARCH=arm cyanogenmod_salsa_defconfig

drivers/video/Kconfig:2276:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:742:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:752:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:760:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:769:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:797:warning: defaults for choice values not supported

#

# configuration written to .config

#

[email protected]:~/Documents/mydroid_cm/kernel$ make ARCH=arm CROSS_COMPILE=arm-eabi- -j4

scripts/kconfig/conf -s arch/arm/Kconfig

drivers/video/Kconfig:2276:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:742:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:752:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:760:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:769:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:797:warning: defaults for choice values not supported

  CHK	 include/linux/version.h

  SYMLINK include/asm -> include/asm-arm

make[1]: `include/asm-arm/mach-types.h' is up to date.

  CHK	 include/linux/utsrelease.h

  HOSTCC  scripts/bin2c

  CC	  scripts/mod/empty.o

  MKELF   scripts/mod/elfconfig.h

  HOSTCC  scripts/mod/file2alias.o

  HOSTCC  scripts/mod/modpost.o

  HOSTCC  scripts/mod/sumversion.o

scripts/mod/modpost.c: In function ‘get_markers’:

scripts/mod/modpost.c:1542:12: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]

scripts/mod/modpost.c: In function ‘add_marker’:

scripts/mod/modpost.c:1962:10: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]

  HOSTLD  scripts/mod/modpost

  CC	  kernel/bounds.s

  GEN	 include/linux/bounds.h

  CC	  arch/arm/kernel/asm-offsets.s

  GEN	 include/asm/asm-offsets.h

  CALL    scripts/checksyscalls.sh

  CHK	 include/linux/compile.h

  CC	  init/main.o

  CC	  init/do_mounts.o

  LD	  usr/built-in.o

arm-eabi-ld: usr/initramfs_data.o: No such file: No such file or directory

make[1]: *** [usr/built-in.o] Error 1

make: *** [usr] Error 2

make: *** Waiting for unfinished jobs....

  CC	  init/do_mounts_rd.o

  CC	  init/do_mounts_initrd.o

  CC	  init/initramfs.o

  CC	  init/calibrate.o

  CC	  init/version.o

  LD	  init/mounts.o

  LD	  init/built-in.o

[email protected]:~/Documents/mydroid_cm/kernel$

0

Share this post


Link to post
Share on other sites

Although you can compile the kernel separately I would recommend you to use the cyanogen framework to compile the kernel. Do ". ./buidl/envestup.sh && brunch salsa" after checking out the cm10 source.

Edited by parvata
0

Share this post


Link to post
Share on other sites

I was integrated kernel building and nothing was changed :


OUT_DIR=/home/vova/mydroid_cm/out

============================================

find: `src': No such file or directory

build/core/Makefile:39: warning: overriding commands for target `/home/vova/mydroid_cm/out/target/product/salsa/system/bin/brcm_patchram_plus'

build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/vova/mydroid_cm/out/target/product/salsa/system/bin/brcm_patchram_plus'

PRODUCT_COPY_FILES frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml ignored.

build/core/Makefile:39: warning: overriding commands for target `/home/vova/mydroid_cm/out/target/product/salsa/system/etc/mkshrc'

build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/vova/mydroid_cm/out/target/product/salsa/system/etc/mkshrc'

No private recovery resources for TARGET_DEVICE salsa

make -C kernel/acer/salsa O=/home/vova/mydroid_cm/out/target/product/salsa/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/vova/mydroid_cm/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" cyanogenmod_salsa_defconfig

make[1]: Entering directory `/home/vova/mydroid_cm/kernel/acer/salsa'

Target ram disk: /home/vova/mydroid_cm/out/target/product/salsa/ramdisk.img

  GEN	 /home/vova/mydroid_cm/out/target/product/salsa/obj/KERNEL_OBJ/Makefile

Import includes file: /home/vova/mydroid_cm/out/target/product/salsa/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/import_includes

drivers/video/Kconfig:2276:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:742:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:752:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:760:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:769:warning: defaults for choice values not supported

drivers/usb/gadget/Kconfig:797:warning: defaults for choice values not supported

#

# configuration written to .config

#

make[1]: Leaving directory `/home/vova/mydroid_cm/kernel/acer/salsa'

Install: external/bash/etc/bash_logout -> /home/vova/mydroid_cm/out/target/product/salsa/system/etc/bash/

Install: external/bash/etc/bashrc -> /home/vova/mydroid_cm/out/target/product/salsa/system/etc/bash/

Install: external/vim/runtime/colors/blue.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/darkblue.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/default.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/delek.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/desert.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/elflord.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/evening.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/koehler.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/morning.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/murphy.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/pablo.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/peachpuff.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/ron.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/shine.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/slate.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/torte.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/colors/zellner.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/filetype.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/ftoff.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/indent.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/indoff.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Install: external/vim/runtime/scripts.vim -> /home/vova/mydroid_cm/out/target/product/salsa/system/usr/share/vim/

Target userdata fs image: /home/vova/mydroid_cm/out/target/product/salsa/userdata.img

make -C kernel/acer/salsa O=/home/vova/mydroid_cm/out/target/product/salsa/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/vova/mydroid_cm/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" headers_install

make[1]: Entering directory `/home/vova/mydroid_cm/kernel/acer/salsa'

Running:  mkyaffs2image -f /home/vova/mydroid_cm/out/target/product/salsa/data /home/vova/mydroid_cm/out/target/product/salsa/userdata.img

/home/vova/mydroid_cm/out/target/product/salsa/userdata.img maxsize=214106112 blocksize=4224 total=2112 reserve=2162688

Install system fs image: /home/vova/mydroid_cm/out/target/product/salsa/system.img

  CHK	 include/linux/version.h

make[3]: `scripts/unifdef' is up to date.

make[5]: *** No rule to make target `/home/vova/mydroid_cm/kernel/acer/salsa/include/linux/netfilter/xt_DSCP.h', needed by `/home/vova/mydroid_cm/out/target/product/salsa/obj/KERNEL_OBJ/usr/include/linux/netfilter/.install'.  Stop.

make[4]: *** [netfilter] Error 2

make[3]: *** [linux] Error 2

make[2]: *** [headers_install] Error 2

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory `/home/vova/mydroid_cm/kernel/acer/salsa'

make: *** [/home/vova/mydroid_cm/out/target/product/salsa/obj/KERNEL_OBJ/usr] Error 2

make: *** Waiting for unfinished jobs....

[email protected]:~/mydroid_cm$

0

Share this post


Link to post
Share on other sites

Did you check if the missing file is there or not? Otherwise use the kernel I used when I compiled cm10. It can be accessed from https://github.com/parvata/liquid-chocolate-jb

Note that there are some changes in the android source too that you need to make. But probably try to compile the kernel first.

On subsequent compilations you can simply use the command "make bootimage" to only compile the kernel and nothing else.

Edited by parvata
0

Share this post


Link to post
Share on other sites

The outcome is same :( . Can you post here all steps of building it for CyanogenMod 10 ?

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.