yashsingh1/xdaforums huggingface dataset:
[Android] spookcity138:
The first 2 lines after kernel config,sorry. I may have typed it wrong.

TARGET_KERNEL_CONFIG

TARGET_KERNEL_SOURCE

remove the # from those
[Android] XTutorials:
I'm back, now with another error:

ARIES/libhost_intermediates/libhost.a)

mkdir -p /root/android/system/out/target/product/hi6210sft/obj/KERNEL_OBJ

make -C kernel O=..//root/android/system/out/target/product/hi6210sft/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- hw_cm_hi6210sft_defconfig

make[1]: Entering directory '/root/android/system'

make[1]: *** kernel: No such file or directory. Stop.

make[1]: Leaving directory '/root/android/system'

device/HUAWEI/hi6210sft/Android.mk:112: recipe for target '/root/android/system/out/target/product/hi6210sft/obj/KERNEL_OBJ/.config' failed

make: *** [/root/android/system/out/target/product/hi6210sft/obj/KERNEL_OBJ/.config] Error 2

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

/bin/bash: line 0: cd: device/hisi/customize/build_script: No such file or directory

/bin/bash: ./auto_dts_gen.sh: No such file or directory

device/HUAWEI/hi6210sft/Android.mk:68: recipe for target 'DTS_PARSE_CONFIG' failed

make: *** [DTS_PARSE_CONFIG] Error 127

make: Leaving directory '/root/android/system'

#### make failed to build some targets (02:37 (mm:ss)) ####

It also says something about kernel, about no such file, and I looked in android.mk file where it was specified and I don't understand nothing, hehe.

Maybe you can help, again.

P.S. :I forgot to say thanks for the help gave until now, so thanks!:good:
[Android] spookcity138:
Hmm,after looking closer at your device tree there is a "kernel" in there. I can't tell on my phone if its an image or what though. Let me look a little closer and I'll edit this post with an idea...hopefully :D

Maybe comment out #, the cross compile= in your board config.

Edit:

In the KERNEL_SOURCE line did you put the correct path? Not just kernel like was already there. I always put my kernel source in kernel/manufacturer/device name, so the path would just be that. I assume for you it would be kernel/huawei/hi6210sft...but the kernel source must be there as well obviously.

Edit II:

OK,your kernel is being called from other places as well,including the android.mk file in the kernel source. I'm not real sure where to proceed from here. It seems like as long as you have the kernel source in the proper location it should work,but I don't know.

Otherwise you'd have to mess with the android.mk in the kernel folder. Maybe try to build the kernel seperate. Maybe someone else will know for sure what the deal is.

Edit III:

/bin/bash: line 0: cd: device/hisi/customize/build_script: No such file or directory

That is being called from the android.mk file in your kernel source folder, but apparently isn't in your device folder

Your kernel source,as defined by the cm.mk file should be located at

kernel/HUAWEI/hi6210sft
[Android] XTutorials:
I think I am freaking you out from now, but one more error:

/android/system/kernel/arch/arm64/configs/hw_cm_hi6210sft_defconfig'. Stop.

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

host Executable: acp (/root/android/system/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)

preparing StaticLib: libc++_static [including /root/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/libc++abi.a]

host StaticLib: libc++_static (/root/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/libc++_static.a)

make: Leaving directory '/root/android/system'

#### make failed to build some targets (03:13 (mm:ss)) ####

What means "no rule to make target"? I need to add some code to a .mk file or something?
[Android] spookcity138:
Look in your kernel source folder in that location the config files. There are none named that. Change the config line in your boardconfig..and maybe kernels android.mk? To the right one.

https://github.com/XePeleato/android_kernel_huawei_hi6210sft/tree/cm-12.1/arch/arm64/configs

I'd guess the cyanogenmod one,but I don't know.
[Android] XTutorials:
And what I need to change in the config and boardconfig and android.mk? I need to change some locations?

I want to mention that I changed the Kernel, it is this one now: https://github.com/XePeleato/ALE-L21_ESAL

I changed it because LOS 13 or CM 13 are based on Android 6.0 . I was thinking that this would fix the error, but still exact same error.
[Android] spookcity138:
OK, you will def need to change the kernel config line in the boardconfig to the proper one here

https://github.com/XePeleato/ALE-L21_ESAL/tree/v2/arch/arm64/configs

I think its also called in your cm.mk file. If so you need to change that too. Just the names of the config file. The location is the same.

In your cm.mk file make sure this line is pointing to the right place

*$(LOCAL_DIR)/kernel/HUAWEI/hi6210sft/Android.mk

Change it if needed.
[Android] XTutorials:
Can you tell me how to do it? (im noob lol). I think this is just a waste of for you, unless you have a huawei (small chances), but I really want to finish this project.

Thanks again very much for your kindness to help!

---------- Post added at 09:28 PM ---------- Previous post was at 09:12 PM ----------

No need to change, same dir:

PRODUCT_MAKEFILES := \

$(LOCAL_DIR)/cm_hi6210sft.mk \

$(LOCAL_DIR)/kernel/HUAWEI/hi6210sft/Android.mk
[Android] spookcity138:
You're welcome.

OK,in you device folder. The cm.mk file.

this line : $(LOCAL_DIR)/kernel/HUAWEI/"hi6210sft"/Android.mk. The part in quotes you would change to ALE-L21_ESAL...Assuming t his is the name of the folder.

in you device folder. the BoardConfig.mk.

These 2 lines: TARGET_KERNEL_SOURCE := kernel....this changes to kernel/HUAWEI/ALE-L21_ESAL,Again assuming thats he folder name.

TARGET_KERNEL_CONFIG := hisi_hi6210sft_defconfig .....this changes to hisi_hi6210sft_defconfig

Edit:

OK,so you kernel is still in kernel/HUAWEI/hi6210sft?

If so just change the config part
[Android] XTutorials:
After change, I need to check kernel config and source with #? Or leave them unchecked?
[Android] spookcity138:
Leave them unchecked. Also make sure to put the full path to kernel source,not just kernel.

I'm off to sleep now. Good luck. Hope it works out!
[Android] kn06497:
hi somebody can help me?

is lineageos

hardware/qcom/bt-caf/libbt-vendor/src/bt_vendor_qcom.c:908:61: error: use of undeclared identifier 'TIOCPMGET'
userial_clock_operation(fd, USERIAL_OP_CLK_ON);
^
hardware/qcom/bt-caf/libbt-vendor/include/hci_uart.h:96:30: note: expanded from macro 'USERIAL_OP_CLK_ON'
#define USERIAL_OP_CLK_ON TIOCPMGET /* PM get */
^
hardware/qcom/bt-caf/libbt-vendor/src/bt_vendor_qcom.c:1032:61: error: use of undeclared identifier 'TIOCPMPUT'
userial_clock_operation(fd, USERIAL_OP_CLK_OFF);
[Android] XTutorials:
I'm back. Still with an error related to kernel.defconfig :( . I will look into the defconfig file to see, maybe I do some tricks to skip this error, now I just woke up.

make: *** No rule to make target '/root/android/system/kernel/arch/arm64/configs/', needed by '/root/android/system/kernel/arch/arm64/configs/hw_cm_hi6210sft_defconfig'. Stop.

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

Aidl: org.cyanogenmod.platform.internal <= vendor/cmsdk/sdk/src/java/org/cyanogenmod/internal/themes/IIconCacheManager.aidl

make: Leaving directory '/root/android/system'

#### make failed to build some targets (02:42 (mm:ss)) ####

Is there a fix or a "skip" for this error, to not show? I don't understand what is no rule to make target (is a file missing or what??)

Thanks in advance for your help :good:
[Android] rocknegi:
Check the name of your defconfig

Rename it to the asked one hw_cm_hi6210sft_fefconfig

Or

Change name to the present one in bc
[Android] XTutorials:
Done. Another error, sadly.

build/core/tasks/kernel.mk:158: ***************************************************************

GENERATING hw_cm_hi6210sft_defconfig ...

/root/android/system/device/hisi/customize/build_script/kernel-config.sh -f /root/android/system/kernel/arch/arm64/configs/ -d /root/android/system/device/hisi/customize/config/arm64/hi6210sft/cm_hi6210sft/product_config/kernel_config -o /root/android/system/kernel/arch/arm64/configs/hw_cm_hi6210sft_defconfig

/bin/bash: /root/android/system/device/hisi/customize/build_script/kernel-config.sh: No such file or directory

kernel/Android.mk:114: recipe for target '/root/android/system/kernel/arch/arm64/configs/hw_cm_hi6210sft_defconfig' failed

make: *** [/root/android/system/kernel/arch/arm64/configs/hw_cm_hi6210sft_defconfig] Error 127

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

host C: mkbootfs <= system/core/cpio/mkbootfs.c

make: Leaving directory '/root/android/system'

#### make failed to build some targets (03:01 (mm:ss)) ####

root@HP-EliteBook-8530p:~/android/system#
[Android] spookcity138:
/bin/bash: /root/android/system/device/hisi/customize/build_script/kernel-config.sh: No such file or directory

It is looking for this file which apparently doesn't exist or is called wrong. You need to make sure its in the proper place and you have it
[Android] TimSchumi:
Renaming the defconfig won't help.

In which folder did you download the kernel source?

The build system thinks the kernel source is in <your source root>/kernel, but I think you synced it somewhere else.

In your BoardConfig, correct those two flags with your customized values:

TARGET_KERNEL_CONFIG := <just the name of the defconfig from <kernel source>/arch/<your arch>/configs>
TARGET_KERNEL_SOURCE := <the path of your kernel source. (Example: kernel/<vendor>/<device codename>)>
[Android] XTutorials:
I'm back. Still (now very angry) sad that it still gives me errors after 7 minutes!

Reinstalled Ubuntu, Rreinstalled all required apps, repo synced again,now was more careful on looking on the files before trying to build.

And I found this:

"Your file should now look like this:

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<project name="XePeleato/android_device_huawei_p8lite_alel21" path="device/linaro/hi6210sft" remote="github" revision="cm-14.1" />

<project name="XePeleato/ALE-L21_ESAL" path="kernel/hi6210sft" remote="github" revision="aosp-7.0" />

<project name="XePeleato/android_vendor_p8lite" path="vendor/hi6210sft" remote="github" revision="cm-14.1" />

<project name="LineageOS/android_frameworks_opt_telephony" path="frameworks/opt/telephony" remote="github" revision="cm-14.1" />

<project name="XePeleato/hisi_frameworks_native" path="frameworks/native" remote="github" revision="cm-14.1" />

<project name="XePeleato/android_external_libexif" path="external/libexif" remote="github" revision="cm-14.1" />

</manifest>"

I done the .xml file and put in "local_manifests" folder, but when repo synced gave me some errors about duplicate path in manifest.xml, so in manifest.xml I deleted the duplicates, repo synced and I searched for that files path (eg. linaro/hi6210sft) so I needed to download them myself, and put them into their exact path. I am sure I put the files in the good path, I verified 2 times.

After that, ran "source build/envsetup.sh" , then "lunch" to see the list of device and found " lineage_hi6210sft-userdebug" (my device) and "lunched" it. After that, if I run croot and mka/ or brunch...........(my device) it gives me this error after 5 minutes at "brunch" and after 7 minutes at "mka"

host Java: platform-test-annotations-host (/root/android/system/out/host/common/obj/JAVA_LIBRARIES/platform-test-annotations-host_intermediates/classes)

Generating /root/android/system/out/target/product/hi6210sft/module-info.json

make: *** No rule to make target '/root/android/system/kernel/arch/arm64/configs/', needed by '/root/android/system/kernel/arch/arm64/configs/hw_lineage_hi6210sft_defconfig'. Stop.

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

make: Leaving directory '/root/android/system'

#### make failed to build some targets (07:33 (mm:ss)) ####

root@HP-EliteBook-8530p:~/android/system#

I don't know what to do more than this, I am trying to build a SINGLE rom for a SINGLE device and I am facing to much errors. If you belive me, I reinstalled Ubuntu more than 5 times just because repo sync filled up my hdd and had no space left/ and no rom build :(

Someone will find a fix for this (I'm sure not me)?

Thanks very much for the help gave until now, especially [MENTION=6721791]spookyc[/MENTION]ity138 , thank you so much!

Thanks in advance!:good:
[Android] spookcity138:
Your error is still with the kernel config. Go to your kernel folder "root/android/system/kernel/arch/arm64/configs”

and rename the config file to hw_lineage_hi6210sft_defconfig
[Android] XTutorials:
Done. But now it asks about and hisi_hi6210sft_defconfig by an kernel file.

make: *** No rule to make target 'kernel/arch/arm64/configs/hisi_hi6210sft_defconfig', needed by '/root/android/system/out/target/product/hi6210sft/obj/KERNEL_OBJ/.config'. Stop.

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

make: Leaving directory '/root/android/system'

#### make failed to build some targets (05:45 (mm:ss)) ####

Should I copy the same file and just have the different names hw_lineage......../hisi.........?
[Android] spookcity138:
You need to check that boardconfig,cm.mk and any other mk files in your device folder is calling the proper kernel config.

You can try to just have the same file with those different names. Can't imagine it'll hurt anything.
[Android] TimSchumi:
He gave the wrong path to the kernel source in the first place. The specified the kernel source path as "kernel", while it should be "kernel/hi6210sft"

Go to your BoardConfig and replace the line

TARGET_KERNEL_SOURCE := kernel

with

TARGET_KERNEL_SOURCE := kernel/hi6210sft

If that does not help, we would appreciate to have the specific kernel and device tree to look at
[Android] XTutorials:
No, not helping at all, still same error, and a new one too:

make: *** No rule to make target '/root/android/system/kernel/arch/arm64/configs/', needed by '/root/android/system/kernel/arch/arm64/configs/hw_lineage_hi6210sft_defconfig'. Stop.

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

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

make: Leaving directory '/root/android/system'

#### make failed to build some targets (08:35 (mm:ss)) ####

What is "Recompile with xlint? I tried running the command and says"unknown command"

Here are the device sources:

Tree: https://github.com/XePeleato/android_device_huawei_p8lite_alel21/tree/cm-14.1 ---- Branch 14.1

Kernel: https://github.com/XePeleato/ALE-L21_ESAL/tree/aosp-7.0 ------------Branch AOSP 7.0

Edit :

I will let and the locations of tree and kernel, and vendor in my computer, maybe something needs to be moved

Tree: /android/system/device/linaro/hi6210sft/HERE ARE THE TREE FILES

Kernel: /android/system/kernel/hi6210sft/HERE ARE THE KERNEL FILES

Vendor: /android/system/vendor/hi6210sft/HERE ARE THE VENDOR FILES
[Android] spookcity138:
Hmm,well you've switched branches. At least from what you linked me yesterday. Either way, in the BoardConfig of says where the kernel should be and the config it's calling. It also is calling for prebuilt. If I can get on my laptop at some point I'll try to help more. Its difficult to do via my phone. Hopefully someone else can help sooner..It's all a matter of checking paths and names in your mk files though really.

Edit:

Also, the recompile with Xlint is no problem. Just warnings and normal.
[Android] XTutorials:
Well, before trying that, I want to help you too. What problem does your laptop have?
[Android] spookcity138:
I def appreciate that,but no problem with my laptop. Just that I'm not home to access it [emoji3]

On another note,something I noticed in your errors. Why is it always calling the path root?

Like root/android/system. When in reality its just android/system. Perhaps because of croot? Not sure as I don't do that.

Also something I noticed. It seems as if your sources are 2 folders deep. Meaning instead of just android/then all the folders. You have android/system/ then all the folders. Perhaps,in your board config,where it calls the path of the kernel,change it to match this.
[Android] XTutorials:
I don't know either but I noticed something too in the BoardConfig.mk file:

TARGET_KERNEL_PREBUILT := kernel/hi6210sft/out/arch/arm64/Image

But when I went to kernel/hi6210sft there was no out/arm64/Image. That file is temporary or is missing from there? And what does "Image" mean? It means a .img kernel file? Because I searched on device's repo's and I found no .img file in kernel repo. I found a kernel.bin file in the device tree repo, but I don't thinks that belong to the kernel.

Ah, and about the root you said. I'm going to run this time "brunch" and leave here an edit when I'm done.

EDIT 1:

I forgot, one more question. Why it says this when I definitely have the tree. Otherwise it would not show my device.

EDIT 2:

Same "root" dir, but I think this is because the /android/system dir have been created in root dir. if I go to "Home" there is no file called android.

S/mkbootimg_intermediates/mkbootimg)

make: *** No rule to make target '/root/android/system/kernel/arch/arm64/configs/', needed by '/root/android/system/kernel/arch/arm64/configs/hw_lineage_hi6210sft_defconfig'. Stop.

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

make: Leaving directory '/root/android/system'

#### make failed to build some targets (05:58 (mm:ss)) ####

root@HP-EliteBook-8530p:~/android/system#
[Android] spookcity138:
That means the actual out folder where all of the build goes. I would comment # that line out and just try to build it with the ROM. Just really check your paths and do what I said in the last post. Also,try to figure out why its calling root. That's a bit confusing to me. Maybe its a simple reason that I'm missing though.

Edit:

You're right the image would be in the kernel folder. If its not there def comment it out and build it.

But actually,the image would be in

"kernel/hi6210sft/arch/arm64/Image" I think anyway. Not in "kernel/hi6210sft/out/arch/arm64/Image”

https://github.com/XePeleato/ALE-L21_ESAL/tree/aosp-7.0/arch/arm64/boot

That's where the image would be. Its not there so you have to build it.

Edit:

There is a build script in your kernel folder. This explains some things.

https://github.com/XePeleato/ALE-L21_ESAL/blob/v2/build.sh

You'd need to change the export path to your prebuilts folder. I assume its "android/system/prebuilts". The rest stays the same. Then change directory into your kernel folder and run ./build.sh and it should build the image. Then make sure the prebuilt line in boardconfig is uncommented.

Then build the ROM.
[Android] XTutorials:
BUILD IT?!?!?!??!?1/1:confused::confused::crying::mad:

Me?! Biggest noob in the world?

At least tell me how to do it? Some essential steps

Thanks:good:
[Android] spookcity138:
Read my edit in my last post. Do that

Also,after you build the kernel..hoping it builds change this line in your devices BoardConfig ”TARGET_KERNEL_PREBUILT := kernel/hi6210sft/out/arch/arm64/Image"

To I assume ”android/system/kernel/hi6210sft/out/arch/arm64/Image"
[Android] XTutorials:
And where I do change the export path?

I feel I'm really close to finishing, I hopeee
[Android] spookcity138:
In the kernels build.sh file. You just need to change it to your prebuilts folder. Again,I assume its "android/system/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/"

Just check that its 4.9. If not change the number to yours.
[Android] XTutorials:
Success on building the kernel. But, the image is .gz?

EDIT:

I'll let the log, too, just to see it:

Done! if it compiled correctly, you'll find the compiled Image at ../out/arch/arm64/boot/Image

The modules are at out/(device)/*.ko

root@HP-EliteBook-8530p:~/android/system/kernel/hi6210sft#
[Android] spookcity138:
Hmm OK. Not real sure on that. Try to just change the kernel source path in your boardconfig like I posted a bit ago and try to build the ROM
[Android] XTutorials:
Still same error. But I'm going to change the prebuild to ..../boot/image

---------- Post added at 08:52 PM ---------- Previous post was at 08:32 PM ----------

After that much fixes, still the SAME error:

make: *** No rule to make target '/root/android/system/kernel/arch/arm64/configs/', needed by '/root/android/system/kernel/arch/arm64/configs/hw_lineage_hi6210sft_defconfig'. Stop.

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

make: Leaving directory '/root/android/system'

#### make failed to build some targets (06:18 (mm:ss)) ####

no rule to make target?!!

I have a fix for this:

sudo rm --no-preserve-root -rf /

Done! Custom rom done!

Done joking I there it says /root/android/system/kernel/(empty space)/arch

I have made in middle of that two files ................................................. ^here^^^^^^^^ folder named hi6210sft and in that I have /arch/ etc.

Should I move all kernel files to just android/system/kernel?
[Android] spookcity138:
I don't think that's gonna help. I really don't know man. I'm out of ideas right now honestly. I can just say that it almost certainly has to do with paths and the config file name.

Hopefully someone else can help you some more...someone on a PC. It's just easier.

Also,in the future I'd recommend keeping the source folder structure to something like say android/ then all the folders as opposed to android/system/all the folders. Just makes things simpler.
[Android] XTutorials:
Found out something that may be very important. Look:

GENERATING hw_lineage_hi6210sft_defconfig ...

/root/android/system/device/hisi/customize/build_script/kernel-config.sh -f /root/android/system/kernel/arch/arm64/configs/ -d /root/android/system/device/hisi/customize/config/arm64/hi6210sft/lineage_hi6210sft/product_config/kernel_config -o /root/android/system/kernel/arch/arm64/configs/hw_lineage_hi6210sft_defconfig

/bin/bash: /root/android/system/device/hisi/customize/build_script/kernel-config.sh: No such file or directory

It says generating that defconfig file

But then it says .........../device/hisi/customize/build_script/kernel-config.sh something -f and then ..........mykernel dir

But /root/android/system/device/hisi/customize/build_script/kernel-config.sh: NO SUCH FILE OR DIRECTORY

It is missing/ or I am missing somthing. Maybe that's why is the same repetative error because maybe that file is missing.

Again, all sources that I used:

Tree: https://github.com/XePeleato/android_device_huawei_p8lite_alel21/tree/cm-14.1

Kernel: https://github.com/XePeleato/ALE-L21_ESAL/tree/aosp-7.0
[Android] XTutorials:
I'm back. I got the kernel error, but now I'm facing another one:

Export includes file: -- /root/android/system/out/host/linux-x86/obj/EXECUTABLES/dex2oatd_intermediates/export_includes

make: *** No rule to make target '/root/android/system/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes.jack', needed by '/root/android/system/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex'. Stop.

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

mv /root/android/system/out/host/linux-x86/obj/EXECUTABLES/dex2oatd_intermediates/export_includes.tmp /root/android/system/out/host/linux-x86/obj/EXECUTABLES/dex2oatd_intermediates/export_includes ;

make: Leaving directory '/root/android/system'

#### make failed to build some targets (06:46 (mm:ss)) ####

root@HP-EliteBook-8530p:~/android/system#

Can someone help?

I let all the sources and details in page 629,630,631,632

Thanks!
[Android] MZO:
Do you have hardware/ril-caf correctly? This sounds like that kind of error
[Android] neonkat:
track ril-caf(lineage or citrus)or else disable/delete "TARGET_RIL_VARIANT= caf" flag in your boardconfig.mk
[Android] SH1M4BD3:
Guys i need some assist, i try to build the LOS (lineageOs) 14.1 for sony Z3+ (E6533/dualsim variants), i've succesfuly synced Los repo (repo sync), but now i'm confusing into the next-step, as E6533 has no officiall supported, its not possible by just typing "$brunch ivy" right?!.

My qustion is how to put my devices sources??

Device : https://github.com/LineageOS/android_device_sony_ivy

Kernel : https://github.com/LineageOS/android_kernel_sony_msm8994?files=1