For testing purposes (I'll use the emulator), I created a new target
(using vendor/manufact... structure) more or less equal to 'generic'
one.
I used make TARGET...=mydevice and all seems to work.
There's only a strange thing: init.goldfish.rc is still called at init-
time.
I would like to launch my init.mydevice.rc ...
Android.mk
================================
LOCAL_PATH := $(call my-dir)
# kernel pre-built binary
ifeq ($(TARGET_PREBUILT_KERNEL),)
TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel
endif
file := $(INSTALLED_KERNEL_TARGET)
ALL_PREBUILT += $(file)
$(file): $(TARGET_PREBUILT_KERNEL) | $(ACP)
$(transform-prebuilt-to-target)
# keyboard layouts
file := $(TARGET_OUT_KEYLAYOUT)/tuttle2.kl
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/tuttle2.kl | $(ACP)
$(transform-prebuilt-to-target)
# keymap
include $(CLEAR_VARS)
LOCAL_SRC_FILES := tuttle2.kcm
include $(BUILD_KEY_CHAR_MAP)
# board specific init.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.osstbox.rc:root/init.mydevice.rc
# prebuilt drivers
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/fake.ko:system/lib/fake.ko
BoardConfig.mk
=================================
# 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
HAVE_HTC_AUDIO_DRIVER := true
BOARD_USES_GENERIC_AUDIO := true
USE_CAMERA_STUB := true
TARGET_PROVIDES_INIT_RC := true
mydevice.mk
==================================
# Superclass
$(call inherit-product, build/target/product/generic.mk)
# Overrides
PRODUCT_BRAND := mydevice
PRODUCT_DEVICE := mydevice
PRODUCT_NAME := mydevice
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---