[WIP] - JB Camera HAL for 2.6 kernel - Android Software/Hacking General [Developers Only]

Hello everyone!!!
This is a continuation of rapmv78's ICS Camera HAL for 2.6 kernel. Great thanks to nobodyAtall who helped get this working
THINGS YOU WILL NEED:
A working ICS ROM for your device
A lot of time
Now this can be adapted to any phone, but it is designed for the LG Optimus One (P500)
I will upload the panorama fix to my GitHub as soon as I finish porting the code for it
SOURCES:
https://github.com/androidarmv6/android_device_libcamera
Camera app changes coming soon!
Frameworks changes coming soon!
TO FIX VIDEO RECORDING AND PLAYBACK:
To fix video you will need the lib/libstagefright_soft_aacdec.so file from your ICS ROM. Setup a vendor pregenerated lib by adding that .so to your COMMONFOLDERNAME/proprietary/lib/libstagefright_soft_aacdec.so
TO INSTALL:
1. Follow the instructions in the READMEs in the repos
2. In your BoardConfigCommon.mk, delete the following lines IF THEY EXIST:
(Note: these are scattered all over the file, so look for them)
COMMON_GLOBAL_CFLAGS += -DICS_CAMERA_BLOB
TARGET_USE_OVERLAY := false
TARGET_HAVE_BYPASS := false
TARGET_USES_C2D_COMPOSITION := false
COMMON_GLOBAL_CFLAGS += -DREFRESH_RATE=60
3. Now add these lines to your BoardConfigCommon.mk
TARGET_DISABLE_ARM_PIE := true
TARGET_BOOTANIMATION_USE_RGB565 := true
TARGET_BOOTANIMATION_TEXTURE_CACHE := true
Note that the following 2 might not be needed based on your device, but most devices will need them
TARGET_NO_HW_VSYNC := true
COMMON_GLOBAL_CFLAGS += -DQCOM_NO_SECURE_PLAYBACK
4. Edit the files in the DEVICE/libcamera folder to suit your device
Again, thanks to nobodyAtall for getting this to work!!!

are you sure that this line need to be removed?
COMMON_GLOBAL_CFLAGS += -DREFRESH_RATE=60

Yes
Or else you get weird issues with the screen

How to do this "Setup a vendor pregenerated lib by adding that .so to your COMMONFOLDERNAME/proprietary/lib/libstagefright_soft_aacdec.so"??
I have an x10 and camera works but with small grey bar at the bottom in 8 Mpx but 6MPx works fine.. No video recording nd panaroma..

Rashed97 said:
Hello everyone!!!
This is a continuation of rapmv78's ICS Camera HAL for 2.6 kernel. Great thanks to nobodyAtall who helped get this working
THINGS YOU WILL NEED:
A working ICS ROM for your device
A lot of time
Now this can be adapted to any phone, but it is designed for the LG Optimus One (P500)
I will upload the panorama fix to my GitHub as soon as I finish porting the code for it
SOURCES:
https://github.com/Rashed97/android_device_libcamera
Camera app changes coming soon!
Frameworks changes coming soon!
TO FIX VIDEO RECORDING AND PLAYBACK:
To fix video you will need the lib/libstagefright_soft_aacdec.so file from your ICS ROM. Setup a vendor pregenerated lib by adding that .so to your COMMONFOLDERNAME/proprietary/lib/libstagefright_soft_aacdec.so
TO INSTALL:
1. Follow the instructions in the READMEs in the repos
2. In your BoardConfigCommon.mk, delete the following lines IF THEY EXIST:
(Note: these are scattered all over the file, so look for them)
COMMON_GLOBAL_CFLAGS += -DICS_CAMERA_BLOB
TARGET_USE_OVERLAY := false
TARGET_HAVE_BYPASS := false
TARGET_USES_C2D_COMPOSITION := false
COMMON_GLOBAL_CFLAGS += -DREFRESH_RATE=60
3. Now add these lines to your BoardConfigCommon.mk
TARGET_DISABLE_ARM_PIE := true
TARGET_BOOTANIMATION_USE_RGB565 := true
TARGET_BOOTANIMATION_TEXTURE_CACHE := true
Note that the following 2 might not be needed based on your device, but most devices will need them
TARGET_NO_HW_VSYNC := true
COMMON_GLOBAL_CFLAGS += -DQCOM_NO_SECURE_PLAYBACK
4. Edit the files in the DEVICE/libcamera folder to suit your device
Again, thanks to nobodyAtall for getting this to work!!!
Click to expand...
Click to collapse
Read me only shows this message "This directory contains code for the Jelly Bean Camera HAL"
BTW where do we replace the files ? Where does BoardConfigCommon.mk file exist ?

Put the file in the /vendor/MANUFACTURER/DEVICE/proprietary/lib/
Add this line to your vendor-DEVICE-blobs.mk: (Note: Make sure it's the second to last line, not the last line)
vendor/COMPANY/DEVICE/proprietary/lib/libstagefright_soft_aacdec.so:system/lib/libstagefright_soft_aacdec.so \
Also here is an example of a common repo where you need to make all these changes:
https://github.com/lgics/cm_device_lge_msm7x27-common
And the vendor for the video:
https://github.com/lgics/cm_vendor_lge

http://review.cyanogenmod.com/#/c/22147/
This should fix recording issues
I just added it to all of CM since its needed a lot

Rashed97 said:
http://review.cyanogenmod.com/#/c/22147/
This should fix recording issues
I just added it to all of CM since its needed a lot
Click to expand...
Click to collapse
I use Xperia Ray running CM10 by FXP with FXP kernel. Should it work on it ? I can't find any file with extension .mk

take credit to erikcas for vide LQ
For camera on LG p690/e510 it doesnt work..we cant take picts... pano works :s

How to open the readme??
I get just " This directory contains code for the Jelly Bean Camera HAL"

Use proprietary files from GB ?
Sent from my GT-S5830 using xda app-developers app

Any way to use prprietary file from froyo 2.2.2 the only official available for a Huawei S7 tablet with snapdragon and adreno 200 ?...
Or other hack to make camera working.
Thank you.

Related

[Q] How to compile CM7 from source?

Hello bright minds . I'm always using the perfect CM7, and as you know there is no nightlies(a CM7 build) since July. I was thinking about compiling/building CM7 from source for our Nexus S . I was doing it for Samsung Galaxy S, but for NS there is no guide.
Any idea please?
Thank you very much .
aladin6 said:
Hello bright minds . I'm always using the perfect CM7, and as you know there is no nightlies(a CM7 build) since July. I was thinking about compiling/building CM7 from source for our Nexus S . I was doing it for Samsung Galaxy S, but for NS there is no guide.
Any idea please?
Thank you very much .
Click to expand...
Click to collapse
There's very little difference in building though
https://github.com/CyanogenMod/android_device_samsung_crespo
polobunny said:
There's very little difference in building though
https://github.com/CyanogenMod/android_device_samsung_crespo
Click to expand...
Click to collapse
Thank you, the problem is how having a flashable .zip file with the recent changes made in GB :/?
aladin6 said:
Thank you, the problem is how having a flashable .zip file with the recent changes made in GB :/?
Click to expand...
Click to collapse
I'm not sure I understand... That's what building a rom is. Taking sources, compiling them and making them in a flashable format.
polobunny said:
I'm not sure I understand... That's what building a rom is. Taking sources, compiling them and making them in a flashable format.
Click to expand...
Click to collapse
Please look for example of what i used to do with building CM7 ROMs for my SGS1:
http://wiki.cyanogenmod.com/wiki/Samsung_Galaxy_S:_Compile_CyanogenMod_(Linux)
Hopefully you understood me .
There haven't been changes to GB since it came out? What is stopping you from using CM7.2?
063_XOBX said:
There haven't been changes to GB since it came out? What is stopping you from using CM7.2?
Click to expand...
Click to collapse
No, there has been many changes in CM7 since the latest nightly of 22th of July. I'm want to build a CM7 with the latest merged changes. Why CM7? Because simply is the perfect one in terms of stability, features, battery...
Bad screen, better adb screenshot
Hi, fellows.
I want to compile a CM7 for my Huawei u8186 Y100 (msm7227a, Adreno200 GPU). During the compiling process everything goes OK, but after flashing I've got something strange on my screen (see attached pictures). If I make a screenshot with ADB, the screen is not good either, but it's better than in reality... Maybe I put wrong configs in my mk files???
Here is a part of my BoardConfig, concerning my processor and graphics...
Code:
# CPU (msm7227a)
TARGET_BOARD_PLATFORM := msm7k
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_ARCH_VARIANT_FPU := neon
TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
ARCH_ARM_HAVE_TLS_REGISTER := true
TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
# Graphics
BOARD_EGL_CFG := device/huawei/u8185/config/lib/egl/egl.cfg
USE_OPENGL_RENDERER := true
BOARD_USES_QCOM_HARDWARE := true
COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE
BOARD_ADRENO_DECIDE_TEXTURE_TARGET := true
# Qcom stuff
TARGET_USES_OVERLAY := false
TARGET_HAVE_BYPASS := false
TARGET_USES_C2D_COMPOSITION := false
TARGET_QCOM_HDMI_OUT := false
TARGET_FORCE_CPU_UPLOAD := true
TARGET_GRALLOC_USES_ASHMEM := true
WoW!!!! maximik1980 that's awesome! but, did you finish the CM7?
in this forum there are many people interested in a Cyanogenmod.
Please let us know any progress!
huaweiu8185.mi-foro.net
maximik1980 said:
Hi, fellows.
I want to compile a CM7 for my Huawei u8186 Y100 (msm7227a, Adreno200 GPU). During the compiling process everything goes OK, but after flashing I've got something strange on my screen (see attached pictures). If I make a screenshot with ADB, the screen is not good either, but it's better than in reality... Maybe I put wrong configs in my mk files???
Here is a part of my BoardConfig, concerning my processor and graphics...
Code:
# CPU (msm7227a)
TARGET_BOARD_PLATFORM := msm7k
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_ARCH_VARIANT_FPU := neon
TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
ARCH_ARM_HAVE_TLS_REGISTER := true
TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
# Graphics
BOARD_EGL_CFG := device/huawei/u8185/config/lib/egl/egl.cfg
USE_OPENGL_RENDERER := true
BOARD_USES_QCOM_HARDWARE := true
COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE
BOARD_ADRENO_DECIDE_TEXTURE_TARGET := true
# Qcom stuff
TARGET_USES_OVERLAY := false
TARGET_HAVE_BYPASS := false
TARGET_USES_C2D_COMPOSITION := false
TARGET_QCOM_HDMI_OUT := false
TARGET_FORCE_CPU_UPLOAD := true
TARGET_GRALLOC_USES_ASHMEM := true
Click to expand...
Click to collapse
great job brother, well if I'm not mistaken, all this problem is based on screen size, or resolution of it, what happened to me wanting to install the same "CronMod-INT2EXT + _signed" and "ClockWorkRec "to give much more internal memory, was exactly the same as having a 240 x 320, compared with OT918a alcatel 320 x 480 that worked perfectly without errors :/
CM7 on 8185/8186: screen problem....
Hi everyone.
I'm still trying to run a CM7 on my Huawei u8186 (u8185). But I've got the same problems as I'd mentionned above.
Here is my log, maybe someone could see where the problem with my screen is...
I've got a very good picture through ADB, I can't undestand why it isn't good on my device.
Fixed...
https://github.com/maximik1980/device_u8185
https://github.com/maximik1980/vendor_u8185
But one needs much time to fix almost everything!
cant help you

Built 4.2.1 PURE AOSP for PYRAMID....BUT?

Built 4.2.1 pure aosp for pyramid yet three drivers will not build for me.
copybit.msm8660 \
gralloc.msm8660 \
hwcomposer.msm8660 \
Click to expand...
Click to collapse
Board set to: Code:
Code:
BOARD_USES_QCOM_HARDWARE := true
Its in my msm8660.mk
and my libhardware is in place
Display folder renamed to display-legacy
Any help on this issue would surely be appreciated!
USING CM Display as well!

Problem for build

hello i search how i can fix that but google isn't my friend this time , i have this error any idea how fix that ?
build/core/java.mk:33: *** frameworks/support/v4: Invalid LOCAL_SDK_VERSION '17' Choices are: current 4 5 6 7 8 9 10 11 12 13 14 15 16. Arrêt.
thank you !
Hi!
I'm having the same issue trying to build p.a.c. 19.9.0.
It seems the aosp repos upgraded the platform sdk to 4.2.2 and some build scripts of aokp, cm and pa have not yet been fully made aware of this. I hope a sync tomorrow will make everything right.
Thank same problem here bajee has just send me a pm for confirm that so I just build aokp right now 4.2.2 is merged in her source
Envoyé depuis mon Nexus 4 avec Tapatalk
Confirmed
As of today I am having this issue trying to build Pac 19.9.0 for htc one v
4.2.2 isn't merged yet...
Envoyé depuis mon Nexus 4 avec Tapatalk
Any clues in fixing this ? Is this really just a merge problem ? Some say after a reinstall of the SDK the problem was gone ....
Dont want to mess up my system when i just need to wait
I'm still hanging at this problem, and repo sync doesn't fix it.
Any ideas guys?
I think that we just have to wait, till pacman repos are fixed .....
I had the same problem with two other repos, and now they are fine.
Just give the Pacman team some time to look @ it
you can trickly do following:
in frameworks/support/v4/Android.mk at begins Line 92
# A helper sub-library that makes direct use of JellyBean MR1 APIs.
include $(CLEAR_VARS)
LOCAL_MODULE := android-support-v4-jellybean-mr1
LOCAL_SDK_VERSION := 17
LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr1)
include $(BUILD_STATIC_JAVA_LIBRARY)
Click to expand...
Click to collapse
to
# A helper sub-library that makes direct use of JellyBean MR1 APIs.
include $(CLEAR_VARS)
LOCAL_MODULE := android-support-v4-jellybean-mr1
LOCAL_SDK_VERSION := current
LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr1)
include $(BUILD_STATIC_JAVA_LIBRARY)
Click to expand...
Click to collapse
and packages/apps/Deskclock/Android.mk from
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := DeskClock
LOCAL_OVERRIDES_PACKAGES := AlarmClock
LOCAL_SDK_VERSION := 17
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)
# Use the following include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))
Click to expand...
Click to collapse
to
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := DeskClock
LOCAL_OVERRIDES_PACKAGES := AlarmClock
LOCAL_SDK_VERSION := current
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)
# Use the following include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))
Click to expand...
Click to collapse
this is not the best, but its building fine now

[ASK] Custom kernel for Samsung galaxy core 2

[Kernel] Custom kernel for Samsung galaxy core 2
Does anyone know how to compile custom kernel for our device.
edit the tittle of thread to [ASK]. cz ur thread is about questions.
Dhruvit Pokharna said:
Does anyone know how to compile custom kernel for our device.
Click to expand...
Click to collapse
I do.
Then lets compile a kernel together
Dhruvit Pokharna said:
Then lets compile a kernel together
Click to expand...
Click to collapse
Just building one to see what will come up
ok
Is there amajor differences between the kernel of G355H to G355HN?
No
zyn06 said:
Is there amajor differences between the kernel of G355H to G355HN?
Click to expand...
Click to collapse
It should be no difference at all.
got problem. Kernel size is 4.9 mb which is odd. I might missed something in boardconfig.mk so help...
here:
Code:
TARGET_ARCH := arm
TARGET_NO_BOOTLOADER := true
TARGET_BOARD_PLATFORM := sc8830
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := cortex-a7
TARGET_CPU_SMP := true
ARCH_ARM_HAVE_TLS_REGISTER := true
TARGET_BOOTLOADER_BOARD_NAME := kanas3gnfcxx
# Kernel
TARGET_KERNEL_CONFIG := kanas3gnfc_hw04_defconfig
TARGET_KERNEL_SOURCE := kernel/samsung/core2
BOARD_KERNEL_CMDLINE := console=ttyS1,115200n8
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_PAGESIZE := 2048
# fix this up by examining /proc/mtd on a running device
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_FLASH_BLOCK_SIZE := 131072
i dont know much about kernel compiling but you should compare it with stock kernel
Dhruvit Pokharna said:
i dont know much about kernel compiling but you should compare it with stock kernel
Click to expand...
Click to collapse
I did. kernel (no boot.img) size pulled from official firmware is aprox 12 mb.
http://forum.xda-developers.com/showthread.php?t=1698582
Dhruvit Pokharna said:
http://forum.xda-developers.com/showthread.php?t=1698582
Click to expand...
Click to collapse
The. But I haven't used windows for a while
build it but size of boot.img is 5,5 mb? .
Y300-0100 said:
The. But I haven't used windows for a while
build it but size of boot.img is 5,5 mb? .
Click to expand...
Click to collapse
Could it be that samsung used different approach for building kernel?
No but Samsung had put something we dont know
Y300-0100 said:
The. But I haven't used windows for a while
build it but size of boot.img is 5,5 mb? .
Click to expand...
Click to collapse
But cygwin is just a copyright of Linux terminal you can use linux
and @Y300-0100 can you tell which guide you used to compile kernel
@Y300-0100 i have also made kernel but it is 4.8mb
Dhruvit Pokharna said:
and @Y300-0100 can you tell which guide you used to compile kernel
Click to expand...
Click to collapse
There are two ways. Build just kernel and build boot imag .
I used my modified device tree for recovery. And same process as for building recovery except command line is make bootimage.

Who can build CM13 for mate7?

Huawei has opened the sources (6.0 Marshmallow) for mate7 chinese version.Who can build a full-working (include fingerprint) rom for it?Hope to success.
Dont laugh at my poor English...
jsdfly said:
Huawei has opened the sources (6.0 Marshmallow) for mate7 chinese version.Who can build a full-working (include fingerprint) rom for it?Hope to success.
Click to expand...
Click to collapse
If this is true and they have released the necessary source files I would gladly pay someone to develop a CM ROM for the Mate 7.
Hopefully someone will pick this up soon and start working on it. If that happens I may even reconsider getting rid of the phone...
this good news. i would pay it too if someone could do it
Wow this is ingesting new even thigh mate 7 is on its end of its lifespan a possible cm release would prolong the lifespand a lot.
---------- Post added at 03:51 AM ---------- Previous post was at 03:50 AM ----------
Does any one know how man working hours or time it take to finish this for mate 7?
I would be willing to donate too.
Correct me if I am wrong but.. For security reasons It must be hard to get the fingerprint scanner to work on any non official rom or would this be included in the source code?
jsdfly said:
Huawei has opened the sources (6.0 Marshmallow) for mate7 chinese version.Who can build a full-working (include fingerprint) rom for it?Hope to success.
Click to expand...
Click to collapse
Where these sources can be found? Can you post or pm me the link?
I would gladly pay too for a well developed cm port
Tazmaniiac said:
I would gladly pay too for a well developed cm port
Click to expand...
Click to collapse
+1000
If true where is the source link, I call bull ****.
Sent from my VX3 using Tapatalk
Source Code 5.1.1
download-c.huawei.com/download/downloadCenter?downloadId=58644&version=196837&siteCode=cn&view=true
DVRS96 said:
download-c.huawei.com/download/downloadCenter?downloadId=58644&version=196837&siteCode=cn&view=true
Click to expand...
Click to collapse
Can you upload this to the cloud if you already downloaded it? (as Mega for example) It's very slow, about 6 hours here.. Thank you
EDIT: I did it, here's the link
https://mega.nz/#!bJdVUCSa!cRNz4yN3Ag_xuzSYSxS30ZAAAR8b2LZRDpmJY97D1Io
MD5: 6e63387cfdcb32fcdafb6570a134b7d2
blackinfinity said:
Correct me if I am wrong but.. For security reasons It must be hard to get the fingerprint scanner to work on any non official rom or would this be included in the source code?
Click to expand...
Click to collapse
I guess you are right here. I don't hink I have come across a single OEM (correct me if I'm wrong) that has released the necessary files for fingerprint readers. It wouldn't surprise me if it could potentially pose a massive security risk, especially with Android Pay on the rise.
snake65 said:
If true where is the source link, I call bull ****.
Agreed. Like I said, I heard this from someone who replied on a different thread, though I didn't ask him for links / proof. Could just be rumors.
But think about it this way, the Mate 7 is reaching the end if its lifespan anyway, fast approaching 2 years. Most Android OEMs stop supporting a device two years after release (once again, correct me if I'm wrong), so Huawei really won't feel any impact if it were to release source files for a nearly 'retired' device. But that having been said it probably is hearsay.
Sent from my VX3 using Tapatalk
Click to expand...
Click to collapse
gabry3795 said:
Where these sources can be found? Can you post or pm me the link?
Click to expand...
Click to collapse
Sources Download(6.0)
Offical link:http://download-c.huawei.com/download/downloadCenter?downloadId=76323&version=286198&siteCode=cn
Mega:https://mega.nz/#!y1cAQLpJ!HhM1bSkctN7xkaiwgIkOH9RgH-PCutIitNBFHK-uwcE
P.S. File name extension is wrong,is".tar"
I would do it but idk if i have the time. Its really easy to get into though. look up stuff on youtube and such. One of you guys could do it
I have compiled the kernel, added it to the boot.img and flashed it via fastboot, unfortunately I end in a bootloop.
How can I debug the kernel boot? (UART Jig maybe?)
ruffy91 said:
I have compiled the kernel, added it to the boot.img and flashed it via fastboot, unfortunately I end in a bootloop.
How can I debug the kernel boot? (UART Jig maybe?)
Click to expand...
Click to collapse
How did you do it? I get missing .h headers.. (I am building Lollipop kernel)
gabry3795 said:
How did you do it? I get missing .h headers..
Click to expand...
Click to collapse
Code:
diff --git a/drivers/hisi/modem_hi3630/drv/Makefile b/drivers/hisi/modem_hi3630/drv/Makefile
index 430a5b8..710cc36 100755
--- a/drivers/hisi/modem_hi3630/drv/Makefile
+++ b/drivers/hisi/modem_hi3630/drv/Makefile
@@ -75,7 +75,7 @@ ifeq ($(strip $(CFG_CONFIG_IPF)),YES)
obj-y += ipf/
endif
obj-y += lowpower_mntn/
-obj-$(CONFIG_BALONG_OAM_PS) += $(if $(findstring .o,$(shell ls $(CURDIR)/drivers/hisi/modem_hi3630/drv/balong_oam_ps)), balong_oam_ps/, )
+obj-$(CONFIG_BALONG_OAM_PS) += $(if $(findstring .o,$(shell ls $(BALONG_TOPDIR)/../../../drivers/hisi/modem_hi3630/drv/balong_oam_ps)), balong_oam_ps/, )
subdir-ccflags-y := -Werror
source has to be in "kernel" folder and you have to create "out" folder besides it.
I have commented out #include "hisi-partition.h" in every file where it appears. (Not very good solution I know, but made the kernel compilable and I was not sure if it is even needed. HiSilicon code gives thousands of warnings, no chance to read them all!).
I will search older sources for this missing file, or maybe it is generated by a script?
Edit: I have made a git repo with untouched Marshmallow source (B551 as in the link above): https://github.com/ruffy91/android_kernel_huawei_jazz
ruffy91 said:
Code:
diff --git a/drivers/hisi/modem_hi3630/drv/Makefile b/drivers/hisi/modem_hi3630/drv/Makefile
index 430a5b8..710cc36 100755
--- a/drivers/hisi/modem_hi3630/drv/Makefile
+++ b/drivers/hisi/modem_hi3630/drv/Makefile
@@ -75,7 +75,7 @@ ifeq ($(strip $(CFG_CONFIG_IPF)),YES)
obj-y += ipf/
endif
obj-y += lowpower_mntn/
-obj-$(CONFIG_BALONG_OAM_PS) += $(if $(findstring .o,$(shell ls $(CURDIR)/drivers/hisi/modem_hi3630/drv/balong_oam_ps)), balong_oam_ps/, )
+obj-$(CONFIG_BALONG_OAM_PS) += $(if $(findstring .o,$(shell ls $(BALONG_TOPDIR)/../../../drivers/hisi/modem_hi3630/drv/balong_oam_ps)), balong_oam_ps/, )
subdir-ccflags-y := -Werror
source has to be in "kernel" folder and you have to create "out" folder besides it.
I have commented out #include "hisi-partition.h" in every file where it appears. (Not very good solution I know, but made the kernel compilable and I was not sure if it is even needed. HiSilicon code gives thousands of warnings, no chance to read them all!).
I will search older sources for this missing file, or maybe it is generated by a script?
Edit: I have made a git repo with untouched Marshmallow source (B551 as in the link above): https://github.com/ruffy91/android_kernel_huawei_jazz
Click to expand...
Click to collapse
Thank you! Built successfully by commenting out hisi_partition.h include.. I think that is an automatically generated file, I looked for it in github but no repo seems to have it, I also looked in my old mate7 kernel repo (kitkat) and in new lollipop kernel but nothing. I think (and I hope) that it does not cause the bootloop issue :highfive:
so how the development continues? can't wait for testing!

Categories

Resources