UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    kernel isnt compiling with the boot image [huawei y360]

    Scheduled Pinned Locked Moved Porting
    1 Posts 1 Posters 328 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • R Offline
        redoverflow
        last edited by

        ive recently been trying to port ubuntu touch to huawei y360-u61 [mt6582], ive got the device/vendor tree ready and everything, then i put the kernel sources i found into the halium folder and when i try to compile halium-boot.img with make halium-boot -j6, i get shown this error:

        [ 25% 2/8] Building Kernel Config
        FAILED: /bin/bash -c "(make -j4  CFLAGS_MODULE=\"-fno-pic\" -C kernel/huawei/y360/kernel O=/home/nuk/halium/out/target/product/y360/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= y360_defconfig ) && (if [ ! -z \"\" ]; then 			echo \"Overriding kernel config with ''\"; 			echo  >> /home/nuk/halium/out/target/product/y360/obj/KERNEL_OBJ/.config; 			make -j4 -C kernel/huawei/y360/kernel O=/home/nuk/halium/out/target/product/y360/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" oldconfig; fi ) && (make -j4 -C kernel/huawei/y360/kernel O=/home/nuk/halium/out/target/product/y360/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" savedefconfig ) && (if [ ! -z \"\" ]; then 			echo \"Using additional config ''\"; 			kernel/huawei/y360/kernel/scripts/kconfig/merge_config.sh -m -O /home/nuk/halium/out/target/product/y360/obj/KERNEL_OBJ /home/nuk/halium/out/target/product/y360/obj/KERNEL_OBJ/.config kernel/huawei/y360/kernel/arch/arm/configs/; 			make -j4 -C kernel/huawei/y360/kernel O=/home/nuk/halium/out/target/product/y360/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" KCONFIG_ALLCONFIG=/home/nuk/halium/out/target/product/y360/obj/KERNEL_OBJ/.config alldefconfig; fi )"
        make: Entering directory '/home/nuk/halium/kernel/huawei/y360/kernel'
          GEN     /home/nuk/halium/out/target/product/y360/obj/KERNEL_OBJ/Makefile
        ../mediatek/kernel/Kconfig:8:warning: environment variable ARCH_MTK_PLATFORM undefined
        ../mediatek/kernel/Kconfig:15: can't open file "../mediatek/platform//kernel/Kconfig/Platform"
        make[2]: *** [/home/nuk/halium/kernel/huawei/y360/kernel/scripts/kconfig/Makefile:97: y360_defconfig] Error 1
        make[1]: *** [/home/nuk/halium/kernel/huawei/y360/kernel/Makefile:502: y360_defconfig] Error 2
        make: *** [Makefile:130: sub-make] Error 2
        make: Leaving directory '/home/nuk/halium/kernel/huawei/y360/kernel'
        ninja: build stopped: subcommand failed.
        make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
        
        #### make failed to build some targets (9 seconds) ####
        

        i assume the error are from the kernel sources themselfes, and i may need to configure some things myself, i just dont know where to start

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post