Thank you. For 'your board file' you are pointing to kernel goldfish board source files?
On Jan 30, 9:11 pm, Andrew Green <[email protected]> wrote: > The name used to pick up the device-dependent init file is the name returned > by /proc/cpuinfo under "Hardware" (it uses the first word only - as > lowercase), which is set with the MACHINE_START() macro in your board file. > You can change the name in that macro to "mydevice" to use init.mydevice.rc. > > Andrew > > > > > Date: Fri, 30 Jan 2009 11:15:55 -0800 > > Subject: [android-porting] init.goldfish.rc question > > From: [email protected] > > To: [email protected] > > > 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 > > _________________________________________________________________ > Windows Live™ Hotmail®…more than just > e-mail.http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbett... --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
