Compiling Android-x86 To ISO File (Or EFI IMG File)

790 views
Skip to first unread message

S B

unread,
Jun 6, 2017, 10:01:49 PM6/6/17
to Android-x86
Dear Android-x86 Community,

I am trying to compile my own Android-x86 image for usage at home. The only problem I am having is that it can't compile it. It gives an error saying that "iso_img" and "efi_img" is unknown. I have already set the build target (aosp_x86_64). Here is the whole string of commands:

"mkdir Android711TV"
...

"lunch"

Which would you like? [aosp_arm-eng] aosp_x86_64-user
============================================
PLATFORM_VERSION_CODENAME=O
PLATFORM_VERSION=O
TARGET_PRODUCT=aosp_x86_64
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-78-generic-x86_64-with-LinuxMint-18.1-serena
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NYC
OUT_DIR=out
============================================

"make -j8 efi_img" (I try to do an EFI Install image)

============================================
PLATFORM_VERSION_CODENAME=O
PLATFORM_VERSION=O
TARGET_PRODUCT=aosp_x86_64
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-78-generic-x86_64-with-LinuxMint-18.1-serena
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NYC
OUT_DIR=out
============================================
[38/38] bootstrap out/soong/.minibootstrap/build.ninja.in
[1/2] out/soong/.bootstrap/bin/minibp out/soong/.minibootstrap/build.ninja.in
[4/4] cp out/soong/.bootstrap/bin/bpglob
[501/502] glob test/vts/utils/native/Android.bp
[47/47] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
out/build-aosp_x86_64.ninja is missing, regenerating...
[575/686] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:130: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[686/686] including ./tools/tradefederation/core/Android.mk ...
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module FrameworksUtilsTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
./test/vts/utils/python/archive/Android.mk:28: warning: overriding commands for target `default'
./test/vts/runners/host/tcp_server/Android.mk:19: warning: ignoring old commands for target `default'
[ 99% 889/890] glob vendor/*/*/Android.bp
ninja: error: unknown target 'efi_img'
16:58:24 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

#### make failed to build some targets (01:02 (mm:ss)) ####

"make -j8 iso_img" (I try to do a BIOS Install image)

============================================
PLATFORM_VERSION_CODENAME=O
PLATFORM_VERSION=O
TARGET_PRODUCT=aosp_x86_64
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-78-generic-x86_64-with-LinuxMint-18.1-serena
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NYC
OUT_DIR=out
============================================
[2/2] bootstrap out/soong/.minibootstrap/build.ninja.in
[1/2] out/soong/.bootstrap/bin/minibp out/soong/.minibootstrap/build.ninja.in
ninja: no work to do.
ninja: no work to do.
wildcard(out/target/product/generic_x86_64/clean_steps.mk) was changed, regenerating...
[575/686] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:130: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[686/686] including ./tools/tradefederation/core/Android.mk ...
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module FrameworksUtilsTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
./test/vts/utils/python/archive/Android.mk:28: warning: overriding commands for target `default'
./test/vts/runners/host/tcp_server/Android.mk:19: warning: ignoring old commands for target `default'
ninja: error: unknown target 'iso_img'
17:02:18 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

#### make failed to build some targets (43 seconds) ####

So far I have tried this over 15 times, spent 5 days searching Google and all I get is out of date guides or even ones that are for a different operating system. Please help me with this issue. Your time is very much appreciated.

Thank you,
Sam

Chih-Wei Huang

unread,
Jun 6, 2017, 11:30:23 PM6/6/17
to Android-x86
2017-06-07 8:18 GMT+08:00 S B <samthev...@gmail.com>:
> Dear Android-x86 Community,
>
> I am trying to compile my own Android-x86 image for usage at home. The only problem I am having is that it can't compile it. It gives an error saying that "iso_img" and "efi_img" is unknown. I have already set the build target (aosp_x86_64). Here is the whole string of commands:
>
> "mkdir Android711TV"
> ...
>
> "lunch"
>
> Which would you like? [aosp_arm-eng] aosp_x86_64-user
> ============================================
> PLATFORM_VERSION_CODENAME=O
> PLATFORM_VERSION=O

Android O is not released yet.
Where is your codebase from?

"iso_img" is a build target defined by android-x86, not in AOSP.

"efi_img" is deprecated. Don't use it.

If you want to build android-x86, read the page
about how to get the source:

http://www.android-x86.org/getsourcecode

If you want to build x86 target on your O codebase,
it's your tasks to conquer it.


> TARGET_PRODUCT=aosp_x86_64
> TARGET_BUILD_VARIANT=user
> TARGET_BUILD_TYPE=release
> TARGET_ARCH=x86_64
> TARGET_ARCH_VARIANT=x86_64
> TARGET_2ND_ARCH=x86
> TARGET_2ND_ARCH_VARIANT=x86_64
> HOST_ARCH=x86_64
> HOST_2ND_ARCH=x86
> HOST_OS=linux
> HOST_OS_EXTRA=Linux-4.4.0-78-generic-x86_64-with-LinuxMint-18.1-serena
> HOST_CROSS_OS=windows
> HOST_CROSS_ARCH=x86
> HOST_CROSS_2ND_ARCH=x86_64
> HOST_BUILD_TYPE=release
> BUILD_ID=NYC
> OUT_DIR=out
> ============================================




--
Chih-Wei
Android-x86 project
http://www.android-x86.org

S B

unread,
Jun 7, 2017, 10:36:57 PM6/7/17
to Android-x86
I'm so sorry. I didn't happen to realize that it was going to do Android O. No wonder why this didn't work. Thank you so much.

I guess I forgot to select the nougat branch. I will delete my downloaded source and then choose the nougat branch.

Thanks for catching my error. I need coffee.
-Sam
Reply all
Reply to author
Forward
0 new messages