Android系統新產品定製-0.1版(2)

來源:互聯網
上載者:User

  一、uboot管理
(1)配置
     make xxx_config
相當執行: ./mkconfig
然後產生:include/config.h config.mk
-------------------------------------------------
mkconfig:

cat << EOF >> config.h

#define CONFIG_BOARDDIR board/$BOARDDIR

#include <config_defaults.h>

#include <configs/$1.h>
           //$1 = xxx
#include <asm/config.h>
EOF
-------------------------------------------------
所以在include/configs/目錄下建立xxx.h檔案

make xxx_config是由uboot/Android.mk執行的。
--------------------------------------------------
uboot/Android.mk:

ifeq ($(strip $(TARGET_BOOT_FROM_NAND)),true)
+VC088X_VORTEX := false
+VC0881_VORTEX := true
+ifeq ($(strip $(VC088X_VORTEX)),true)
UBOOT_CONFIG_SRC_FILE := $(UBOOT_CONFIG_DIR)/vc088x_vortex_nand.h
+endif
+ifeq ($(strip $(VC0881_VORTEX)),true)
+UBOOT_CONFIG_SRC_FILE := $(UBOOT_CONFIG_DIR)/vc0881_vortex_nand.h
+endif
endif
---------------------------------------------------
(2)編譯
uboot/Android.mk:

@cp -f $(UBOOT_CONFIG_SRC_FILE) $(UBOOT_CONFIG_TARGET_FILE)
//cp -f vc088x_vortex_nand.h  vc088x_vortex.h
@make -C $(UBOOT_SRC_DIR)

二、kernel管理
(1)配置
     make menuconfig ->.config
kernel/Android.mk:

KERNEL_DEFCONFIG := vc0882_vortex_nand_defconfig //kernel/arch/arm/configs/vc0882_vortex_nand_defconfig
make -C $(KERNEL_SRC_DIR) $(KERNEL_DEFCONFIG)
(2)編譯
kernel/Android.mk:

make -C $(KERNEL_SRC_DIR) uImage
其中模組改動可以由Kconfig Makefile 來控制,目前沒有改動。

三、device管理
(1)添加lunch項目
device/vimicro/vortex/vendorsetup.sh:

+add_lunch_combo vortex_v970-userdebug

(2)添加“產品.mk”
device/vimicro/vortex/AndroidProducts.mk:

+$(LOCAL_DIR)/vortex_v970.mk

並且在device/vimicro/vortex/目錄下建立vortex_v970.mk檔案。

經測試,基本可以!
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.