diepquynh / android_device_samsung_grandprimeve3g

Device tree for Samsung Galaxy Grand Prime VE SPRD SM-G531H
18 stars 26 forks source link

How to compile cm13 with prebuilt kernel? #17

Closed parthibx24 closed 6 years ago

parthibx24 commented 6 years ago

I am trying to compile Lineage13 with prebuilt kernel.but getting this type of errors.

../out/target/product/grandprimeve3g/obj/KERNEL_OBJ/usr', needed by `../out/target/product/grandprimeve3g/obj/SHARED_LIBRARIES/.. '

do i need to add any patch?i didn't added any patch in the source..

diepquynh commented 6 years ago

Don't build ROMs with prebuilt kernel, because kernel headers can't be detected during build process when building HALs

parthibx24 commented 6 years ago

and what about patches? do I need to add any patch on the source?

bill-mccoy commented 6 years ago

@Parthib24 There are no patches to make in the Android source as Remilia15 moved all the patches to the device sources

parthibx24 commented 6 years ago

ooh.ok thanks for the info.

parthibx24 commented 6 years ago

now i am getting this error.

hardware/sprd/hwcomposer/sc8830/sc8830/gsp_hal.cpp: In function 'int32_t gsp_hal_trigger(int32_t)': hardware/sprd/hwcomposer/sc8830/sc8830/gsp_hal.cpp:678:25: error: 'GSP_IO_TRIGGER_RUN' was not declared in this scope ret = ioctl(gsp_fd, GSP_IO_TRIGGER_RUN, 1); ^ hardware/sprd/hwcomposer/sc8830/sc8830/gsp_hal.cpp: In function 'int32_t gsp_hal_waitdone(int32_t)': hardware/sprd/hwcomposer/sc8830/sc8830/gsp_hal.cpp:705:25: error: 'GSP_IO_WAIT_FINISH' was not declared in this scope ret = ioctl(gsp_fd, GSP_IO_WAIT_FINISH, 1);

diepquynh commented 6 years ago

This commit https://github.com/remilia15/android_kernel_samsung_sprd-RZ/commit/0f672ca60a924e2ea634f691665db57260d440c7

parthibx24 commented 6 years ago

ok

parthibx24 commented 6 years ago

Thanks it successfully compiled. screenshot-65