[WIP ROM][UNOFFICIAL][owens] LineageOS 15.1 for Moto E4 Plus (Qualcomm) - Moto E4 Plus ROMs, Kernels, Recoveries, & Other De

This project is a work in progress. I have gotten past the beginning stages of porting LineageOS 15.1 to Owens. Slowly ironing out the build issues. Thank you. I suck at git, so I will eventually upload all of my progress in one commit because I haven't been keeping track.
XDA:DevDB Information
LineageOS 15.1 for Moto E4 Plus (owens), ROM for the Moto E4 Plus
Contributors
FlagersXDA
ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.x
Based On: Lineage OS
Sources
Device Tree - https://github.com/flagersinc/android_device_motorola_owens-1
Kernel Source- https://github.com/flagersinc/android_kernel_motorola_msm8937
Vendor Blobs - https://github.com/flagersinc/proprietary_vendor_motorola
Version Information
Status: Snapshot
Created 2018-11-20
Last Updated 2018-11-20
EDIT:Added Device Tree, Kernel Source, and Vendor Blobs

Removed the other one lol. no reason for this post

Right on! Glad to see other ppl picking up the pieces.

I used your condensed sources because they'd be easier to work on in the long run. I will be posting it to Github soon, however during building I am getting this error:
[979/979] including vendor/qcom/opensource/dataservices/Android.mk ...
hardware/qcom/display-caf/msm8996/libcopybit/../common.mk: error: copybit.msm8937 (SHARED_LIBRARIES android-arm) missing libmemalloc (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/display-caf/msm8996/sdm/libs/hwc/../../../common.mk: error: hwcomposer.msm8937 (SHARED_LIBRARIES android-arm) missing libmemalloc (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:850: error: exiting from previous errors.
22:33:42 ckati failed with: exit status 1

bcrichster said:
Right on! Glad to see other ppl picking up the pieces.
Click to expand...
Click to collapse
All I've done so far is done the necessary CM to Lineage rebrands and changes to apply the commit done to the Cedric Oreo device sources (https://github.com/Sohamlad7/androi...mmit/dc1f305971b232cece51705c04ec4d8a3dad2a08) to the Owens device sources.
I didn't and still done expect it to build properly for a while.
I added my current sources to the first post if you want to take a look, it still doesn't build properly so take it with a grain of salt lol.

FlagersXDA said:
All I've done so far is done the necessary CM to Lineage rebrands and changes to apply the commit done to the Cedric Oreo device sources (https://github.com/Sohamlad7/androi...mmit/dc1f305971b232cece51705c04ec4d8a3dad2a08) to the Owens device sources.
I didn't and still done expect it to build properly for a while.
I added my current sources to the first post if you want to take a look, it still doesn't build properly so take it with a grain of salt lol.
Click to expand...
Click to collapse
Right on.. So no zips yet. Did'ja ever get that tree to build Nougat and boot? I couldn't.. I was close on that tree but something was still broken because it'd build, just never booted so I went back to my other owens device tree, the one with 3 main folders in one. Hope that helps. JasonM has some tree updates I'm likely port, helps the govs and stuff
Sent from my Moto E (4) Plus using Tapatalk

For now I still don't get a .zip, however we may be close. I hope that @CodeZero, or Sohamlad7 on GitHub can maybe help us port this. Hopefully we can increase the longevity of this device.
EDIT 11/23/2018: I've worked on the device trees some more and the vendor stuff and have been gaining leads. Most of my commits are ports from the Cedric trees. They seems to be progressing the build past those errors.

So you gave up on Oreo/15.1?
Might it be easier to get that working first (fewer changes from N)?

ST Dog said:
So you gave up on Oreo/15.1?
Might it be easier to get that working first (fewer changes from N)?
Click to expand...
Click to collapse
Honestly, if we get done with Pie first, it may be easier to back port these changes to Oreo.
EDIT: Made another commit that may get rid of a few build errors.
1. Condensed all the vendor trees "Owens, msm8937-common, qcom318-32" into one owens tree.
2. Copied all non existing vendor blobs from Cedric vendor trees to avoid build errors
For now this is what we're dealing with:
$ make -j4
build/make/core/combo/TARGET_linux-arm.mk:43: warning: cortex-a53 is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
LINEAGE_VERSION=16.0-20181123-UNOFFICIAL-owens
TARGET_PRODUCT=lineage_owens
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-18.0.0-x86_64-10.14
HOST_BUILD_TYPE=release
BUILD_ID=PPR2.181005.003
OUT_DIR=/Volumes/build/WORK_DIR/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8996 hardware/qcom/display-caf/msm8996 hardware/qcom/media-caf/msm8996
============================================
ninja: no work to do.
ninja: no work to do.
device/motorola/owens/device.mk was modified, regenerating...
build/make/core/combo/TARGET_linux-arm.mk:43: warning: cortex-a53 is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
device/motorola/owens/device.mk was modified, regenerating...
build/make/core/combo/TARGET_linux-arm.mk:43: warning: cortex-a53 is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
[2/977] including art/Android.mk ...
art/build/Android.common.mk:50: warning: unsupported HOST_ARCH=x86_64
[594/977] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
system/sepolicy/Android.mk:89: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[977/977] including vendor/qcom/opensource/dataservices/Android.mk ...
art/build/Android.gtest.mk:121: warning: overriding commands for target `Uncompressed'
art/build/Android.gtest.mk:101: warning: ignoring old commands for target `Uncompressed'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/lib/hw/fingerprint.msm8937.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/lib/hw/fingerprint.msm8937.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/vendor/lib/libOmxVdec.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/vendor/lib/libOmxVdec.so'
ninja: error: 'vendor/motorola/owens/proprietary/vendor/lib/libOmxVdec.so', needed by '/Volumes/build/WORK_DIR/out/target/product/owens/system/vendor/lib/libOmxVdec.so', missing and no known rule to make it
18:49:32 ninja failed with: exit status 1
#### failed to build some targets (05:39 (mm:ss)) ####

@FlagersXDA Have you decided on your plans when this does build and is flashable?

soaringowl2145 said:
@FlagersXDA Have you decided on your plans when this does build and is flashable?
Click to expand...
Click to collapse
I'd work on improving compatibility and reliability. If it works 100% like how it does on 14.1 then that would be the finishing line.

FlagersXDA said:
Honestly, if we get done with Pie first, it may be easier to back port these changes to Oreo.
EDIT: Made another commit that may get rid of a few build errors.
1. Condensed all the vendor trees "Owens, msm8937-common, qcom318-32" into one owens tree.
2. Copied all non existing vendor blobs from Cedric vendor trees to avoid build errors
For now this is what we're dealing with:
$ make -j4
build/make/core/combo/TARGET_linux-arm.mk:43: warning: cortex-a53 is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
LINEAGE_VERSION=16.0-20181123-UNOFFICIAL-owens
TARGET_PRODUCT=lineage_owens
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-18.0.0-x86_64-10.14
HOST_BUILD_TYPE=release
BUILD_ID=PPR2.181005.003
OUT_DIR=/Volumes/build/WORK_DIR/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8996 hardware/qcom/display-caf/msm8996 hardware/qcom/media-caf/msm8996
============================================
ninja: no work to do.
ninja: no work to do.
device/motorola/owens/device.mk was modified, regenerating...
build/make/core/combo/TARGET_linux-arm.mk:43: warning: cortex-a53 is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
device/motorola/owens/device.mk was modified, regenerating...
build/make/core/combo/TARGET_linux-arm.mk:43: warning: cortex-a53 is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
[2/977] including art/Android.mk ...
art/build/Android.common.mk:50: warning: unsupported HOST_ARCH=x86_64
[594/977] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
system/sepolicy/Android.mk:89: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[977/977] including vendor/qcom/opensource/dataservices/Android.mk ...
art/build/Android.gtest.mk:121: warning: overriding commands for target `Uncompressed'
art/build/Android.gtest.mk:101: warning: ignoring old commands for target `Uncompressed'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/lib/hw/fingerprint.msm8937.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/lib/hw/fingerprint.msm8937.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/vendor/lib/libOmxVdec.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/vendor/lib/libOmxVdec.so'
ninja: error: 'vendor/motorola/owens/proprietary/vendor/lib/libOmxVdec.so', needed by '/Volumes/build/WORK_DIR/out/target/product/owens/system/vendor/lib/libOmxVdec.so', missing and no known rule to make it
18:49:32 ninja failed with: exit status 1
#### failed to build some targets (05:39 (mm:ss)) ####
Click to expand...
Click to collapse
make -j4 ..needs be "make bacon -j4" or "mka bacon -j4". Bit I usually try to build the boot.img / kernel FIRST with " mka bootimage -j4" ..hope that helps

bcrichster said:
make -j4 ..needs be "make bacon -j4" or "mka bacon -j4". Bit I usually try to build the boot.img / kernel FIRST with " mka bootimage -j4" ..hope that helps
Click to expand...
Click to collapse
The kernel won't really work with this because I still have not made the binder flags changes. Need to do that later

Feel free to suggest commits to the repo, I'd love it lol.
EDIT: Fixed the above mentioned error. Was a typo that I looked over, no wonder nobody else had that issue lol.

I changed LineageOS 16 to 15.1 so as to not get too ahead of ourselves. It's a better idea to start with Lineage 15.1 because it is easier to port the changes forward.

Hi, I was just wondering if in this version you could somehow implement the one-hand navigation with the fingerprint sensor like in the stock rom (moto actions). Thanks.

Flagers,
You look at hector99's code for DotOS 2.5 on nicklaus?
It builds and boots. Might be helpful for your owens build.

ST Dog said:
Flagers,
You look at hector99's code for DotOS 2.5 on nicklaus?
It builds and boots. Might be helpful for your owens build.
Click to expand...
Click to collapse
maybe i could help, but the code for nicklaus and owens is very different, basically, the trees are different also i have the mediatek variant, so i cant debug logs or test changes as soon i made.

FlagersXDA said:
This project is a work in progress.
Click to expand...
Click to collapse
The first post was on the 20th Nov and I dont find any Download Link here.
Placeholders are not allowed in this FORUM
I am closing this thread temporarily.
Message me or the MODs once you are ready to post the DL.
Thanks

Related

[Q] how to compile cyanogenmod for unsupported device

my acer liquid mini e310 is not supported by the team of xda and would like to build a CyanogenMod, how can I do?
pitrazzu said:
my acer liquid mini e310 is not supported by the team of xda and would like to build a CyanogenMod, how can I do?
Click to expand...
Click to collapse
To port Cyanogenmod to your device I would recommend taking a look at the Cyanogenmod teams official guide to porting Cyanogenmod to a new device http://wiki.cyanogenmod.org/w/Doc:_porting_intro.
Sent from my SCH-I535 using xda premium
R: [Q] how to compile cyanogenmod for unsupported device
Thank you so much, but what is the most simple kind of guide? I wont to complete the cyanogenmod 7 for my device because haven' t wifi, bt, gsm and other (sorry for my bad english)
Inviato dal mio E310 con Tapatalk 2
pitrazzu said:
Thank you so much, but what is the most simple kind of guide? I wont to complete the cyanogenmod 7 for my device because haven' t wifi, bt, gsm and other (sorry for my bad english)
Inviato dal mio E310 con Tapatalk 2
Click to expand...
Click to collapse
The guide I previously linked to is the most basic guide for porting Cyanogenmod. As far as getting WiFi, Bluetooth, GSM and other's working that's a matter of modifying drivers in the kernel which requires knowledge of the C programming language. You could also try using your devices existing kernel with Cyanogenmod to get WiFi, Bluetooth, GSM and other things working. I would recommend taking a look at how to use a pre-built kernel in Cyanogenmod here.
I have an explanation
pitrazzu said:
my acer liquid mini e310 is not supported by the team of xda and would like to build a CyanogenMod, how can I do?
Click to expand...
Click to collapse
First you must find a phone with the same hardware and Screen resolution. Size and ppi do not matter. Just the same processor. http://www.gsmarena.com/results.php3?sFreeSearch=yes&sFreeText=qualcomm msm7227-1 These phones have the same chipset but youll have to check which one has the same resolution as yours. Then check if there is any rom for that other device. If there is then download it and follow these instructions: http://forum.xda-developers.com/showthread.php?t=1272270 :laugh:
Hi can some one can help me every time when i compiling i getting this error
[email protected]:~$ cd ~/aokp
[email protected]:~/aokp$ . build/envsetup.sh
including device/lge/p700/vendorsetup.sh
including device/lge/e610/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including vendor/aokp/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/aokp$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. aokp_p700-userdebug
6. aokp_e610-userdebug
7. aokp_e610-eng
8. mini_armv7a_neon-userdebug
9. aokp_hammerhead-userdebug
10. aokp_mako-userdebug
11. aokp_flo-userdebug
12. aokp_maguro-userdebug
13. aokp_toro-userdebug
14. aokp_manta-userdebug
15. aokp_d2att-userdebug
16. aokp_d2tmo-userdebug
17. aokp_d2usc-userdebug
18. aokp_d2vzw-userdebug
19. aokp_i605-userdebug
20. aokp_jfltecri-userdebug
21. aokp_jfltecsp-userdebug
22. aokp_jfltespr-userdebug
23. aokp_jfltetmo-userdebug
24. aokp_jflteusc-userdebug
25. aokp_jfltevzw-userdebug
26. aokp_l900-userdebug
27. aokp_m7att-userdebug
28. aokp_m7spr-userdebug
29. aokp_m7tmo-userdebug
30. aokp_m7ul-userdebug
31. aokp_m7vzw-userdebug
32. aokp_mint-userdebug
33. aokp_odin-userdebug
34. aokp_pollux-userdebug
35. aokp_t0lte-userdebug
36. aokp_t0lteatt-userdebug
37. aokp_t0ltetmo-userdebug
38. aokp_tsubasa-userdebug
39. aokp_yuga-userdebug
Which would you like? [aosp_arm-eng] 6
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=aokp_e610
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-34-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/aidas/aokp/out
============================================
[email protected]:~/aokp$ make -j1 otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=aokp_e610
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-34-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/aidas/aokp/out
============================================
/home/aidas/aokp/out/target/product/e610/obj/APPS/SignatureTest_intermediates
find: `fmradio/java': No such file or directory
find: `fmradio/java': No such file or directory
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/aidas/aokp/out/target/product/e610/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/aidas/aokp/out/target/product/e610/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/aidas/aokp/out/target/product/e610/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/aidas/aokp/out/target/product/e610/obj/include/qcom/display/copybit_priv.h'
build/core/Makefile:43: warning: overriding commands for target `/home/aidas/aokp/out/target/product/e610/system/etc/audio_policy.conf'
build/core/base_rules.mk:532: warning: ignoring old commands for target `/home/aidas/aokp/out/target/product/e610/system/etc/audio_policy.conf'
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_profiles.xml:system/etc/media_profiles.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml ignored.
PRODUCT_COPY_FILES hardware/libhardware_legacy/audio/audio_policy.conf:system/etc/audio_policy.conf ignored.
build/core/Makefile:43: warning: overriding commands for target `/home/aidas/aokp/out/target/product/e610/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:532: warning: ignoring old commands for target `/home/aidas/aokp/out/target/product/e610/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:43: warning: overriding commands for target `/home/aidas/aokp/out/target/product/e610/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:532: warning: ignoring old commands for target `/home/aidas/aokp/out/target/product/e610/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:43: warning: overriding commands for target `/home/aidas/aokp/out/target/product/e610/system/lib/hw/lights.msm7x27a.so'
build/core/base_rules.mk:532: warning: ignoring old commands for target `/home/aidas/aokp/out/target/product/e610/system/lib/hw/lights.msm7x27a.so'
build/core/Makefile:43: warning: overriding commands for target `/home/aidas/aokp/out/target/product/e610/system/lib/hw/camera.msm7x27a.so'
build/core/base_rules.mk:532: warning: ignoring old commands for target `/home/aidas/aokp/out/target/product/e610/system/lib/hw/camera.msm7x27a.so'
build/core/Makefile:43: warning: overriding commands for target `/home/aidas/aokp/out/target/product/e610/system/bin/rild'
build/core/base_rules.mk:532: warning: ignoring old commands for target `/home/aidas/aokp/out/target/product/e610/system/bin/rild'
build/core/Makefile:43: warning: overriding commands for target `/home/aidas/aokp/out/target/product/e610/system/lib/libril.so'
build/core/base_rules.mk:532: warning: ignoring old commands for target `/home/aidas/aokp/out/target/product/e610/system/lib/libril.so'
build/core/Makefile:43: warning: overriding commands for target `/home/aidas/aokp/out/target/product/e610/system/lib/hw/nfc.default.so'
build/core/base_rules.mk:532: warning: ignoring old commands for target `/home/aidas/aokp/out/target/product/e610/system/lib/hw/nfc.default.so'
PRODUCT_COPY_FILES vendor/aokp/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES vendor/aokp/prebuilt/bootanimation/bootanimation_480_800.zip:system/media/bootanimation.zip ignored.
No private recovery resources for TARGET_DEVICE e610
make -C kernel/lge/msm7x27a-common O=/home/aidas/aokp/out/target/product/e610/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/aidas/aokp/prebuilts/misc/linux-x86/ccache/ccache /home/aidas/aokp/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_m4_defconfig
make[1]: Entering directory `/home/aidas/aokp/kernel/lge/msm7x27a-common'
GEN /home/aidas/aokp/out/target/product/e610/obj/KERNEL_OBJ/Makefile
HOSTCC scripts/kconfig/zconf.tab.o
scripts/kconfig/zconf.tab.c:200:24: fatal error: zconf.hash.c: No such file or directory
compilation terminated.
make[3]: *** [scripts/kconfig/zconf.tab.o] Error 1
make[2]: *** [cyanogenmod_m4_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/aidas/aokp/kernel/lge/msm7x27a-common'
make: *** [/home/aidas/aokp/out/target/product/e610/obj/KERNEL_OBJ/.config] Error 2
[email protected]:~/aokp$
help
plz port for lava xtron plus tab
1.5 ghz dual core rockchip 3066 1gb ram 400 mali gpu 7' tablet
This is a good guide. Good links to.
http://forum.xda-developers.com/showthread.php?p=32750231#post32750231
Anybody help please
Hi, can I install (s3 neo gt i9300) cm 13 ROM on my device (s3 neo gt i9301)? Anybody answer please because camera on cm 12.1 which I've installed isn't working:crying: If my father knew about this, he'll kill me
super ziad said:
Hi, can I install (s3 neo gt i9300) cm 13 ROM on my device (s3 neo gt i9301)? Anybody answer please because camera on cm 12.1 which I've installed isn't working:crying: If my father knew about this, he'll kill me
Click to expand...
Click to collapse
i9301 has two varients with different camera sensors, that is why the camera is not working. to fix it you need to flash this fix
source http://forum.xda-developers.com/showpost.php?p=60506610&postcount=2
if you want to go back to stock this post may help
Is There Any App To Create Cyanogenmod Roms
Abdullaharis said:
Is There Any App To Create Cyanogenmod Roms
Click to expand...
Click to collapse
No there is not but I would recommend taking a look at this very helpful guide https://wiki.cyanogenmod.org/w/Development#Learning_To_Build_CM.
shimp208 said:
No there is not but I would recommend taking a look at this very helpful guide https://wiki.cyanogenmod.org/w/Development#Learning_To_Build_CM.
Click to expand...
Click to collapse
Thanks I Will Try It
Abdullaharis said:
Thanks I Will Try It
Click to expand...
Click to collapse
hey dude, I want build a cyanogenmod 13 for unsupported device, the link is down... can you help me please?
Thank you very much
Milor123 said:
hey dude, I want build a cyanogenmod 13 for unsupported device, the link is down... can you help me please?
Thank you very much
Click to expand...
Click to collapse
It is time to build lineage OS?
Help
Hello every one.
My tablet(lenovo tab s8-50lc)is rooted.
I tried to install a cyanogenmod for it,but it's model doesn't support.
So i'm confused.please tell me what I should do.
If there is a supported device that is similar my device features,introduce it.
Thanks a lot
will this work for j200h

[Q] Help me build Paranoid Android 3.50

Hi guys, it's been a while me building a ROM, i managed to build CM10.1 for Asus Eee Pad Transformer (TF101). It booted up succesfully. The ROM was nice. So now, im trying to build Paranoid Android 3.50 which release few days ago, it is still Android 4.2.2. I cloned the 4.2 device tree for the tablet. I think i don't need to clone the kernel source because i built the CM10.1 only with the device tree.
I have Ubuntu 13.04 installed in my PC, i had no problems when building the CM10.1 ROM.
Anyway, when i 'cd' to the Paranoid Android working folder in my computer, i typed:
Code:
. rom-build.sh
I didn't 'cd' it to my device tree, because i didn't found the rom-build.sh file. So it shows this error:
Code:
Building ParanoidAndroid v3.50
Traceback (most recent call last):
File "./vendor/pa/tools/getdevicetree.py", line 9, in <module>
device = sys.argv[1];
IndexError: list index out of range
Setting up environment
including device/asus/tf101/vendorsetup.sh
including vendor/pa/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/pa/bash_completion/repo.bash
Lunching device
build/core/product_config.mk:223: *** Cannot locate config makefile for product "pa_". Stop.
Device not found. Attempting to retrieve device repository from ParanoidAndroid Github (http://github.com/ParanoidAndroid).
Repository for not found in the ParanoidAndroid Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:223: *** Cannot locate config makefile for product "pa_". Stop.
** Don't have a product spec for: 'pa_'
** Do you have the right repo manifest?
Starting compilation
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=pa_tf101
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_GCC_VERSION=4.6
TARGET_USE_O3=
TARGET_LINARO_STRING_ROUTINES=
TARGET_USE_GRAPHITE=
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-19-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=/home/munir/SourcePA/out
============================================
find: `src': No such file or directory
build/core/Makefile:40: warning: overriding commands for target `/home/munir/SourcePA/out/target/product/tf101/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/munir/SourcePA/out/target/product/tf101/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:40: warning: overriding commands for target `/home/munir/SourcePA/out/target/product/tf101/system/lib/libmllite.so'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/munir/SourcePA/out/target/product/tf101/system/lib/libmllite.so'
build/core/Makefile:40: warning: overriding commands for target `/home/munir/SourcePA/out/target/product/tf101/system/lib/libmlplatform.so'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/munir/SourcePA/out/target/product/tf101/system/lib/libmlplatform.so'
build/core/Makefile:40: warning: overriding commands for target `/home/munir/SourcePA/out/target/product/tf101/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/munir/SourcePA/out/target/product/tf101/system/etc/permissions/android.software.live_wallpaper.xml'
No private recovery resources for TARGET_DEVICE tf101
----- Making recovery image ------
target Dex: framework
target Strip: libcorkscrew (/home/munir/SourcePA/out/target/product/tf101/obj/lib/libcorkscrew.so)
target Strip: libjpeg (/home/munir/SourcePA/out/target/product/tf101/obj/lib/libjpeg.so)
make: *** [/home/munir/SourcePA/out/target/product/tf101/obj/lib/libcorkscrew.so] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/munir/SourcePA/out/target/product/tf101/obj/lib/libjpeg.so] Error 1
UNEXPECTED TOP-LEVEL EXCEPTION:
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:143)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:206)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
at com.android.dx.command.dexer.Main.processOne(Main.java:422)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:333)
at com.android.dx.command.dexer.Main.run(Main.java:209)
at com.android.dx.command.dexer.Main.main(Main.java:174)
at com.android.dx.command.Main.main(Main.java:91)
1 error; aborting
make: *** [/home/munir/SourcePA/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Error 1
/home/munir/SourcePA/out/target/product/tf101/recovery.img maxsize=10205184 blocksize=4224 total=5398528 reserve=105600
Made recovery image: /home/munir/SourcePA/out/target/product/tf101/recovery.img
Total time elapsed: 0 minutes (38.828995636 seconds)
Device tree: https://github.com/josteink/device_asus_tf101
I did "repo sync" but no luck. Any suggestions?
TheMrcool212 said:
Hi guys, it's been a while me building a ROM, i managed to build CM10.1 for Asus Eee Pad Transformer (TF101). It booted up succesfully. The ROM was nice. So now, im trying to build Paranoid Android 3.50 which release few days ago, it is still Android 4.2.2. I cloned the 4.2 device tree for the tablet. I think i don't need to clone the kernel source because i built the CM10.1 only with the device tree.
I have Ubuntu 13.04 installed in my PC, i had no problems when building the CM10.1 ROM.
Anyway, when i 'cd' to the Paranoid Android working folder in my computer, i typed:
Code:
. rom-build.sh
I didn't 'cd' it to my device tree, because i didn't found the rom-build.sh file. So it shows this error:
Code:
Building ParanoidAndroid v3.50
Traceback (most recent call last):
File "./vendor/pa/tools/getdevicetree.py", line 9, in <module>
device = sys.argv[1];
IndexError: list index out of range
Setting up environment
including device/asus/tf101/vendorsetup.sh
including vendor/pa/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/pa/bash_completion/repo.bash
Lunching device
build/core/product_config.mk:223: *** Cannot locate config makefile for product "pa_". Stop.
Device not found. Attempting to retrieve device repository from ParanoidAndroid Github (http://github.com/ParanoidAndroid).
Repository for not found in the ParanoidAndroid Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:223: *** Cannot locate config makefile for product "pa_". Stop.
** Don't have a product spec for: 'pa_'
** Do you have the right repo manifest?
Starting compilation
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=pa_tf101
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_GCC_VERSION=4.6
TARGET_USE_O3=
TARGET_LINARO_STRING_ROUTINES=
TARGET_USE_GRAPHITE=
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-19-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=/home/munir/SourcePA/out
============================================
find: `src': No such file or directory
build/core/Makefile:40: warning: overriding commands for target `/home/munir/SourcePA/out/target/product/tf101/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/munir/SourcePA/out/target/product/tf101/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:40: warning: overriding commands for target `/home/munir/SourcePA/out/target/product/tf101/system/lib/libmllite.so'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/munir/SourcePA/out/target/product/tf101/system/lib/libmllite.so'
build/core/Makefile:40: warning: overriding commands for target `/home/munir/SourcePA/out/target/product/tf101/system/lib/libmlplatform.so'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/munir/SourcePA/out/target/product/tf101/system/lib/libmlplatform.so'
build/core/Makefile:40: warning: overriding commands for target `/home/munir/SourcePA/out/target/product/tf101/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/munir/SourcePA/out/target/product/tf101/system/etc/permissions/android.software.live_wallpaper.xml'
No private recovery resources for TARGET_DEVICE tf101
----- Making recovery image ------
target Dex: framework
target Strip: libcorkscrew (/home/munir/SourcePA/out/target/product/tf101/obj/lib/libcorkscrew.so)
target Strip: libjpeg (/home/munir/SourcePA/out/target/product/tf101/obj/lib/libjpeg.so)
make: *** [/home/munir/SourcePA/out/target/product/tf101/obj/lib/libcorkscrew.so] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/munir/SourcePA/out/target/product/tf101/obj/lib/libjpeg.so] Error 1
UNEXPECTED TOP-LEVEL EXCEPTION:
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:143)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:206)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
at com.android.dx.command.dexer.Main.processOne(Main.java:422)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:333)
at com.android.dx.command.dexer.Main.run(Main.java:209)
at com.android.dx.command.dexer.Main.main(Main.java:174)
at com.android.dx.command.Main.main(Main.java:91)
1 error; aborting
make: *** [/home/munir/SourcePA/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Error 1
/home/munir/SourcePA/out/target/product/tf101/recovery.img maxsize=10205184 blocksize=4224 total=5398528 reserve=105600
Made recovery image: /home/munir/SourcePA/out/target/product/tf101/recovery.img
Total time elapsed: 0 minutes (38.828995636 seconds)
Device tree: https://github.com/josteink/device_asus_tf101
I did "repo sync" but no luck. Any suggestions?
Click to expand...
Click to collapse
You need to run
Code:
. rom-build.sh <name of device>

New ROM building error.

I am trying to build my own custom ROM based on PAC-man. However, I am running into a few build issues.
Here is the error:
Code:
make: *** No rule to make target `/home/brandon/WORKING_FAMIGO/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar', needed by `/home/brandon/WORKING_FAMIGO/out/target/common/obj/APPS/Calculator_intermediates/classes-full-debug.jar'. Stop.
And attached below is the full terminal output.
Also here is the code itself: https://github.com/FamigoROM/android
dotmaniac said:
I am trying to build my own custom ROM based on PAC-man. However, I am running into a few build issues.
Here is the error:
Code:
make: *** No rule to make target `/home/brandon/WORKING_FAMIGO/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar', needed by `/home/brandon/WORKING_FAMIGO/out/target/common/obj/APPS/Calculator_intermediates/classes-full-debug.jar'. Stop.
And attached below is the full terminal output.
Also here is the code itself: https://github.com/FamigoROM/android
Click to expand...
Click to collapse
Hey Dotmaniac,
Did you ever resolve this? I'm having this same error building AOKP on my HTC Desire HD (ace)
espmartin said:
Hey Dotmaniac,
Did you ever resolve this? I'm having this same error building AOKP on my HTC Desire HD (ace)
Click to expand...
Click to collapse
Nope...
Sent from my Nexus 7 using Tapatalk
Google search suggests java version issues, but I've verified I'm running it as recommended... Frustrating!
Android 4.2.2/AOKP built from source
Can you post the full log?
SMillerNL said:
Can you post the full log?
Click to expand...
Click to collapse
I'll post on pastbin asap.
FYI: I get this same exact error when I build just the calc module as such:
mmm packages/apps/Calculator
Android 4.2.2/AOKP built from source
---------- Post added at 09:13 PM ---------- Previous post was at 08:55 PM ----------
Here's the full build log:
http://pastebin.com/ScKDbeej
And here's the full error when just building Calc module (pastbin too):
Code:
[LIST=1]
[*][email protected]:~/SchutzhundAOKP$ . build/envsetup.sh && lunch aokp_ace-userdebug && mmm packages/apps/Calculator
including device/htc/ace/vendorsetup.sh
including vendor/aokp/vendorsetup.sh
including sdk/bash_completion/adb.bash
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=aokp_ace
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a8
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-35-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/martin/SchutzhundAOKP/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=aokp_ace
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a8
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-35-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/martin/SchutzhundAOKP/out
============================================
make: Entering directory `/home/martin/SchutzhundAOKP'
build/core/Makefile:43: warning: overriding commands for target `/home/martin/SchutzhundAOKP/out/target/product/ace/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:43: warning: ignoring old commands for target `/home/martin/SchutzhundAOKP/out/target/product/ace/system/etc/permissions/android.software.live_wallpaper.xml'
PRODUCT_COPY_FILES device/htc/ace/keylayout/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
PRODUCT_COPY_FILES device/htc/ace/keylayout/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl ignored.
build/core/Makefile:43: warning: overriding commands for target `/home/martin/SchutzhundAOKP/out/target/product/ace/system/etc/AudioBTID.csv'
build/core/Makefile:43: warning: ignoring old commands for target `/home/martin/SchutzhundAOKP/out/target/product/ace/system/etc/AudioBTID.csv'
PRODUCT_COPY_FILES vendor/aokp/prebuilt/bootanimation/bootanimation_480_800.zip:system/media/bootanimation.zip ignored.
No private recovery resources for TARGET_DEVICE ace
make: *** No rule to make target `/home/martin/SchutzhundAOKP/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar', needed by `/home/martin/SchutzhundAOKP/out/target/common/obj/APPS/Calculator_intermediates/classes-full-debug.jar'. Stop.
make: Leaving directory `/home/martin/SchutzhundAOKP'
[email protected]:~/SchutzhundAOKP$
[/LIST]
espmartin said:
Google search suggests java version issues, but I've verified I'm running it as recommended... Frustrating!
Android 4.2.2/AOKP built from source
Click to expand...
Click to collapse
I'm also having exactly this error. And it is really frustrating
[email protected] said:
I'm also having exactly this error. And it is really frustrating
Click to expand...
Click to collapse
My fix was to use different repos.
Using my own Android Open Kang Project - (4.4.2 Kitkat) build
espmartin said:
My fix was to use different repos.
Using my own Android Open Kang Project - (4.4.2 Kitkat) build
Click to expand...
Click to collapse
What do you mean by different repos? Device? Kernel? or Just Packages app?
I've kept the same device/kernels
Using my own Android Open Kang Project - (4.4.2 Kitkat) build
espmartin said:
I've kept the same device/kernels
Using my own Android Open Kang Project - (4.4.2 Kitkat) build
Click to expand...
Click to collapse
You mean you completely sync an another Rom?
Hey, I just ran into the same issue with no clue yet so resolve this problem. I just wondered if someone came up with a solution in the meantime and could post some information about the issue
UPDATE: I figured out at least what the problem in my case was. Apparently, removing the project "platform/development" from the manifest was not a good idea. Well, I learned my lesson.
This is the line of the local_manifest.xml which should arouse suspection:
Code:
<remove-project path="development" name="platform/development" />

Makefile error: *** multiple target patterns. Stop.

I am currently trying to build an Ubuntu Touch-compatible kernel for use with the Xperia Z5 Compact. I have been following the How to build and flash a Linux kernel for AOSP supported devices guide and am at the point at which I have created an Ubuntu-compatible .config file but am having issues finally building the kernel (Step 7) using the .config file as I receive the following error:
make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j 14
Makefile:791: *** multiple target patterns. Stop.
I know that this error is related to the call of link-vmlinux.sh which is referenced as follows on line 791 of the Makefile:
vmlinux: scripts/link-vmlinux.sh $(vmlinux-deps) FORCE
Any suggestions for debugging this problem would be greatly appreciated.
blackstar1744 said:
I am currently trying to build an Ubuntu Touch-compatible kernel for use with the Xperia Z5 Compact. I have been following the How to build and flash a Linux kernel for AOSP supported devices guide and am at the point at which I have created an Ubuntu-compatible .config file but am having issues finally building the kernel (Step 7) using the .config file as I receive the following error:
make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j 14
Makefile:791: *** multiple target patterns. Stop.
I know that this error is related to the call of link-vmlinux.sh which is referenced as follows on line 791 of the Makefile:
vmlinux: scripts/link-vmlinux.sh $(vmlinux-deps) FORCE
Any suggestions for debugging this problem would be greatly appreciated.
Click to expand...
Click to collapse
Yah, I'm facing the same problem. Only with 64-bit targets (G4 and G4 Stylus), this doesn't happen with any 32bit targets. It doesn't matter if I swap out the toolchain, it doesn't matter which tree I'm working -- Omni, Bliss, CM13 -- all can't get past that error.
So it doesn't seem like it's in the build tree, but maybe my system. I'm using Arch, so I'm used to Android building snafus, but still I cannot figure this out. I've gone through every chain leading to the error and I can't seem to pin it down. It's really harshing my build.
Lil' help, y'all?
UPDATE: Nevermind, just had to set USE_HOST_LEX. Goddammit, I though I already tried that.
Any explanation for why you need to set USE_HOST_LEX? Is this an OS- or compiler-related modification? I'm compiling with UBERTC 4.9 on Ubuntu 14.04 LTS. I currently don't have USE_HOST_LEX in my .config file.
culot said:
Yah, I'm facing the same problem. Only with 64-bit targets (G4 and G4 Stylus), this doesn't happen with any 32bit targets. It doesn't matter if I swap out the toolchain, it doesn't matter which tree I'm working -- Omni, Bliss, CM13 -- all can't get past that error.
So it doesn't seem like it's in the build tree, but maybe my system. I'm using Arch, so I'm used to Android building snafus, but still I cannot figure this out. I've gone through every chain leading to the error and I can't seem to pin it down. It's really harshing my build.
Lil' help, y'all?
UPDATE: Nevermind, just had to set USE_HOST_LEX. Goddammit, I though I already tried that.
Click to expand...
Click to collapse
blackstar1744 said:
Any explanation for why you need to set USE_HOST_LEX? Is this an OS- or compiler-related modification? I'm compiling with UBERTC 4.9 on Ubuntu 14.04 LTS. I currently don't have USE_HOST_LEX in my .config file.
Click to expand...
Click to collapse
USE_HOST_LEX set the build to use host's Flex instead of the one in-tree. See build/core/config.mk:
Code:
ifeq ($(USE_HOST_LEX),yes)
LEX := flex
else
LEX := prebuilts/misc/$(BUILD_OS)-$(HOST_PREBUILT_ARCH)/flex/flex-2.5.39
endif
I don't know about elsewhere, but this has been a problem on Arch for a while. Lately this has not longer been a problem for me, so I assumed it was not an issue. Apparently still a problem for 64bit build, but not 32bit. Hmm.
Another workaround was to preface your make with LC_ALL=C, but I tried that without setting 'USE_HOST_LEX=yes' and it didn't help.
EDIT: I don't think it's compiler-related, as I did try different toolchains and different toolchain versions -- none made a difference. I tried 3 different Make versions, no help. USE_HOST_LEX? That fixed it. Compiling as we speak.
I added export USE_HOST_LEX=yes to my .bashrc and went back to the GCC compiler...new problem to debug. Any suggestions on debugging control groups would be greatly appreciated
Code:
make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j 1
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
<stdin>:1226:2: warning: #warning syscall sched_setattr not implemented [-Wcpp]
<stdin>:1229:2: warning: #warning syscall sched_getattr not implemented [-Wcpp]
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
SKIPPED include/generated/compile.h
CC kernel/cgroup.o
kernel/cgroup.c: In function 'subsys_cgroup_allow_attach':
kernel/cgroup.c:2138:59: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
if (current != task && cred->euid != tcred->uid &&
^
kernel/cgroup.c:2139:18: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
cred->euid != tcred->suid)
^
make[1]: *** [kernel/cgroup.o] Error 1
make: *** [kernel] Error 2
Random side rant: The way Google shows search results is going wayyy downhill.

[HELP] Compiling OmniROM for Nubia Z18 (NX606J)

Hi folks,
I've been trying to port OmniROM to ZTE's new Nubia Z18 (codename NX606J) but I'm stuck when trying to compile the ROM and need some help and leading advice as I'm new to ROM development as a whole.
I already asked in the Omni specific thread but didn't get an answer up until now. So since I believe this isn't just Omni related, please forgive me to ask again in the general section. :angel:
Device specific source can be found on my GitHub.
Kernel source is taken from nubia directly but forked by me for modifications in the future
Now onto the error I'm experiencing:
I run make -j4 after lunch-ing my device and it fails with:
Code:
[945/945] including vendor/omni/Android.mk ...
packages/apps/Bluetooth/Android.mk: error: Bluetooth (APPS android-arm) missing libbluetooth_jni (SHARED_LIBRARIES android-arm)
Available variants:
libbluetooth_jni (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:833: error: exiting from previous errors.
03:34:57 ckati failed with: exit status 1
If I set ALLOW_MISSING_DEPENDENCIES=true (which I guess is bad practice) I get:
Code:
[ 99% 1390/1391] glob vendor/omni/overlay/common/**/*
ninja: error: '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj_arm/SHARED_LIBRARIES/libbluetooth_jni_intermediates/link_type', needed by '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj/APPS/Bluetooth_intermediates/2ND_jni_link_type', missing and no known rule to make it
03:39:28 ninja failed with: exit status 1
The lunch overview in case that's of any use, looks like this:
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=omni_nx606j
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo300
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.19.1-98.current-x86_64-Solus-3.9999
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ1A.181105.017.A1
OUT_DIR=/run/media/curtisy/Solus-Data/omni_nx606j/out
============================================
I'm hoping anyone with more experience has some idea as to what's the issue here. Maybe a look at my boardconfig will help, but I'm not sure. (My uneducated guess is that it's trying to compile for arm and arm64 but fails to link libbluetooth_jni to arm?)
Thanks in advance for any help, I'm really grateful for any straw I can hold onto currently.
better ask omni or lineage team my friend~gd luck!
If anyone comes across this in the future. Seems to be some weird setup with how some things use Android.bp and others Android.mk. That and the interaction the two have between each other. A quick fix is to just make it build both by editing the Android.bp file. Worked for me, though this issue doesn't seem to be that prevalent, might be caused by some other configuration issue? This works as quick fix, not sure if having two different binaries has some other negative effects though.
Code:
android/lineage/packages/apps/Bluetooth/jni/Android.bp:
cc_library_shared {
name: "libbluetooth_jni",
compile_multilib: "both", <---------- from "first" -> "both"

Categories

Resources