<Machine>
Lenovo IdeaCentre IC510-BKR
RAM - 8GB
HDD : 128GB Nvme SSD M.2 2280 PCIe
LAN : 1000Mbps LAN
I installed Ubuntu 18.04 on the machine.
shell> sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip
shell> sudo apt -y install git gcc curl make repo xmllint flex m4
They say it cannot be installed because of xmllint.
shell> sudo apt -y install git gcc curl make repo flex m4
shell> sudo apt -y install openjdk-8-jdk lib32stdc++6 libelf-dev
shell> sudo apt -y install libssl-dev python-mako syslinux-utils
shell> mkdir android-x86
shell> cd android-x86
shell> repo sync --no-tags --no-clone-bundle
When the download is complete, modify three files(evdev.c, mousedev.c, joydev.c) for the touchscreen.
shell> source build/envsetup.sh
shell> lunch android_x86_64-userdebug
shell> m -j4 iso_img
It stops when the "Clang Segmentation Fault" is released at 82%.
So I tried to build only kernel.
shell> rm -rf out
shell> source build/envsetup.sh
shell> lunch android_x86_64-userdebug
shell> make kernel
A kernel is created.
When you replace the out/target/product/x86_64/kernel file with the kernel file in the iso file, the touchscreen screen will operate but the network will not work.
Perhaps you can do so by creating a kernel without setting up android_x86_64_defconfig.
But I also don't know how to address the settings in android_x86_64_defconfig.
If you install android-x86_64-8.1-r2.iso that you downloaded from the website, it works well except for the touchscreen. I inquired of the touchscreen manufacturer and told him that I have to patch the kernel.
I've built the Android kernel for the first time. I don't know what's wrong.