Hello Yuri
It took me a while, but I finally managed to test your answer and it is wrong
You probably just copy pasted some instructions, without testing them.
So, what does actually work ?
The following will download the Oreo into the android_build
It takes ages, but eventually you get the build tree
$ cd /home/sipro/imx6q_o8
$ export WORKSPACE=/home/sipro/imx6q_o8
$ cp -rv /home/sipro/dev-android/DAMIANO/nxp/imx-o8.1.0_1.3.0_8m /home/sipro/imx6q_o8
$ source /home/sipro/imx6q_o8/imx-o8.1.0_1.3.0_8m/imx_android_setup.sh
Then, to actually build anything you can do
$ cd android_build
$ source build/envsetup.sh
$ lunch evk_8mq-userdebug
$ make
That is actually able to arrive at the end of the build (cannot test if it works since I have no such board)
The board I am working with is Category:AxelLite - DAVE Developer's Wiki
and currently has an old version of Android on it, I was hoping to build for a 6q CPU and tried
/home/sipro/imx6q_o8/android_build$ lunch sabreauto_6q-userdebug
this fails with the following
ninja: error: 'vendor/nxp/linux-firmware-imx/firmware/vpu/vpu_fw_imx6d.bin', needed by 'out/target/product/sabreauto_6q/system/lib/firmware/vpu/vpu_fw_imx6d.bin', missing and no known rule to make it
10:40:14 ninja failed with: exit status 1
Trying exactly what you suggested, with proper syntax
/home/sipro/imx6q_o8/android_build$ lunch sabresd_6dq-userdebug
still result in failure
ninja: error: 'vendor/nxp/linux-firmware-imx/firmware/vpu/vpu_fw_imx6d.bin', needed by 'out/target/product/sabresd_6dq/system/lib/firmware/vpu/vpu_fw_imx6d.bin', missing and no known rule to make it
12:25:35 ninja failed with: exit status 1
So, given that there is at least one build that "works" (it takes around 30 minutes on a 32threads + 32Gb ram machine) I would say that the linux environment should be reasonably correct.
I would say that if the other builds (beside the evk_8mq) are broken, better not have them around, so we know what to really expect from this Android build.
But surely it is not your fault