Home | History | Annotate | Download | only in generic_mips
      1 #
      2 # Copyright (C) 2011 The Android Open Source Project
      3 #
      4 # Licensed under the Apache License, Version 2.0 (the "License");
      5 # you may not use this file except in compliance with the License.
      6 # You may obtain a copy of the License at
      7 #
      8 #      http://www.apache.org/licenses/LICENSE-2.0
      9 #
     10 # Unless required by applicable law or agreed to in writing, software
     11 # distributed under the License is distributed on an "AS IS" BASIS,
     12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 # See the License for the specific language governing permissions and
     14 # limitations under the License.
     15 #
     16 # BoardConfig.mk
     17 #
     18 # Product-specific compile-time definitions.
     19 #
     20 
     21 # The generic product target doesn't have any hardware-specific pieces.
     22 TARGET_NO_BOOTLOADER := true
     23 TARGET_NO_KERNEL := true
     24 
     25 TARGET_ARCH := mips
     26 ifeq (,$(TARGET_ARCH_VARIANT))
     27 TARGET_ARCH_VARIANT := mips32r2-fp
     28 endif
     29 TARGET_CPU_ABI  := mips
     30 
     31 # Make TARGET_CPU_VARIANT the same as TARGET_ARCH_VARIANT
     32 TARGET_CPU_VARIANT := $(TARGET_ARCH_VARIANT)
     33 
     34 HAVE_HTC_AUDIO_DRIVER := true
     35 BOARD_USES_GENERIC_AUDIO := true
     36 
     37 # no hardware camera
     38 USE_CAMERA_STUB := true
     39 
     40 # Enable dex-preoptimization to speed up the first boot sequence
     41 # of an SDK AVD. Note that this operation only works on Linux for now
     42 ifeq ($(HOST_OS),linux)
     43   ifeq ($(WITH_DEXPREOPT),)
     44     WITH_DEXPREOPT := true
     45     WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false
     46   endif
     47 endif
     48 
     49 TARGET_USES_HWC2 := true
     50 NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
     51 
     52 # Build OpenGLES emulation guest and host libraries
     53 BUILD_EMULATOR_OPENGL := true
     54 BUILD_QEMU_IMAGES := true
     55 
     56 # Build and enable the OpenGL ES View renderer. When running on the emulator,
     57 # the GLES renderer disables itself if host GL acceleration isn't available.
     58 USE_OPENGL_RENDERER := true
     59 
     60 TARGET_USERIMAGES_USE_EXT4 := true
     61 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648  # 2 GB
     62 BOARD_USERDATAIMAGE_PARTITION_SIZE := 734003200
     63 TARGET_COPY_OUT_VENDOR := vendor
     64 # ~100 MB vendor image. Please adjust system image / vendor image sizes
     65 # when finalizing them.
     66 BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000
     67 BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
     68 BOARD_FLASH_BLOCK_SIZE := 512
     69 TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
     70 DEVICE_MATRIX_FILE   := device/generic/goldfish/compatibility_matrix.xml
     71 
     72 BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy
     73 
     74 # Enable A/B update
     75 TARGET_NO_RECOVERY := true
     76 BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
     77