diff options
author | Ben Cheng <bccheng@google.com> | 2013-10-07 14:42:10 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-10-07 14:42:10 -0700 |
commit | a698dab816aa79c88b14a84b9701ca48645bf70d (patch) | |
tree | de85dce1faa43c2b6466b2573f322f9bf48931a7 /target | |
parent | 2e840a500ee698d9d039035c5ab04f30b677c7dc (diff) | |
parent | 0b42554fd8c7a43ca45504e4586f1eef578308de (diff) | |
download | build-a698dab816aa79c88b14a84b9701ca48645bf70d.zip build-a698dab816aa79c88b14a84b9701ca48645bf70d.tar.gz build-a698dab816aa79c88b14a84b9701ca48645bf70d.tar.bz2 |
am 0b42554f: am 12eeb000: Merge "Add generic aarch64 board config and build rules."
* commit '0b42554fd8c7a43ca45504e4586f1eef578308de':
Add generic aarch64 board config and build rules.
Diffstat (limited to 'target')
-rw-r--r-- | target/board/generic_aarch64/BoardConfig.mk | 53 | ||||
-rw-r--r-- | target/board/generic_aarch64/README.txt | 5 | ||||
-rw-r--r-- | target/board/generic_aarch64/device.mk | 31 | ||||
-rw-r--r-- | target/board/generic_aarch64/system.prop | 6 | ||||
-rw-r--r-- | target/product/AndroidProducts.mk | 4 | ||||
-rw-r--r-- | target/product/aosp_aarch64.mk | 29 |
6 files changed, 127 insertions, 1 deletions
diff --git a/target/board/generic_aarch64/BoardConfig.mk b/target/board/generic_aarch64/BoardConfig.mk new file mode 100644 index 0000000..b4dfa97 --- /dev/null +++ b/target/board/generic_aarch64/BoardConfig.mk @@ -0,0 +1,53 @@ +# 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. +# + +# The generic product target doesn't have any hardware-specific pieces. +TARGET_NO_BOOTLOADER := true +TARGET_NO_KERNEL := true +TARGET_ARCH := aarch64 +TARGET_ARCH_VARIANT := armv8-a +TARGET_CPU_VARIANT := generic +TARGET_CPU_ABI := aarch64-v8a + +# no hardware camera +USE_CAMERA_STUB := true + +# Enable dex-preoptimization to speed up the first boot sequence +# of an SDK AVD. Note that this operation only works on Linux for now +ifeq ($(HOST_OS),linux) + ifeq ($(WITH_DEXPREOPT),) + WITH_DEXPREOPT := true + endif +endif + +# Build OpenGLES emulation host and guest libraries +BUILD_EMULATOR_OPENGL := true + +# Build and enable the OpenGL ES View renderer. When running on the emulator, +# the GLES renderer disables itself if host GL acceleration isn't available. +USE_OPENGL_RENDERER := true + +TARGET_USERIMAGES_USE_EXT4 := true +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 576716800 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 209715200 +BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 +BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 +BOARD_FLASH_BLOCK_SIZE := 512 +TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true + +# FIXME +# Temporarily disable linking against compiler_rt until there is an aarch64 +# version +WITHOUT_LIBCOMPILER_RT := true diff --git a/target/board/generic_aarch64/README.txt b/target/board/generic_aarch64/README.txt new file mode 100644 index 0000000..681c31e --- /dev/null +++ b/target/board/generic_aarch64/README.txt @@ -0,0 +1,5 @@ +The "generic_aarch64" product defines a non-hardware-specific aarch64 target +without a kernel or bootloader. + +It is not a product "base class"; no other products inherit +from it or use it in any way. diff --git a/target/board/generic_aarch64/device.mk b/target/board/generic_aarch64/device.mk new file mode 100644 index 0000000..8582e5b --- /dev/null +++ b/target/board/generic_aarch64/device.mk @@ -0,0 +1,31 @@ +# +# 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. +# + +# This is a build configuration for the product aspects that +# are specific to the emulator. + +PRODUCT_PROPERTY_OVERRIDES := \ + ro.ril.hsxpa=1 \ + ro.ril.gprsclass=10 \ + ro.adb.qemud=1 + +PRODUCT_COPY_FILES := \ + device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml \ + device/generic/goldfish/camera/media_profiles.xml:system/etc/media_profiles.xml \ + device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml + +PRODUCT_PACKAGES := \ + audio.primary.goldfish diff --git a/target/board/generic_aarch64/system.prop b/target/board/generic_aarch64/system.prop new file mode 100644 index 0000000..29e4be9 --- /dev/null +++ b/target/board/generic_aarch64/system.prop @@ -0,0 +1,6 @@ +# +# system.prop for generic aarch64 sdk +# + +rild.libpath=/system/lib/libreference-ril.so +rild.libargs=-d /dev/ttyS0 diff --git a/target/product/AndroidProducts.mk b/target/product/AndroidProducts.mk index 1a559be..e3298a9 100644 --- a/target/product/AndroidProducts.mk +++ b/target/product/AndroidProducts.mk @@ -40,7 +40,8 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/aosp_x86.mk \ $(LOCAL_DIR)/full_x86.mk \ $(LOCAL_DIR)/aosp_mips.mk \ - $(LOCAL_DIR)/full_mips.mk + $(LOCAL_DIR)/full_mips.mk \ + $(LOCAL_DIR)/aosp_aarch64.mk else PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/core.mk \ @@ -53,6 +54,7 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/full_x86.mk \ $(LOCAL_DIR)/aosp_mips.mk \ $(LOCAL_DIR)/full_mips.mk \ + $(LOCAL_DIR)/aosp_aarch64.mk \ $(LOCAL_DIR)/aosp_x86_64.mk \ $(LOCAL_DIR)/full_x86_64.mk \ $(LOCAL_DIR)/vbox_x86.mk \ diff --git a/target/product/aosp_aarch64.mk b/target/product/aosp_aarch64.mk new file mode 100644 index 0000000..67b7dde --- /dev/null +++ b/target/product/aosp_aarch64.mk @@ -0,0 +1,29 @@ +# +# 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. +# + +# This is a build configuration for a full-featured build of the +# Open-Source part of the tree. It's geared toward a US-centric +# build quite specifically for the emulator, and might not be +# entirely appropriate to inherit from for on-device configurations. + +$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_aarch64/device.mk) + +include $(SRC_TARGET_DIR)/product/emulator.mk +PRODUCT_NAME := aosp_aarch64 +PRODUCT_DEVICE := generic_aarch64 +PRODUCT_BRAND := Android +PRODUCT_MODEL := AOSP on ARM aarch64 Emulator |