Add new embedded target for a super minimal android build
Remove obsolete BUILD_TINY_ANDROID Change-Id: Ic0f3a5b3250ea80529f5099653068f118a13b12e
This commit is contained in:
@@ -578,7 +578,7 @@ endef
|
|||||||
# Recovery image
|
# Recovery image
|
||||||
|
|
||||||
# If neither TARGET_NO_KERNEL nor TARGET_NO_RECOVERY are true
|
# If neither TARGET_NO_KERNEL nor TARGET_NO_RECOVERY are true
|
||||||
ifeq (,$(filter true, $(TARGET_NO_KERNEL) $(TARGET_NO_RECOVERY) $(BUILD_TINY_ANDROID)))
|
ifeq (,$(filter true, $(TARGET_NO_KERNEL) $(TARGET_NO_RECOVERY)))
|
||||||
|
|
||||||
INSTALLED_RECOVERYIMAGE_TARGET := $(PRODUCT_OUT)/recovery.img
|
INSTALLED_RECOVERYIMAGE_TARGET := $(PRODUCT_OUT)/recovery.img
|
||||||
|
|
||||||
|
@@ -119,7 +119,7 @@ ifeq ($(strip $(LOCAL_ADDRESS_SANITIZER)),true)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Add in libcompiler-rt for all regular device builds
|
# Add in libcompiler-rt for all regular device builds
|
||||||
ifeq (,$(LOCAL_SDK_VERSION)$(LOCAL_IS_HOST_MODULE)$(BUILD_TINY_ANDROID))
|
ifeq (,$(LOCAL_SDK_VERSION)$(LOCAL_IS_HOST_MODULE)$(WITHOUT_LIBCOMPILER_RT))
|
||||||
LOCAL_STATIC_LIBRARIES += $(COMPILER_RT_CONFIG_EXTRA_STATIC_LIBRARIES)
|
LOCAL_STATIC_LIBRARIES += $(COMPILER_RT_CONFIG_EXTRA_STATIC_LIBRARIES)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
25
core/main.mk
25
core/main.mk
@@ -453,25 +453,6 @@ subdirs += build/tools/acp
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
else # !SDK_ONLY
|
else # !SDK_ONLY
|
||||||
ifeq ($(BUILD_TINY_ANDROID), true)
|
|
||||||
|
|
||||||
# TINY_ANDROID is a super-minimal build configuration, handy for board
|
|
||||||
# bringup and very low level debugging
|
|
||||||
|
|
||||||
subdirs := \
|
|
||||||
bionic \
|
|
||||||
system/core \
|
|
||||||
system/extras/ext4_utils \
|
|
||||||
system/extras/su \
|
|
||||||
build/libs \
|
|
||||||
build/target \
|
|
||||||
build/tools/acp \
|
|
||||||
external/gcc-demangle \
|
|
||||||
external/mksh \
|
|
||||||
external/openssl \
|
|
||||||
external/yaffs2 \
|
|
||||||
external/zlib
|
|
||||||
else # !BUILD_TINY_ANDROID
|
|
||||||
#
|
#
|
||||||
# Typical build; include any Android.mk files we can find.
|
# Typical build; include any Android.mk files we can find.
|
||||||
#
|
#
|
||||||
@@ -479,8 +460,6 @@ subdirs := $(TOP)
|
|||||||
|
|
||||||
FULL_BUILD := true
|
FULL_BUILD := true
|
||||||
|
|
||||||
endif # !BUILD_TINY_ANDROID
|
|
||||||
|
|
||||||
endif # !SDK_ONLY
|
endif # !SDK_ONLY
|
||||||
|
|
||||||
# Before we go and include all of the module makefiles, stash away
|
# Before we go and include all of the module makefiles, stash away
|
||||||
@@ -777,10 +756,6 @@ cacheimage: $(INSTALLED_CACHEIMAGE_TARGET)
|
|||||||
.PHONY: bootimage
|
.PHONY: bootimage
|
||||||
bootimage: $(INSTALLED_BOOTIMAGE_TARGET)
|
bootimage: $(INSTALLED_BOOTIMAGE_TARGET)
|
||||||
|
|
||||||
ifeq ($(BUILD_TINY_ANDROID), true)
|
|
||||||
INSTALLED_RECOVERYIMAGE_TARGET :=
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Build files and then package it into the rom formats
|
# Build files and then package it into the rom formats
|
||||||
.PHONY: droidcore
|
.PHONY: droidcore
|
||||||
droidcore: files \
|
droidcore: files \
|
||||||
|
@@ -17,8 +17,8 @@
|
|||||||
# api compatibility or added apis illegally.
|
# api compatibility or added apis illegally.
|
||||||
#
|
#
|
||||||
|
|
||||||
# skip api check for TINY_ANDROID and PDK buid
|
# skip api check for PDK buid
|
||||||
ifeq (,$(filter true, $(BUILD_TINY_ANDROID) $(TARGET_BUILD_PDK)))
|
ifeq (,$(filter true, $(WITHOUT_CHECK_API) $(TARGET_BUILD_PDK)))
|
||||||
|
|
||||||
.PHONY: checkapi
|
.PHONY: checkapi
|
||||||
|
|
||||||
|
@@ -18,74 +18,46 @@
|
|||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
20-dns.conf \
|
20-dns.conf \
|
||||||
95-configured \
|
95-configured \
|
||||||
adb \
|
|
||||||
adbd \
|
|
||||||
am \
|
am \
|
||||||
android.policy \
|
android.policy \
|
||||||
android.test.runner \
|
android.test.runner \
|
||||||
app_process \
|
app_process \
|
||||||
applypatch \
|
applypatch \
|
||||||
bmgr \
|
bmgr \
|
||||||
bootanimation \
|
|
||||||
bugreport \
|
bugreport \
|
||||||
content \
|
content \
|
||||||
dbus-daemon \
|
dbus-daemon \
|
||||||
debuggerd \
|
|
||||||
dhcpcd \
|
dhcpcd \
|
||||||
dhcpcd-run-hooks \
|
dhcpcd-run-hooks \
|
||||||
dnsmasq \
|
dnsmasq \
|
||||||
dumpstate \
|
|
||||||
dumpsys \
|
|
||||||
framework \
|
framework \
|
||||||
fsck_msdos \
|
fsck_msdos \
|
||||||
gralloc.default \
|
|
||||||
gzip \
|
|
||||||
ime \
|
ime \
|
||||||
init \
|
|
||||||
input \
|
|
||||||
javax.obex \
|
javax.obex \
|
||||||
libEGL \
|
|
||||||
libETC1 \
|
|
||||||
libFFTEm \
|
|
||||||
libGLES_android \
|
|
||||||
libGLESv1_CM \
|
|
||||||
libGLESv2 \
|
|
||||||
libSR_AudioIn \
|
libSR_AudioIn \
|
||||||
libandroid \
|
libandroid \
|
||||||
libandroid_runtime \
|
libandroid_runtime \
|
||||||
libandroid_servers \
|
libandroid_servers \
|
||||||
libaudioeffect_jni \
|
libaudioeffect_jni \
|
||||||
libaudioflinger \
|
libaudioflinger \
|
||||||
libbinder \
|
|
||||||
libbundlewrapper \
|
libbundlewrapper \
|
||||||
libc \
|
|
||||||
libcamera_client \
|
libcamera_client \
|
||||||
libcameraservice \
|
libcameraservice \
|
||||||
libchromium_net \
|
libchromium_net \
|
||||||
libctest \
|
|
||||||
libcutils \
|
|
||||||
libdbus \
|
libdbus \
|
||||||
libdl \
|
libdl \
|
||||||
libdrm1 \
|
libdrm1 \
|
||||||
libdrm1_jni \
|
libdrm1_jni \
|
||||||
libeffects \
|
libeffects \
|
||||||
libgui \
|
|
||||||
libhardware \
|
|
||||||
libhardware_legacy \
|
|
||||||
libiprouteutil \
|
libiprouteutil \
|
||||||
libjni_latinime \
|
libjni_latinime \
|
||||||
libjnigraphics \
|
libjnigraphics \
|
||||||
libjpeg \
|
|
||||||
liblog \
|
|
||||||
libm \
|
|
||||||
libmedia \
|
libmedia \
|
||||||
libmedia_jni \
|
libmedia_jni \
|
||||||
libmediaplayerservice \
|
libmediaplayerservice \
|
||||||
libmtp \
|
libmtp \
|
||||||
libnetlink \
|
libnetlink \
|
||||||
libnetutils \
|
libnetutils \
|
||||||
libpixelflinger \
|
|
||||||
libpower \
|
|
||||||
libreference-ril \
|
libreference-ril \
|
||||||
libreverbwrapper \
|
libreverbwrapper \
|
||||||
libril \
|
libril \
|
||||||
@@ -102,24 +74,13 @@ PRODUCT_PACKAGES += \
|
|||||||
libstagefright_foundation \
|
libstagefright_foundation \
|
||||||
libstagefright_omx \
|
libstagefright_omx \
|
||||||
libstagefright_yuv \
|
libstagefright_yuv \
|
||||||
libstdc++ \
|
|
||||||
libstlport \
|
|
||||||
libsurfaceflinger \
|
|
||||||
libsurfaceflinger_client \
|
|
||||||
libsurfaceflinger_ddmconnection \
|
|
||||||
libsystem_server \
|
libsystem_server \
|
||||||
libsysutils \
|
|
||||||
libthread_db \
|
|
||||||
libui \
|
|
||||||
libusbhost \
|
libusbhost \
|
||||||
libutils \
|
libutils \
|
||||||
libvisualizer \
|
libvisualizer \
|
||||||
libvorbisidec \
|
libvorbisidec \
|
||||||
libwebcore \
|
libwebcore \
|
||||||
libwpa_client \
|
libwpa_client \
|
||||||
linker \
|
|
||||||
logcat \
|
|
||||||
logwrapper \
|
|
||||||
mediaserver \
|
mediaserver \
|
||||||
monkey \
|
monkey \
|
||||||
mtpd \
|
mtpd \
|
||||||
@@ -135,15 +96,13 @@ PRODUCT_PACKAGES += \
|
|||||||
schedtest \
|
schedtest \
|
||||||
screenshot \
|
screenshot \
|
||||||
sdcard \
|
sdcard \
|
||||||
service \
|
|
||||||
servicemanager \
|
|
||||||
services \
|
services \
|
||||||
settings \
|
settings \
|
||||||
surfaceflinger \
|
|
||||||
svc \
|
svc \
|
||||||
system_server \
|
system_server \
|
||||||
tc \
|
tc \
|
||||||
toolbox \
|
|
||||||
vdc \
|
vdc \
|
||||||
vold
|
vold
|
||||||
|
|
||||||
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/embedded.mk)
|
||||||
|
|
||||||
|
@@ -134,10 +134,6 @@ PRODUCT_PACKAGES += \
|
|||||||
zoneinfo.idx \
|
zoneinfo.idx \
|
||||||
zoneinfo.version
|
zoneinfo.version
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
|
||||||
system/core/rootdir/init.usb.rc:root/init.usb.rc \
|
|
||||||
system/core/rootdir/init.trace.rc:root/init.trace.rc \
|
|
||||||
|
|
||||||
# host-only dependencies
|
# host-only dependencies
|
||||||
ifeq ($(WITH_HOST_DALVIK),true)
|
ifeq ($(WITH_HOST_DALVIK),true)
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
|
77
target/product/embedded.mk
Normal file
77
target/product/embedded.mk
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2009 The Android Open Source Project
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
|
||||||
|
# This is a build configuration for a very minimal build of the
|
||||||
|
# Open-Source part of the tree.
|
||||||
|
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
adb \
|
||||||
|
adbd \
|
||||||
|
bootanimation \
|
||||||
|
debuggerd \
|
||||||
|
dumpstate \
|
||||||
|
dumpsys \
|
||||||
|
gralloc.default \
|
||||||
|
gzip \
|
||||||
|
init \
|
||||||
|
input \
|
||||||
|
libEGL \
|
||||||
|
libETC1 \
|
||||||
|
libFFTEm \
|
||||||
|
libGLES_android \
|
||||||
|
libGLESv1_CM \
|
||||||
|
libGLESv2 \
|
||||||
|
libbinder \
|
||||||
|
libc \
|
||||||
|
libctest \
|
||||||
|
libcutils \
|
||||||
|
libdl \
|
||||||
|
libgui \
|
||||||
|
libhardware \
|
||||||
|
libhardware_legacy \
|
||||||
|
libjpeg \
|
||||||
|
liblog \
|
||||||
|
libm \
|
||||||
|
libpixelflinger \
|
||||||
|
libpower \
|
||||||
|
libstdc++ \
|
||||||
|
libstlport \
|
||||||
|
libsurfaceflinger \
|
||||||
|
libsurfaceflinger_client \
|
||||||
|
libsurfaceflinger_ddmconnection \
|
||||||
|
libsysutils \
|
||||||
|
libthread_db \
|
||||||
|
libui \
|
||||||
|
libutils \
|
||||||
|
linker \
|
||||||
|
logcat \
|
||||||
|
logwrapper \
|
||||||
|
service \
|
||||||
|
servicemanager \
|
||||||
|
surfaceflinger \
|
||||||
|
toolbox
|
||||||
|
|
||||||
|
# SELinux packages
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
sepolicy \
|
||||||
|
file_contexts \
|
||||||
|
seapp_contexts \
|
||||||
|
property_contexts \
|
||||||
|
mac_permissions.xml
|
||||||
|
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
system/core/rootdir/init.usb.rc:root/init.usb.rc \
|
||||||
|
system/core/rootdir/init.trace.rc:root/init.trace.rc \
|
Reference in New Issue
Block a user