-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error when trying to build custom roms; #28
Comments
Yip, Maybe it's this problem => #27 AIM need the AndroidProducts.mk file ? |
I have the AndroidProducts.mk file inside my j320xnlte directory. I tried to merge together the Sharkls common files "aka the other files that you removed from your device tree" to the j320xnlte directory. But it still doesn't find it whatever I do. |
I also tried doing the normal way by putting the Sharkls file into andorid/Device/sharkls-common but it still doesnt work for some reason. It doesn't specify the target device for some reason even though it finds out the errors that the sharkls-common file creates because rild is specified by AIM rom already, but i fixed it by simply removing rild and removing the line that calls it. |
You don't know how is structured a device tree ? :) Why you tried to merge common with j3xnlte directory ? I can add AndroidProducts.mk if you need it, it's the same file of the lineage.mk but for the aosp. When all directories are in place you need to relaunch envsetup.sh to detect new devicie trees. |
I didn't try to merge any of them ^.^ I just did that as a last resort because it didn't work |
I'm gonna try those two files you gave me and ill try to see if it works, thanks! |
borksek@borksek-Legion-Y520T-25IKL:/Android/aim/device/samsung/j3xnlte$ ls Generating a list of devices from vendorsetup.sh... Type in 'lunch' to enter the device menu Generating a list of devices from vendorsetup.sh... Type in 'lunch' to enter the device menu borksek@borksek-Legion-Y520T-25IKL:~/Android/aim$ lunch
Go ahead and pick a number... 1 ** Don't have a product spec for: 'aim_j3xnlte' ** Don't have a product spec for: 'aim_j3xnlte' |
But it worked before ? ^^ |
when you change aim_j3xnlte to full_j3xnlte it says; build/core/product_config.mk:265: *** No matches for product "aim_j3xnlte". Stop. Repository for j3xnlte not found in the aim Github repository list. If this is in error, you may need to manually add it to .repo/local_manifests/aim_manifest.xml ** Don't have a product spec for: 'aim_j3xnlte' ** Don't have a product spec for: 'aim_j3xnlte' |
😢🔫 finnaly fixed the problem but a new problem came up... ninja: error: '/home/borksek/Android/aim/out/target/product/j3xnlte/kernel', needed by '/home/borksek/Android/aim/out/target/product/j3xnlte/boot.img', missing and no known rule to make it make failed to build some targets (01:19 (mm:ss))borksek@borksek-Legion-Y520T-25IKL:/Android/aim$ cd kernel |
btw; according to slack, you should merge those two. It fixed the problem but i was stupid and forgot to change aim.mk "lineage_j3xnlte" to "aim_j3xnlte" |
Yep maybe but it worked before ? But maybe you need to learn what the aim needs to define a new device tree ... me I'm working on lineage, it's a repository for lineage. This patch is needed to add a project for aim => AIMROM-DEVICES/device_lenovo_kuntao@3749840 |
Yeah djeman, two of those up is the response after I fixed it. Maybe you missed it due to you were here before I answeared ;) |
Do not forget this line => "$(call inherit-product, vendor/aim/config/common_full_phone.mk)" ;) But yep the better method is to convert lineage.mk for aim. |
I did change that line :-) but for some reason still doesn't work :( ninja: error: '/home/borksek/Android/aim/out/target/product/j3xnlte/kernel', needed by '/home/borksek/Android/aim/out/target/product/j3xnlte/boot.img', missing and no known rule to make it borksek@borksek-Legion-Y520T-25IKL:/Android/aim$ cd kernel |
Have you the common folder ? |
sharkls-common? yes |
Arf I don't saw that => "kernel/samsung/j3xnlte" ^^ I said you I renamed the kernel repo, so the kernel folder too. |
Ughh djeman im sorry :( Starting build with ninja I know you're annoyed because of this but i'm sorry :(( |
AIM is Lineage based. |
😢🔫` finnaly fixed the problem but a new problem came up... ninja: error: '/home/borksek/Android/aim/out/target/product/j3xnlte/kernel', needed by '/home/borksek/Android/aim/out/target/product/j3xnlte/boot.img', missing and no known rule to make it I am facing the exact same problem how you fixed this problem |
It's not the true error, the kernel is not build but we do not know why with only the ninja error. "Ninja" is the tool to launch the build of all components in the good order but it stops when an error occur in the compilation of one element. Try to build only the kernel. |
Hey, I've been trying to update AIM rom for this device but after the changes to the device tree it doesn't seem to wan't to work. The error I keep getting and doesn't want to be fixed is the following; ninja: Entering directory `.'
ninja: error: unknown target 'j3xnlte'
build/core/ninja.mk:166: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
The text was updated successfully, but these errors were encountered: