Difference between revisions of "IoTGateway/BSP/Android/How to do about first porting"

From ESS-WIKI
Jump to: navigation, search
Line 15: Line 15:
 
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">&nbsp; &nbsp;(1)build/envsetup.sh<br/>&nbsp; &nbsp;(2)device/fsl/imx6/AndroidProducts.mk<br/>&nbsp; &nbsp;(3)device/fsl/imx6/vendorsetup.sh<br/>&nbsp; &nbsp;(4)device/fsl/imx6/rsb_6410_a1.mk<br/>&nbsp; &nbsp;(5)device/fsl/rsb_6410_a1</span></span>
 
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">&nbsp; &nbsp;(1)build/envsetup.sh<br/>&nbsp; &nbsp;(2)device/fsl/imx6/AndroidProducts.mk<br/>&nbsp; &nbsp;(3)device/fsl/imx6/vendorsetup.sh<br/>&nbsp; &nbsp;(4)device/fsl/imx6/rsb_6410_a1.mk<br/>&nbsp; &nbsp;(5)device/fsl/rsb_6410_a1</span></span>
  
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">In /android/build/envsetup.sh, please add your device in PRODUCT_CHOICES</span></span>
+
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">(1) In /build/envsetup.sh, please add your device in PRODUCT_CHOICES</span></span>
  
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">Example&nbsp;: Your device name is aaa_a1, please modify PRODUCT_CHOICES=(rsb4410_a1 rsb4410_a2 rsb4411_a1 aaa_a1)</span></span>
+
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">&nbsp; &nbsp; &nbsp; Example&nbsp;: Your device name is aaa_a1, please modify PRODUCT_CHOICES=(rsb4410_a1 rsb4410_a2 rsb4411_a1 aaa_a1)</span></span>
  
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">In /android/build/envsetup.sh, please add your device in PRODUCT_CHOICES Example&nbsp;:</span></span>
+
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">(2) In /device/fsl/imx6/AndroidProducts.mk, please add</span></span>$(LOCAL_DIR)/device_name.mk
  
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">Your device name is aaa_a1, please modify PRODUCT_CHOICES=(rsb4410_a1 rsb4410_a2 rsb4411_a1 aaa_a1)</span></span>
+
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">&nbsp; &nbsp; &nbsp; Example&nbsp;: Your device name is aaa_a1, please modify PRODUCT_CHOICES=(rsb4410_a1 rsb4410_a2 rsb4411_a1 aaa_a1)</span></span>
 +
 
 +
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">(3) In device/fsl/imx6/vendorsetup.sh, please add your device in PRODUCT_CHOICES</span></span>
 +
 
 +
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">&nbsp; &nbsp; &nbsp; Example&nbsp;: Your device name is aaa_a1, please modify PRODUCT_CHOICES=(rsb4410_a1 rsb4410_a2 rsb4411_a1 aaa_a1)</span></span>

Revision as of 04:31, 12 December 2016

How to do about first porting on new device in Android 6.0.1_2.1.0

Setup Ubuntu host computer

In Android 6.0.1_2.1.0, we push the advantech risc platfrom in github.

https://github.com/ADVANTECH-Corp

If you will be fast porting the new device in android 6.0.1_2.1.0, you can step by step to do.

1.U-boot : Add your device android defconfig.

2.Android  

   (1)build/envsetup.sh
   (2)device/fsl/imx6/AndroidProducts.mk
   (3)device/fsl/imx6/vendorsetup.sh
   (4)device/fsl/imx6/rsb_6410_a1.mk
   (5)device/fsl/rsb_6410_a1

(1) In /build/envsetup.sh, please add your device in PRODUCT_CHOICES

      Example : Your device name is aaa_a1, please modify PRODUCT_CHOICES=(rsb4410_a1 rsb4410_a2 rsb4411_a1 aaa_a1)

(2) In /device/fsl/imx6/AndroidProducts.mk, please add$(LOCAL_DIR)/device_name.mk

      Example : Your device name is aaa_a1, please modify PRODUCT_CHOICES=(rsb4410_a1 rsb4410_a2 rsb4411_a1 aaa_a1)

(3) In device/fsl/imx6/vendorsetup.sh, please add your device in PRODUCT_CHOICES

      Example : Your device name is aaa_a1, please modify PRODUCT_CHOICES=(rsb4410_a1 rsb4410_a2 rsb4411_a1 aaa_a1)