[LineageOS Questions & Answers] Kaijones23:
Every time I build lineage OS 16, I keep getting this error and I looked everywhere for the solution and I can’t really find it.

Device tree

https://github.com/488315/android_device_amazon_karnak?files=1

Kernel source:

https://github.com/488315/android_kernel_mediatek_mt8163?files=1

The error I get:

home/kai/android/lineage/out/target/product/karnak/dex_bootjars/system/framework/boot.prof
/bin/bash -c "ANDROID_LOG_TAGS=\"*:e\" /home/kai/android/lineage/out/host/linux-x86/bin/profman ​​--create-profile-from=frameworks/base/config/boot-image-profile.txt ​​ ​​ ​​--reference-profile-file=/home/kai/android/lineage/out/target/product/karnak/dex_bootjars/system/framework/boot.prof"
profman E 04-04 17:45:03 6779 6779 profman.cc:78] APK files must be specified
profman E 04-04 17:45:03 6779 6779 profman.cc:78] Command: /home/kai/android/lineage/out/host/linux-x86/bin/profman --create-profile-from=frameworks/base/config/boot-image-profile.txt --reference-profile-file=/home/kai/android/lineage/out/target/product/karnak/dex_bootjars/system/framework/boot.prof
profman E 04-04 17:45:03 6779 6779 profman.cc:78] Usage: profman [options]...
profman E 04-04 17:45:03 6779 6779 profman.cc:78]
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --dump-only: dumps the content of the specified profile files
profman E 04-04 17:45:03 6779 6779 profman.cc:78] to standard output (default) in a human readable form.
profman E 04-04 17:45:03 6779 6779 profman.cc:78]
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --dump-output-to-fd=<number>: redirects --dump-only output to a file descriptor.
profman E 04-04 17:45:03 6779 6779 profman.cc:78]
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --dump-classes-and-methods: dumps a sorted list of classes and methods that are
profman E 04-04 17:45:03 6779 6779 profman.cc:78] in the specified profile file to standard output (default) in a human
profman E 04-04 17:45:03 6779 6779 profman.cc:78] readable form. The output is valid input for --create-profile-from
profman E 04-04 17:45:03 6779 6779 profman.cc:78]
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --profile-file=<filename>: specify profiler output file to use for compilation.
profman E 04-04 17:45:03 6779 6779 profman.cc:78] Can be specified multiple time, in which case the data from the different
profman E 04-04 17:45:03 6779 6779 profman.cc:78] profiles will be aggregated.
profman E 04-04 17:45:03 6779 6779 profman.cc:78]
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --profile-file-fd=<number>: same as --profile-file but accepts a file descriptor.
profman E 04-04 17:45:03 6779 6779 profman.cc:78] Cannot be used together with --profile-file.
profman E 04-04 17:45:03 6779 6779 profman.cc:78]
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --reference-profile-file=<filename>: specify a reference profile.
profman E 04-04 17:45:03 6779 6779 profman.cc:78] The data in this file will be compared with the data obtained by merging
profman E 04-04 17:45:03 6779 6779 profman.cc:78] all the files specified with --profile-file or --profile-file-fd.
profman E 04-04 17:45:03 6779 6779 profman.cc:78] If the exit code is EXIT_COMPILE then all --profile-file will be merged into
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --reference-profile-file.
profman E 04-04 17:45:03 6779 6779 profman.cc:78]
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --reference-profile-file-fd=<number>: same as --reference-profile-file but
profman E 04-04 17:45:03 6779 6779 profman.cc:78] accepts a file descriptor. Cannot be used together with
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --reference-profile-file.
profman E 04-04 17:45:03 6779 6779 profman.cc:78]
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --generate-test-profile=<filename>: generates a random profile file for testing.
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --generate-test-profile-num-dex=<number>: number of dex files that should be
profman E 04-04 17:45:03 6779 6779 profman.cc:78] included in the generated profile. Defaults to 20.
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --generate-test-profile-method-percentage=<number>: the percentage from the maximum
profman E 04-04 17:45:03 6779 6779 profman.cc:78] number of methods that should be generated. Defaults to 5.
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --generate-test-profile-class-percentage=<number>: the percentage from the maximum
profman E 04-04 17:45:03 6779 6779 profman.cc:78] number of classes that should be generated. Defaults to 5.
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --generate-test-profile-seed=<number>: seed for random number generator used when
profman E 04-04 17:45:03 6779 6779 profman.cc:78] generating random test profiles. Defaults to using NanoTime.
profman E 04-04 17:45:03 6779 6779 profman.cc:78]
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --create-profile-from=<filename>: creates a profile from a list of classes and
profman E 04-04 17:45:03 6779 6779 profman.cc:78] methods.
profman E 04-04 17:45:03 6779 6779 profman.cc:78]
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --dex-location=<string>: location string to use with corresponding
profman E 04-04 17:45:03 6779 6779 profman.cc:78] apk-fd to find dex files
profman E 04-04 17:45:03 6779 6779 profman.cc:78]
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --apk-fd=<number>: file descriptor containing an open APK to
profman E 04-04 17:45:03 6779 6779 profman.cc:78] search for dex files
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --apk-=<filename>: an APK to search for dex files
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --skip-apk-verification: do not attempt to verify APKs
profman E 04-04 17:45:03 6779 6779 profman.cc:78]
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --generate-boot-image-profile: Generate a boot image profile based on input
profman E 04-04 17:45:03 6779 6779 profman.cc:78] profiles. Requires passing in dex files to inspect properties of classes.
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --boot-image-class-threshold=<value>: specify minimum number of class occurrences
profman E 04-04 17:45:03 6779 6779 profman.cc:78] to include a class in the boot image profile. Default is 10.
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --boot-image-clean-class-threshold=<value>: specify minimum number of clean class
profman E 04-04 17:45:03 6779 6779 profman.cc:78] occurrences to include a class in the boot image profile. A clean class is a
profman E 04-04 17:45:03 6779 6779 profman.cc:78] class that doesn't have any static fields or native methods and is likely to
profman E 04-04 17:45:03 6779 6779 profman.cc:78] remain clean in the image. Default is 3.
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --boot-image-sampled-method-threshold=<value>: minimum number of profiles a
profman E 04-04 17:45:03 6779 6779 profman.cc:78] non-hot method needs to be in order to be hot in the output profile. The
profman E 04-04 17:45:03 6779 6779 profman.cc:78] default is max int.
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --copy-and-update-profile-key: if present, profman will copy the profile from
profman E 04-04 17:45:03 6779 6779 profman.cc:78] the file passed with --profile-fd(file) to the profile passed with
profman E 04-04 17:45:03 6779 6779 profman.cc:78] --reference-profile-fd(file) and update at the same time the profile-key
profman E 04-04 17:45:03 6779 6779 profman.cc:78] of entries corresponding to the apks passed with --apk(-fd).
profman E 04-04 17:45:03 6779 6779 profman.cc:78]

I really need help with this and I have not found any solution for it. How can I make a proper device tree for this to work. I would like an template please. Please let me know if you have found any solution. I’m trying to get this project done before I release it on April 21st