diff options
author | Jeffy Chen <jeffy.chen@rock-chips.com> | 2015-10-25 09:59:51 +0800 |
---|---|---|
committer | leozwang <leozwang@google.com> | 2015-10-28 15:48:14 -0700 |
commit | 3adb4b6b547edea75a1ecd5c9ca8c2451786964e (patch) | |
tree | c334ddb09732d388a461bf4049e5580d4e3910d7 | |
parent | 26cbb652476047a1b1a51d178e1fc3a959e68cb7 (diff) | |
download | kylin-3adb4b6b547edea75a1ecd5c9ca8c2451786964e.tar.gz |
kylin: Init version, base on dragonboard
Change-Id: Id1e7b32851ddc891c81daecb443e9ccf6e26bdc2
-rw-r--r-- | AndroidBoard.mk | 19 | ||||
-rw-r--r-- | BoardConfig.mk | 34 | ||||
-rw-r--r-- | base_product/AndroidProducts.mk | 21 | ||||
-rw-r--r-- | base_product/devicesetup.sh | 17 | ||||
-rw-r--r-- | base_product/kylin.mk | 26 | ||||
-rw-r--r-- | board-info.txt | 1 | ||||
-rw-r--r-- | fstab | 9 | ||||
-rwxr-xr-x | provision-device | 5 | ||||
-rw-r--r-- | sepolicy/file_contexts | 0 |
9 files changed, 132 insertions, 0 deletions
diff --git a/AndroidBoard.mk b/AndroidBoard.mk new file mode 100644 index 0000000..ddfeb1c --- /dev/null +++ b/AndroidBoard.mk @@ -0,0 +1,19 @@ +# +# Copyright 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. +# + +# This has to live here for now as the variables it requires are +# not read when BoardConfig.mk is parsed. +include device/generic/brillo/kernel.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..57532d5 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,34 @@ +# +# Copyright 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. +# + +# Select the SoC +$(call set_soc, rockchip, rk3036) + +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 268435456 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 134217728 +BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 + +TARGET_BOARD_INFO_FILE := device/rockchip/kylin/board-info.txt + +PRODUCT_COPY_FILES += \ + device/rockchip/kylin/fstab:root/fstab.${soc_name} \ + device/rockchip/kylin/provision-device:provision-device + +BOARD_SEPOLICY_DIRS += \ + device/rockchip/kylin/sepolicy + +# Must be defined at the end of the file +$(call add_device_packages) diff --git a/base_product/AndroidProducts.mk b/base_product/AndroidProducts.mk new file mode 100644 index 0000000..1b5788d --- /dev/null +++ b/base_product/AndroidProducts.mk @@ -0,0 +1,21 @@ +# +# Copyright 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. +# + +# This file is found by the build system. +# It defines the base product definition for device bring up. + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/kylin.mk diff --git a/base_product/devicesetup.sh b/base_product/devicesetup.sh new file mode 100644 index 0000000..2984485 --- /dev/null +++ b/base_product/devicesetup.sh @@ -0,0 +1,17 @@ +# +# Copyright 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. +# + +add_lunch_combo kylin-eng diff --git a/base_product/kylin.mk b/base_product/kylin.mk new file mode 100644 index 0000000..272790d --- /dev/null +++ b/base_product/kylin.mk @@ -0,0 +1,26 @@ +# +# Copyright 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, device/generic/brillo/brillo_base.mk) + +PRODUCT_NAME := kylin +PRODUCT_BRAND := Brillo + +PRODUCT_DEVICE := kylin + +# TODO: Install kylin-specific config file for weaved. +# PRODUCT_COPY_FILES += \ +# device/rockchip/kylin/base_product/weaved.conf:system/etc/weaved/weaved.conf diff --git a/board-info.txt b/board-info.txt new file mode 100644 index 0000000..a760025 --- /dev/null +++ b/board-info.txt @@ -0,0 +1 @@ +board=RK3036 @@ -0,0 +1,9 @@ +# 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/platform/1021c000.dwmmc/by-name/misc /misc emmc defaults defaults +/dev/block/platform/1021c000.dwmmc/by-name/cache /cache ext4 noatime,nosuid,nodev defaults +/dev/block/platform/1021c000.dwmmc/by-name/userdata /data ext4 noatime,nosuid,nodev defaults +/dev/block/platform/1021c000.dwmmc/by-name/system /system ext4 ro,barrier=1,discard wait diff --git a/provision-device b/provision-device new file mode 100755 index 0000000..c014869 --- /dev/null +++ b/provision-device @@ -0,0 +1,5 @@ +#!/bin/sh + +# TODO: add flash cmds +# fastboot \ +# flash loader ${ANDROID_BUILD_TOP}/device/rockchip/kylin/vendor_partitions/loader.bin \ diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/sepolicy/file_contexts |