[android-porting] how to build Android with recovery.img

641 views
Skip to first unread message

fanday

unread,
May 19, 2010, 1:48:24 AM5/19/10
to android...@googlegroups.com
Hi all:
    I  built Android 1.6 (Donut) without any error,but there is no revcovery.img residing in out/target/generic DIR .And my BoardConfig.mk is:
# config.mk
#
# Product-specific compile-time definitions.
#

# The generic product target doesn't have any hardware-specific pieces.
TARGET_NO_BOOTLOADER := true
TARGET_NO_KERNEL := true
TARGET_NO_RADIOIMAGE := true
TARGET_CPU_ABI := armeabi
HAVE_HTC_AUDIO_DRIVER := false
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
#BOARD_USES_GENERIC_AUDIO := true
#BOARD_USES_GENERIC_OSSAUDIO := true
BOARD_USES_ALSA_AUDIO := true
BUILD_WITH_ALSA_UTILS := true

How to change the BoardConfig.mk to build  revcovery.img.
Any help will be appreciate.

Best regards!
Fanday Dai
2010-05-19

--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

zu

unread,
Jun 13, 2010, 5:36:04 PM6/13/10
to android-porting
Hi,

There is the following test in build/core/Makefile :
# If neither TARGET_NO_KERNEL nor TARGET_NO_RECOVERY are true
ifeq (,$(filter true, $(TARGET_NO_KERNEL) $(TARGET_NO_RECOVERY) $
(BUILD_TINY_ANDROID)))

Replace "TARGET_NO_KERNEL := true" with "TARGET_NO_KERNEL := false".

You also need a kernel image in out/target/product/generic/kernel (as
a test you can put the one from the sdk).

It worked for me.
Reply all
Reply to author
Forward
0 new messages