move goldfish stuffs to device/generic/goldfish
- each files will be pulled in emulator.mk as PRODUCT_COPY_FILES Change-Id: I4772e2fd863e6d2663f477c3acd8a90cb95b498a
This commit is contained in:
parent
95b087fa90
commit
f5eb803543
5 changed files with 0 additions and 212 deletions
|
@ -7,25 +7,6 @@ copy_from := \
|
|||
etc/dbus.conf \
|
||||
etc/hosts
|
||||
|
||||
ifeq ($(TARGET_PRODUCT),full)
|
||||
copy_from += etc/vold.fstab
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_PRODUCT),full_x86)
|
||||
copy_from += etc/vold.fstab
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_PRODUCT),full_mips)
|
||||
copy_from += etc/vold.fstab
|
||||
endif
|
||||
|
||||
# the /system/etc/init.goldfish.sh is needed to enable emulator support
|
||||
# in the system image. In theory, we don't need these for -user builds
|
||||
# which are device-specific. However, these builds require at the moment
|
||||
# to run the dex pre-optimization *in* the emulator. So keep the file until
|
||||
# we are capable of running dex preopt on the host.
|
||||
#
|
||||
copy_from += etc/init.goldfish.sh
|
||||
|
||||
copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from))
|
||||
copy_from := $(addprefix $(LOCAL_PATH)/,$(copy_from))
|
||||
|
@ -56,20 +37,6 @@ $(INSTALLED_RAMDISK_TARGET): $(file)
|
|||
|
||||
# init.usb.rc is handled by build/target/product/core.rc
|
||||
|
||||
# Just like /system/etc/init.goldfish.sh, the /init.godlfish.rc is here
|
||||
# to allow -user builds to properly run the dex pre-optimization pass in
|
||||
# the emulator.
|
||||
file := $(TARGET_ROOT_OUT)/init.goldfish.rc
|
||||
$(file) : $(LOCAL_PATH)/etc/init.goldfish.rc | $(ACP)
|
||||
$(transform-prebuilt-to-target)
|
||||
ALL_PREBUILT += $(file)
|
||||
$(INSTALLED_RAMDISK_TARGET): $(file)
|
||||
|
||||
file := $(TARGET_ROOT_OUT)/ueventd.goldfish.rc
|
||||
$(file) : $(LOCAL_PATH)/etc/ueventd.goldfish.rc | $(ACP)
|
||||
$(transform-prebuilt-to-target)
|
||||
ALL_PREBUILT += $(file)
|
||||
$(INSTALLED_RAMDISK_TARGET): $(file)
|
||||
|
||||
# create some directories (some are mount points)
|
||||
DIRS := $(addprefix $(TARGET_ROOT_OUT)/, \
|
||||
|
|
|
@ -1,82 +0,0 @@
|
|||
on early-init
|
||||
export EXTERNAL_STORAGE /mnt/sdcard
|
||||
mkdir /mnt/sdcard 0000 system system
|
||||
# for backwards compatibility
|
||||
symlink /mnt/sdcard /sdcard
|
||||
|
||||
on boot
|
||||
setsebool in_qemu 1
|
||||
restorecon /sys/qemu_trace/process_name
|
||||
restorecon /sys/qemu_trace/state
|
||||
restorecon /sys/qemu_trace/symbol
|
||||
setprop ARGH ARGH
|
||||
setprop net.eth0.gw 10.0.2.2
|
||||
setprop net.eth0.dns1 10.0.2.3
|
||||
setprop net.gprs.local-ip 10.0.2.15
|
||||
setprop ro.radio.use-ppp no
|
||||
setprop ro.build.product generic
|
||||
setprop ro.product.device generic
|
||||
|
||||
# fake some battery state
|
||||
setprop status.battery.state Slow
|
||||
setprop status.battery.level 5
|
||||
setprop status.battery.level_raw 50
|
||||
setprop status.battery.level_scale 9
|
||||
|
||||
# disable some daemons the emulator doesn't want
|
||||
stop dund
|
||||
stop akmd
|
||||
|
||||
# start essential services
|
||||
start qemud
|
||||
start goldfish-logcat
|
||||
start goldfish-setup
|
||||
|
||||
setprop ro.setupwizard.mode EMULATOR
|
||||
|
||||
# enable Google-specific location features,
|
||||
# like NetworkLocationProvider and LocationCollector
|
||||
setprop ro.com.google.locationfeatures 1
|
||||
|
||||
# For the emulator, which bypasses Setup Wizard, you can specify
|
||||
# account info for the device via these two properties. Google
|
||||
# Login Service will insert these accounts into the database when
|
||||
# it is created (ie, after a data wipe).
|
||||
#
|
||||
# setprop ro.config.hosted_account username@hosteddomain.org:password
|
||||
# setprop ro.config.google_account username@gmail.com:password
|
||||
#
|
||||
# You MUST have a Google account on the device, and you MAY
|
||||
# additionally have a hosted account. No other configuration is
|
||||
# supported, and arbitrary breakage may result if you specify
|
||||
# something else.
|
||||
|
||||
service goldfish-setup /system/etc/init.goldfish.sh
|
||||
user root
|
||||
group root
|
||||
oneshot
|
||||
|
||||
# The qemu-props program is used to set various system
|
||||
# properties on boot. It must be run early during the boot
|
||||
# process to avoid race conditions with other daemons that
|
||||
# might read them (e.g. surface flinger), so define it in
|
||||
# class 'core'
|
||||
#
|
||||
service qemu-props /system/bin/qemu-props
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
oneshot
|
||||
|
||||
service qemud /system/bin/qemud
|
||||
socket qemud stream 666
|
||||
oneshot
|
||||
|
||||
# -Q is a special logcat option that forces the
|
||||
# program to check wether it runs on the emulator
|
||||
# if it does, it redirects its output to the device
|
||||
# named by the androidboot.console kernel option
|
||||
# if not, is simply exits immediately
|
||||
|
||||
service goldfish-logcat /system/bin/logcat -Q
|
||||
oneshot
|
|
@ -1,68 +0,0 @@
|
|||
#!/system/bin/sh
|
||||
|
||||
# Setup networking when boot starts
|
||||
ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up
|
||||
route add default gw 10.0.2.2 dev eth0
|
||||
|
||||
# ro.kernel.android.qemud is normally set when we
|
||||
# want the RIL (radio interface layer) to talk to
|
||||
# the emulated modem through qemud.
|
||||
#
|
||||
# However, this will be undefined in two cases:
|
||||
#
|
||||
# - When we want the RIL to talk directly to a guest
|
||||
# serial device that is connected to a host serial
|
||||
# device by the emulator.
|
||||
#
|
||||
# - We don't want to use the RIL but the VM-based
|
||||
# modem emulation that runs inside the guest system
|
||||
# instead.
|
||||
#
|
||||
# The following detects the latter case and sets up the
|
||||
# system for it.
|
||||
#
|
||||
qemud=`getprop ro.kernel.android.qemud`
|
||||
case "$qemud" in
|
||||
"")
|
||||
radio_ril=`getprop ro.kernel.android.ril`
|
||||
case "$radio_ril" in
|
||||
"")
|
||||
# no need for the radio interface daemon
|
||||
# telephony is entirely emulated in Java
|
||||
setprop ro.radio.noril yes
|
||||
stop ril-daemon
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
# Setup additionnal DNS servers if needed
|
||||
num_dns=`getprop ro.kernel.ndns`
|
||||
case "$num_dns" in
|
||||
2) setprop net.eth0.dns2 10.0.2.4
|
||||
;;
|
||||
3) setprop net.eth0.dns2 10.0.2.4
|
||||
setprop net.eth0.dns3 10.0.2.5
|
||||
;;
|
||||
4) setprop net.eth0.dns2 10.0.2.4
|
||||
setprop net.eth0.dns3 10.0.2.5
|
||||
setprop net.eth0.dns4 10.0.2.6
|
||||
;;
|
||||
esac
|
||||
|
||||
# disable boot animation for a faster boot sequence when needed
|
||||
boot_anim=`getprop ro.kernel.android.bootanim`
|
||||
case "$boot_anim" in
|
||||
0) setprop debug.sf.nobootanimation 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# set up the second interface (for inter-emulator connections)
|
||||
# if required
|
||||
my_ip=`getprop net.shared_net_ip`
|
||||
case "$my_ip" in
|
||||
"")
|
||||
;;
|
||||
*) ifconfig eth1 "$my_ip" netmask 255.255.255.0 up
|
||||
;;
|
||||
esac
|
|
@ -1,5 +0,0 @@
|
|||
# These settings are specific to running under the Android emulator
|
||||
/dev/qemu_trace 0666 system system
|
||||
/dev/qemu_pipe 0666 system system
|
||||
/dev/ttyS* 0666 system system
|
||||
/proc 0666 system system
|
|
@ -1,24 +0,0 @@
|
|||
## Vold 2.0 Generic fstab
|
||||
## - San Mehat (san@android.com)
|
||||
##
|
||||
|
||||
#######################
|
||||
## Regular device mount
|
||||
##
|
||||
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
|
||||
## label - Label for the volume
|
||||
## mount_point - Where the volume will be mounted
|
||||
## part - Partition # (1 based), or 'auto' for first usable partition.
|
||||
## <sysfs_path> - List of sysfs paths to source devices
|
||||
######################
|
||||
|
||||
## Example of a standard sdcard mount for the emulator / Dream
|
||||
# Mounts the first usable partition of the specified device
|
||||
dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
|
||||
|
||||
## Example of a dual card setup
|
||||
# dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
|
||||
# dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1
|
||||
|
||||
## Example of specifying a specific partition for mounts
|
||||
# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
|
Loading…
Reference in a new issue