From af38ee08585bcedd169309f3663aec70d0a91856 Mon Sep 17 00:00:00 2001 From: Sam Hurst Date: Thu, 5 Nov 2015 14:53:59 -0800 Subject: Added pdk mips64 support Bug: 22046040 For 64-bit support, mini_mips64.mk needed to inerit from core_64_bit.mk Fixed the copyright date. Removed useless comment Change-Id: I5817b9973d34b673cc46e43184a61f658703acee --- AndroidProducts.mk | 18 ++++++++++++++++ BoardConfig.mk | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ mini_mips64.mk | 24 +++++++++++++++++++++ 3 files changed, 103 insertions(+) create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 mini_mips64.mk diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..d5ceae2 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,18 @@ +# +# Copyright (C) 2015 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_mips64.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..20f30fb --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,61 @@ +# config.mk +# +# Product-specific compile-time definitions. +# + +TARGET_NO_BOOTLOADER := true +TARGET_NO_KERNEL := true + +TARGET_ARCH := mips64 +ifeq (,$(TARGET_ARCH_VARIANT)) +TARGET_ARCH_VARIANT := mips64r6 +endif +TARGET_CPU_ABI := mips64 + +TARGET_2ND_ARCH := mips +ifeq (,$(TARGET_2ND_ARCH_VARIANT)) +ifeq ($(TARGET_ARCH_VARIANT),mips64r6) +TARGET_2ND_ARCH_VARIANT := mips32r6 +else +TARGET_2ND_ARCH_VARIANT := mips32r2-fp +endif +endif +TARGET_2ND_CPU_ABI := mips + +# Make TARGET_XXX_CPU_VARIANT the same as TARGET_XXX_ARCH_VARIANT +TARGET_CPU_VARIANT := $(TARGET_ARCH_VARIANT) +TARGET_2ND_CPU_VARIANT := $(TARGET_2ND_ARCH_VARIANT) + +# The emulator (qemu) uses the Goldfish devices +HAVE_HTC_AUDIO_DRIVER := true +BOARD_USES_GENERIC_AUDIO := true + +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 guest and host libraries +BUILD_EMULATOR_OPENGL := true +USE_OPENGL_RENDERER := true + +BOARD_USE_LEGACY_UI := true + +# PDK does not use ext4 image, but it is added here to prevent build break. +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 + +BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy + +DEX_PREOPT_DEFAULT := nostripping diff --git a/mini_mips64.mk b/mini_mips64.mk new file mode 100644 index 0000000..da9327e --- /dev/null +++ b/mini_mips64.mk @@ -0,0 +1,24 @@ +# Copyright (C) 2015 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, $(SRC_TARGET_DIR)/product/core_64_bit.mk) +$(call inherit-product, device/generic/armv7-a-neon/mini_common.mk) + +PRODUCT_NAME := mini_mips64 +PRODUCT_DEVICE := mips64 +PRODUCT_BRAND := Android +PRODUCT_MODEL := Mini for mips64 + +# default is nosdcard, S/W button enabled in resource +PRODUCT_CHARACTERISTICS := nosdcard -- cgit v1.2.3