summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2014-05-29 17:15:20 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-05-29 17:15:20 +0000
commite2a8cf749210281fdf3a3158d0deba55acf6fcde (patch)
treedd61056e4193f491d4f7f52dc9232720c1095403
parent0b696f4f3f57375460867698dcd5e0a55f8b4a6a (diff)
parent23fce58713a41933cbc4e18431c24b4f993234da (diff)
downloadqemu-e2a8cf749210281fdf3a3158d0deba55acf6fcde.tar.gz
am 23fce587: Add qemu_xxx build products.
* commit '23fce58713a41933cbc4e18431c24b4f993234da': Add qemu_xxx build products. Initial empty repository
-rw-r--r--AndroidProducts.mk27
-rw-r--r--qemu_arm.mk22
-rw-r--r--qemu_arm64.mk25
-rw-r--r--qemu_base.mk89
-rw-r--r--qemu_mips.mk22
-rw-r--r--qemu_mips64.mk25
-rw-r--r--qemu_x86.mk22
-rw-r--r--qemu_x86_64.mk25
8 files changed, 257 insertions, 0 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
new file mode 100644
index 0000000..0a144b7
--- /dev/null
+++ b/AndroidProducts.mk
@@ -0,0 +1,27 @@
+#
+# Copyright (C) 2014 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.
+#
+
+# The following products should be used to generate a minimal system image
+# to be run under upstream QEMU (with a few Android-related patches). Note
+# that this is different from running them under the Android emulator.
+
+PRODUCT_MAKEFILES := \
+ $(LOCAL_DIR)/qemu_arm.mk \
+ $(LOCAL_DIR)/qemu_x86.mk \
+ $(LOCAL_DIR)/qemu_mips.mk \
+ $(LOCAL_DIR)/qemu_x86_64.mk \
+ $(LOCAL_DIR)/qemu_arm64.mk \
+ $(LOCAL_DIR)/qemu_mips64.mk \
diff --git a/qemu_arm.mk b/qemu_arm.mk
new file mode 100644
index 0000000..d5e3e4a
--- /dev/null
+++ b/qemu_arm.mk
@@ -0,0 +1,22 @@
+#
+# Copyright 2014 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.
+#
+$(call inherit-product, $(LOCAL_PATH)/qemu_base.mk)
+
+# Overrides
+PRODUCT_BRAND := generic
+PRODUCT_NAME := qemu_arm
+PRODUCT_DEVICE = generic
+PRODUCT_MODEL := Minimal Android for QEMU/Arm
diff --git a/qemu_arm64.mk b/qemu_arm64.mk
new file mode 100644
index 0000000..5e6f3dc
--- /dev/null
+++ b/qemu_arm64.mk
@@ -0,0 +1,25 @@
+#
+# Copyright 2014 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.
+#
+$(call inherit-product, $(LOCAL_PATH)/qemu_base.mk)
+
+# Overrides
+PRODUCT_BRAND := generic_arm64
+PRODUCT_NAME := qemu_arm64
+PRODUCT_DEVICE = generic_arm64
+PRODUCT_MODEL := Minimal Android for QEMU/ARM64
+
+TARGET_SUPPORTS_32_BIT_APPS := true
+TARGET_SUPPORTS_64_BIT_APPS := true
diff --git a/qemu_base.mk b/qemu_base.mk
new file mode 100644
index 0000000..65336e0
--- /dev/null
+++ b/qemu_base.mk
@@ -0,0 +1,89 @@
+#
+# Copyright (C) 2014 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 file contains the definitions needed for a _really_ minimal system
+# image to be run under emulation under upstream QEMU (www.qemu.org), once
+# it supports a few Android virtual devices. Note that this is _not_ the
+# same as running under the Android emulator.
+
+# This should only contain what's necessary to boot the system, support
+# ADB, and allow running command-line executable compiled against the
+# following NDK libraries: libc, libm, libstdc++, libdl, liblog
+
+# Host modules
+PRODUCT_PACKAGES += \
+ adb \
+
+# Device modules
+PRODUCT_PACKAGES += \
+ adbd \
+ bootanimation \
+ debuggerd \
+ debuggerd64 \
+ dumpstate \
+ dumpsys \
+ e2fsck \
+ gzip \
+ healthd \
+ init \
+ init.environ.rc \
+ init.rc \
+ libbinder \
+ libc \
+ libctest \
+ libcutils \
+ libdl \
+ libhardware \
+ libhardware_legacy \
+ liblog \
+ libm \
+ libstdc++ \
+ libstlport \
+ libsysutils \
+ libutils \
+ linker \
+ linker64 \
+ logcat \
+ logd \
+ logwrapper \
+ mkshrc \
+ netd \
+ qemu-props \
+ reboot \
+ service \
+ servicemanager \
+ sh \
+ toolbox \
+ vold \
+
+# 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 \
+ system/core/rootdir/ueventd.rc:root/ueventd.rc \
+ system/core/rootdir/etc/hosts:system/etc/hosts \
+
+PRODUCT_COPY_FILES += \
+ device/generic/goldfish/fstab.goldfish:root/fstab.goldfish \
+ device/generic/goldfish/init.goldfish.rc:root/init.goldfish.rc \
+ device/generic/goldfish/init.goldfish.sh:system/etc/init.goldfish.sh \
+ device/generic/goldfish/ueventd.goldfish.rc:root/ueventd.goldfish.rc \
diff --git a/qemu_mips.mk b/qemu_mips.mk
new file mode 100644
index 0000000..cceba12
--- /dev/null
+++ b/qemu_mips.mk
@@ -0,0 +1,22 @@
+#
+# Copyright 2014 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.
+#
+$(call inherit-product, $(LOCAL_PATH)/qemu_base.mk)
+
+# Overrides
+PRODUCT_BRAND := generic_mips
+PRODUCT_NAME := qemu_mips
+PRODUCT_DEVICE = generic_mips
+PRODUCT_MODEL := Minimal Android for QEMU/MIPS
diff --git a/qemu_mips64.mk b/qemu_mips64.mk
new file mode 100644
index 0000000..191b728
--- /dev/null
+++ b/qemu_mips64.mk
@@ -0,0 +1,25 @@
+#
+# Copyright 2014 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.
+#
+$(call inherit-product, $(LOCAL_PATH)/qemu_base.mk)
+
+# Overrides
+PRODUCT_BRAND := generic_mips64
+PRODUCT_NAME := qemu_mips64
+PRODUCT_DEVICE = generic_mips64
+PRODUCT_MODEL := Minimal Android for QEMU/MIPS64
+
+TARGET_SUPPORTS_32_BIT_APPS := true
+TARGET_SUPPORTS_64_BIT_APPS := true
diff --git a/qemu_x86.mk b/qemu_x86.mk
new file mode 100644
index 0000000..3d1a7a9
--- /dev/null
+++ b/qemu_x86.mk
@@ -0,0 +1,22 @@
+#
+# Copyright 2014 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.
+#
+$(call inherit-product, $(LOCAL_PATH)/qemu_base.mk)
+
+# Overrides
+PRODUCT_BRAND := generic_x86
+PRODUCT_NAME := qemu_x86
+PRODUCT_DEVICE = generic_x86
+PRODUCT_MODEL := Minimal Android for QEMU/x86
diff --git a/qemu_x86_64.mk b/qemu_x86_64.mk
new file mode 100644
index 0000000..e948060
--- /dev/null
+++ b/qemu_x86_64.mk
@@ -0,0 +1,25 @@
+#
+# Copyright 2014 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.
+#
+$(call inherit-product, $(LOCAL_PATH)/qemu_base.mk)
+
+# Overrides
+PRODUCT_BRAND := generic_x86_64
+PRODUCT_NAME := qemu_x86_64
+PRODUCT_DEVICE = generic_x86_64
+PRODUCT_MODEL := Minimal Android for QEMU/x86_64
+
+TARGET_SUPPORTS_32_BIT_APPS := true
+TARGET_SUPPORTS_64_BIT_APPS := true