To build and test the image in this chapter, we can use the repo tool to retrieve the source code in this chapter as follows:
We can get the source code from GitHub and AOSP using the following command:
$ repo init https://github.com/shugaoye/manifests -b android-7.1.1_r4_ch11_aosp
$ repo sync
After we get the source code for this chapter, we can set the environment and build the system as follows:
$ source build/envsetup.sh
$ lunch x86vbox-eng
$ make -j4
To build initrd.img, we can run the following command:
$ make initrd USE_SQUASHFS=0