From 04fb6a7c813351e9bf0d21077b0e52d66f150139 Mon Sep 17 00:00:00 2001 From: Kevin Ma Date: Wed, 11 Jun 2014 17:26:56 -0700 Subject: Set up emulator makefiles for x86_64. Bug: 15520970 Change-Id: I3112247153cbc8de0eff5c1908b841aa525a8008 --- AndroidProducts.mk | 18 ++++++++++++++++++ BoardConfig.mk | 24 ++++++++++++++++++++++++ mini_emulator_x86_64.mk | 26 ++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 mini_emulator_x86_64.mk diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..f5f0f8b --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,18 @@ +# +# Copyright (C) 2013 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. +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/mini_emulator_x86_64.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..905eb97 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,24 @@ +# BoardConfig.mk +# +# Product-specific compile-time definitions. +# + +# same as x86 except HAL +include device/generic/x86_64/BoardConfig.mk + +# Build OpenGLES emulation libraries +BUILD_EMULATOR := true +BUILD_EMULATOR_OPENGL := true +BUILD_EMULATOR_OPENGL_DRIVER := true + +# share the same one across all mini-emulators +BOARD_EGL_CFG := device/generic/goldfish/opengl/system/egl/egl.cfg + +TARGET_USERIMAGES_USE_EXT4 := true +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 786432000 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 +BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 +BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 +BOARD_FLASH_BLOCK_SIZE := 512 +TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true + diff --git a/mini_emulator_x86_64.mk b/mini_emulator_x86_64.mk new file mode 100644 index 0000000..f2414a3 --- /dev/null +++ b/mini_emulator_x86_64.mk @@ -0,0 +1,26 @@ +# Copyright (C) 2013 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, device/generic/x86_64/mini_x86_64.mk) + +$(call inherit-product, device/generic/mini-emulator-armv7-a-neon/mini_emulator_common.mk) + +PRODUCT_NAME := mini_emulator_x86_64 +PRODUCT_DEVICE := mini-emulator-x86_64 +PRODUCT_BRAND := Android +PRODUCT_MODEL := mini-emulator-x86_64 + +LOCAL_KERNEL := prebuilts/qemu-kernel/x86_64/kernel-qemu +PRODUCT_COPY_FILES += \ + $(LOCAL_KERNEL):kernel -- cgit v1.2.3