diff options
author | Ying Wang <wangying@android.com> | 2013-10-02 15:02:51 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-10-02 15:02:51 -0700 |
commit | ab7b53b8e09e3d346384a5257e8f7a440a53dfc0 (patch) | |
tree | eb4342727ed8c06ddb7e18af670c99d0ac4e4929 /target | |
parent | c80b7cdaebfaeae1b95ad49b5a2782f9e5ee8727 (diff) | |
parent | 5d92a933dcc1a9ddb99b8818c8a13e208ffc22ce (diff) | |
download | build-ab7b53b8e09e3d346384a5257e8f7a440a53dfc0.zip build-ab7b53b8e09e3d346384a5257e8f7a440a53dfc0.tar.gz build-ab7b53b8e09e3d346384a5257e8f7a440a53dfc0.tar.bz2 |
am 5d92a933: Merge "x86_64: Adding new target"
* commit '5d92a933dcc1a9ddb99b8818c8a13e208ffc22ce':
x86_64: Adding new target
Diffstat (limited to 'target')
-rwxr-xr-x | target/board/generic_x86_64/BoardConfig.mk | 43 | ||||
-rw-r--r-- | target/board/generic_x86_64/README.txt | 8 | ||||
-rwxr-xr-x | target/board/generic_x86_64/device.mk | 31 | ||||
-rw-r--r-- | target/board/generic_x86_64/system.prop | 6 | ||||
-rw-r--r-- | target/product/AndroidProducts.mk | 2 | ||||
-rw-r--r-- | target/product/aosp_x86_64.mk | 18 | ||||
-rwxr-xr-x | target/product/full_x86_64.mk | 44 |
7 files changed, 152 insertions, 0 deletions
diff --git a/target/board/generic_x86_64/BoardConfig.mk b/target/board/generic_x86_64/BoardConfig.mk new file mode 100755 index 0000000..8a2fd13 --- /dev/null +++ b/target/board/generic_x86_64/BoardConfig.mk @@ -0,0 +1,43 @@ +# config.mk +# +# Product-specific compile-time definitions. +# + +# The generic product target doesn't have any hardware-specific pieces. +TARGET_NO_BOOTLOADER := true +TARGET_NO_KERNEL := true +TARGET_CPU_ABI := x86_64 +TARGET_ARCH := x86_64 +TARGET_ARCH_VARIANT := x86_64 +TARGET_PRELINK_MODULE := false + +# The IA emulator (qemu) uses the Goldfish devices +HAVE_HTC_AUDIO_DRIVER := true +BOARD_USES_GENERIC_AUDIO := true + +# no hardware camera +USE_CAMERA_STUB := true + +# customize the malloced address to be 16-byte aligned +BOARD_MALLOC_ALIGNMENT := 16 + +# 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) +WITH_DEXPREOPT := true +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 diff --git a/target/board/generic_x86_64/README.txt b/target/board/generic_x86_64/README.txt new file mode 100644 index 0000000..46b015b --- /dev/null +++ b/target/board/generic_x86_64/README.txt @@ -0,0 +1,8 @@ +The "generic_x86_64" product defines a non-hardware-specific IA target +without a kernel or bootloader. + +It can be used to build the entire user-level system, and +will work with the IA version of the emulator, + +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_x86_64/device.mk b/target/board/generic_x86_64/device.mk new file mode 100755 index 0000000..574ce4f --- /dev/null +++ b/target/board/generic_x86_64/device.mk @@ -0,0 +1,31 @@ +# +# 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 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_x86_64/system.prop b/target/board/generic_x86_64/system.prop new file mode 100644 index 0000000..137a0f9 --- /dev/null +++ b/target/board/generic_x86_64/system.prop @@ -0,0 +1,6 @@ +# +# system.prop for generic 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 a72d2f3..1a559be 100644 --- a/target/product/AndroidProducts.mk +++ b/target/product/AndroidProducts.mk @@ -53,6 +53,8 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/full_x86.mk \ $(LOCAL_DIR)/aosp_mips.mk \ $(LOCAL_DIR)/full_mips.mk \ + $(LOCAL_DIR)/aosp_x86_64.mk \ + $(LOCAL_DIR)/full_x86_64.mk \ $(LOCAL_DIR)/vbox_x86.mk \ $(LOCAL_DIR)/sdk.mk \ $(LOCAL_DIR)/sdk_x86.mk \ diff --git a/target/product/aosp_x86_64.mk b/target/product/aosp_x86_64.mk new file mode 100644 index 0000000..5a12c08 --- /dev/null +++ b/target/product/aosp_x86_64.mk @@ -0,0 +1,18 @@ +# +# Copyright 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, $(SRC_TARGET_DIR)/product/full_x86_64.mk) + +PRODUCT_NAME := aosp_x86_64 diff --git a/target/product/full_x86_64.mk b/target/product/full_x86_64.mk new file mode 100755 index 0000000..644f2a2 --- /dev/null +++ b/target/product/full_x86_64.mk @@ -0,0 +1,44 @@ +# +# 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 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. + +# If running on an emulator or some other device that has a LAN connection +# that isn't a wifi connection. This will instruct init.rc to enable the +# network connection so that you can use it with ADB + +$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_x86_64/device.mk) + +include $(SRC_TARGET_DIR)/product/emulator.mk + +ifdef NET_ETH0_STARTONBOOT + PRODUCT_PROPERTY_OVERRIDES += net.eth0.startonboot=1 +endif + +# Ensure we package the BIOS files too. +PRODUCT_PACKAGES += \ + bios.bin \ + vgabios-cirrus.bin \ + +# Overrides +PRODUCT_NAME := full_x86_64 +PRODUCT_DEVICE := generic_x86_64 +PRODUCT_BRAND := Android +PRODUCT_MODEL := AOSP on IA x86_64 Emulator |