diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-07-19 07:28:24 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-07-19 07:28:24 +0000 |
commit | 8dfdfa09a42e157cd03a6a940919b41863f00d40 (patch) | |
tree | d2b5ee7a5784bfe230ded6eb01317147627da3bf | |
parent | c2e8fa7d294d2b83bbe6054dd7b94139517e8637 (diff) | |
parent | 582b0c6c51c98a5261f9fe296238b1a1747ea590 (diff) | |
download | device_generic_uml-8dfdfa09a42e157cd03a6a940919b41863f00d40.tar.gz device_generic_uml-8dfdfa09a42e157cd03a6a940919b41863f00d40.tar.bz2 device_generic_uml-8dfdfa09a42e157cd03a6a940919b41863f00d40.zip |
release-request-bd6aa7dd-7b02-4794-942c-14599bf61208-for-git_oc-mr1-release-4193791 snap-temp-L98700000083613807android-wear-8.1.0_r1android-vts-8.1_r9android-vts-8.1_r8android-vts-8.1_r7android-vts-8.1_r6android-vts-8.1_r5android-vts-8.1_r4android-vts-8.1_r3android-vts-8.1_r13android-vts-8.1_r12android-vts-8.1_r11android-vts-8.1_r10android-cts-8.1_r9android-cts-8.1_r8android-cts-8.1_r7android-cts-8.1_r6android-cts-8.1_r5android-cts-8.1_r4android-cts-8.1_r3android-cts-8.1_r20android-cts-8.1_r2android-cts-8.1_r19android-cts-8.1_r18android-cts-8.1_r17android-cts-8.1_r16android-cts-8.1_r15android-cts-8.1_r14android-cts-8.1_r13android-cts-8.1_r12android-cts-8.1_r11android-cts-8.1_r10android-cts-8.1_r1android-8.1.0_r9android-8.1.0_r80android-8.1.0_r8android-8.1.0_r79android-8.1.0_r78android-8.1.0_r77android-8.1.0_r76android-8.1.0_r75android-8.1.0_r74android-8.1.0_r73android-8.1.0_r72android-8.1.0_r71android-8.1.0_r70android-8.1.0_r7android-8.1.0_r69android-8.1.0_r68android-8.1.0_r67android-8.1.0_r66android-8.1.0_r65android-8.1.0_r64android-8.1.0_r63android-8.1.0_r62android-8.1.0_r61android-8.1.0_r60android-8.1.0_r6android-8.1.0_r53android-8.1.0_r52android-8.1.0_r51android-8.1.0_r50android-8.1.0_r5android-8.1.0_r48android-8.1.0_r47android-8.1.0_r46android-8.1.0_r45android-8.1.0_r43android-8.1.0_r42android-8.1.0_r41android-8.1.0_r40android-8.1.0_r4android-8.1.0_r39android-8.1.0_r38android-8.1.0_r37android-8.1.0_r36android-8.1.0_r35android-8.1.0_r33android-8.1.0_r32android-8.1.0_r31android-8.1.0_r30android-8.1.0_r3android-8.1.0_r29android-8.1.0_r28android-8.1.0_r27android-8.1.0_r26android-8.1.0_r25android-8.1.0_r23android-8.1.0_r22android-8.1.0_r21android-8.1.0_r20android-8.1.0_r2android-8.1.0_r19android-8.1.0_r18android-8.1.0_r17android-8.1.0_r16android-8.1.0_r15android-8.1.0_r14android-8.1.0_r13android-8.1.0_r12android-8.1.0_r11android-8.1.0_r10android-8.1.0_r1security-oc-mr1-releaseoreo-security-releaseoreo-mr1-wear-releaseoreo-mr1-vts-releaseoreo-mr1-security-releaseoreo-mr1-s1-releaseoreo-mr1-releaseoreo-mr1-cuttlefish-testingoreo-mr1-cts-releaseoreo-m8-releaseoreo-m7-releaseoreo-m6-s4-releaseoreo-m6-s3-releaseoreo-m6-s2-releaseoreo-m5-releaseoreo-m4-s9-releaseoreo-m4-s8-releaseoreo-m4-s7-releaseoreo-m4-s6-releaseoreo-m4-s5-releaseoreo-m4-s4-releaseoreo-m4-s3-releaseoreo-m4-s2-releaseoreo-m4-s12-releaseoreo-m4-s11-releaseoreo-m4-s10-releaseoreo-m4-s1-releaseoreo-m3-releaseoreo-m2-s5-releaseoreo-m2-s4-releaseoreo-m2-s3-releaseoreo-m2-s2-releaseoreo-m2-s1-releaseoreo-m2-release
Change-Id: Ia699ec83ac1559646600b7c0e26c74ead746c997
-rw-r--r-- | AndroidProducts.mk | 18 | ||||
-rw-r--r-- | BoardConfig.mk | 22 | ||||
-rw-r--r-- | fstab.uml | 8 | ||||
-rw-r--r-- | init.uml.rc | 2 | ||||
-rw-r--r-- | surfaceflinger.rc | 12 | ||||
-rw-r--r-- | uml.mk | 29 | ||||
-rwxr-xr-x | vendorsetup.sh | 1 |
7 files changed, 92 insertions, 0 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..369b2d4 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,18 @@ +# +# Copyright (C) 2017 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)/uml.mk
\ No newline at end of file diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..b6eb431 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,22 @@ +# +# 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_USER_MODE_LINUX := true + +TARGET_USES_64_BIT_BINDER := true + +TARGET_USERIMAGES_USE_EXT4 := true +# Let UML mount userdata.img in a non-sparse format +TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true + +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 786432000 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 +BOARD_FLASH_BLOCK_SIZE := 512 diff --git a/fstab.uml b/fstab.uml new file mode 100644 index 0000000..1131f38 --- /dev/null +++ b/fstab.uml @@ -0,0 +1,8 @@ +# Android fstab file. +#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags> +# The filesystem that contains the filesystem checker binary (typically /system) cannot +# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK +/dev/block/ubda /system ext4 ro wait +/dev/block/ubdb /data ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait,check +# When UML sees type "hostfs", it will mount the hostfs to the mount point instead of checking the <src> +none /host hostfs defaults none diff --git a/init.uml.rc b/init.uml.rc new file mode 100644 index 0000000..e5b5d7d --- /dev/null +++ b/init.uml.rc @@ -0,0 +1,2 @@ +on fs + mount_all ./fstab.uml diff --git a/surfaceflinger.rc b/surfaceflinger.rc new file mode 100644 index 0000000..0f2cb32 --- /dev/null +++ b/surfaceflinger.rc @@ -0,0 +1,12 @@ +# This custom surfaceflinger.rc simply has `disabled' appended to it. +# Since we are using UML without a screen, and embedded.mk is the +# smallest mk file but still contains surfaceflinger, including this +# custom surfaceflinger.rc will disable surfaceflinger from running. + +service surfaceflinger /system/bin/surfaceflinger + class core + user system + group graphics drmrpc readproc + onrestart restart zygote + writepid /dev/stune/foreground/tasks + disabled @@ -0,0 +1,29 @@ +# Copyright (C) 2017 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, $(SRC_TARGET_DIR)/product/embedded.mk) + +PRODUCT_NAME := uml +PRODUCT_DEVICE := uml +PRODUCT_BRAND := Android +PRODUCT_MODEL := UML for x86_64 + +# default is nosdcard, S/W button enabled in resource +DEVICE_PACKAGE_OVERLAYS := device/generic/x86/overlay +PRODUCT_CHARACTERISTICS := nosdcard + +PRODUCT_COPY_FILES += $(LOCAL_PATH)/fstab.uml:root/fstab.uml +PRODUCT_COPY_FILES += $(LOCAL_PATH)/init.uml.rc:root/init.uml.rc +PRODUCT_COPY_FILES += $(LOCAL_PATH)/surfaceflinger.rc:system/etc/init/surfaceflinger.rc diff --git a/vendorsetup.sh b/vendorsetup.sh new file mode 100755 index 0000000..fd5fc0b --- /dev/null +++ b/vendorsetup.sh @@ -0,0 +1 @@ +add_lunch_combo uml-userdebug |