AnsweredAssumed Answered

When I Patch Code for i.MX , I get strange result

Question asked by quand guo on Jul 5, 2013
Latest reply on Jul 9, 2013 by SergioSolis

I do this patch according to the Android_User_Guide.pdf

 

pwd

cd /ext/myandroid_r13

pwd

source /ext/android_bak/r13/imx-android-13.4.1/code/13.4.1/and_patch.sh 

help  

c_patch /ext/android_bak/r13/imx-android-13.4.1/code/13.4.1 imx_13.4.1

cd /host/myandroid

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ./repo

chmod a+x ./repo

./repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.4_r1.1

cp /home/hkbdm/r13/imx-android-13.4.1/code/13.4.1/default.xml .repo/manifests/default.xml

./repo sync -f

 

 

the result:

 

+ /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:4759: new blank line at EOF. + warning: 2 lines add whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:261: new blank line at EOF. + warning: 1 line adds whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:92: trailing whitespace. warning: 1 line adds whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:128: trailing whitespace. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:139: trailing whitespace. warning: 2 lines add whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:248: new blank line at EOF. + warning: 1 line adds whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:33: trailing whitespace.                /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:117: trailing whitespace.        warning: 2 lines add whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:19: new blank line at EOF. + warning: 1 line adds whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:51: trailing whitespace.   warning: 1 line adds whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:127: trailing whitespace.                /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:238: trailing whitespace.   /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:283: trailing whitespace.        warning: 3 lines add whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:2903: trailing whitespace.     return devices;           /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:3023: new blank line at EOF. + warning: 2 lines add whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:519: trailing whitespace.             CAMERA_LOG_ERR("native_window_set_buffers_geometry failed:%s(%d)", /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:1985: trailing whitespace. #define CAMERA_LOG_RUNTIME(format, ...) /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:2507: trailing whitespace.         CAPTURE_DEVICE_RET ret = CAPTURE_DEVICE_ERR_NONE; /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:2549: trailing whitespace.         CAPTURE_DEVICE_RET ret = CAPTURE_DEVICE_ERR_NONE; /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:2757: trailing whitespace.         CAPTURE_DEVICE_RET ret = CAPTURE_DEVICE_ERR_NONE; warning: squelched 8 whitespace errors warning: 13 lines add whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:103: trailing whitespace.                         CAMERA_LOG_RUNTIME("dev_node: %s, sensor name: %s", warning: 1 line adds whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:22: trailing whitespace.         err = mNativeWindow->set_usage(mNativeWindow, warning: 1 line adds whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:2288: new blank line at EOF. + warning: 1 line adds whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:515: trailing whitespace.         //set mDoCsc /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:616: trailing whitespace.     //stores nedd csc format. warning: 2 lines add whitespace errors. /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:69: trailing whitespace.     .supported_devices   = AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET | AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET | /ext/myandroid_r13/hardware/imx/.git/rebase-apply/patch:200: trailing whitespace. warning: 2 lines add whitespace errors. Applying patch to hardware/ril /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:76: trailing whitespace. // flag for pppd status. 1: started; 0: stoped /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:175: trailing whitespace.   // Should already get local IP address from PPP link after IPCP negotation /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:176: trailing whitespace.   // system property net.ppp0.local-ip is created by PPPD in "ip-up" script /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:185: trailing whitespace.      response[2] = local_ip; /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:187: trailing whitespace.      break; warning: squelched 1 whitespace error warning: 6 lines add whitespace errors. /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:41: trailing whitespace.         /* Some HUAWEI USB datacards (e.g. E180) bootup and attach to network a little bit slowly(e.g. 20s). /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:53: trailing whitespace.         LOGD ("Will delay RIL initialization for %d seconds", TIMEVAL_DELAYINIT.tv_sec); warning: 2 lines add whitespace errors. /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:655: new blank line at EOF. + warning: 1 line adds whitespace errors. /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:17: trailing whitespace.   LOGD ("Will delay RIL initialization for %d seconds", TIMEVAL_DELAYINIT.tv_sec); warning: 1 line adds whitespace errors. /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:102: trailing whitespace.             //Make a lock of s_commandmutex for different thread access for /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:111: trailing whitespace. warning: 2 lines add whitespace errors. /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:25: trailing whitespace.                /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:101: trailing whitespace.    /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:113: trailing whitespace.    /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:147: trailing whitespace.     //Need recover after read /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:204: trailing whitespace.        warning: squelched 1 whitespace error warning: 6 lines add whitespace errors. /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:27: trailing whitespace.    /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:33: trailing whitespace.    warning: 2 lines add whitespace errors. /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:478: space before tab in indent.   err = at_tok_nextstr(&line, &dir); warning: 1 line adds whitespace errors. /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:126: trailing whitespace. /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:135: trailing whitespace. /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:190: trailing whitespace. /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:650: trailing whitespace. /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:654: trailing whitespace. warning: squelched 3 whitespace errors warning: 8 lines add whitespace errors. /ext/myandroid_r13/hardware/ril/.git/rebase-apply/patch:1262: new blank line at EOF. + warning: 1 line adds whitespace errors. Applying patch to libcore Applying patch to packages/apps/fsl_imx_demo /ext/myandroid_r13/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:12: trailing whitespace. It  is not only for E-Ink app, but also some other app we have done for demo usage. warning: 1 line adds whitespace errors. /ext/myandroid_r13/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:95: trailing whitespace.                /ext/myandroid_r13/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:96: trailing whitespace.                /ext/myandroid_r13/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:529: trailing whitespace.    /ext/myandroid_r13/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:533: space before tab in indent.     mContext = context; /ext/myandroid_r13/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:539: space before tab in indent.     mContext = context; warning: squelched 159 whitespace errors warning: 164 lines add whitespace errors. Applying patch to packages/apps/Browser Applying patch to packages/apps/Camera Applying patch to packages/apps/Gallery Applying patch to packages/apps/Gallery2 Applying patch to packages/apps/Launcher2 Applying patch to packages/apps/Music Applying patch to packages/apps/Settings /ext/myandroid_r13/packages/apps/Settings/.git/rebase-apply/patch:83: trailing whitespace.                /ext/myandroid_r13/packages/apps/Settings/.git/rebase-apply/patch:99: trailing whitespace.      /ext/myandroid_r13/packages/apps/Settings/.git/rebase-apply/patch:115: trailing whitespace.      /ext/myandroid_r13/packages/apps/Settings/.git/rebase-apply/patch:131: trailing whitespace.      /ext/myandroid_r13/packages/apps/Settings/.git/rebase-apply/patch:132: trailing whitespace.                warning: squelched 79 whitespace errors warning: 84 lines add whitespace errors. /ext/myandroid_r13/packages/apps/Settings/.git/rebase-apply/patch:30: trailing whitespace.                /ext/myandroid_r13/packages/apps/Settings/.git/rebase-apply/patch:270: trailing whitespace.     private static final int MAX_DISPLAY_DEVICE = 6;   /ext/myandroid_r13/packages/apps/Settings/.git/rebase-apply/patch:642: trailing whitespace.                 updateDisplayColorDepthPreferenceDescription(dispid, currentDisplayColorDepth);      warning: 3 lines add whitespace errors. /ext/myandroid_r13/packages/apps/Settings/.git/rebase-apply/patch:130: trailing whitespace.                 int value = Integer.parseInt(objValue.toString());           warning: 1 line adds whitespace errors. /ext/myandroid_r13/packages/apps/Settings/.git/rebase-apply/patch:160: trailing whitespace.        /ext/myandroid_r13/packages/apps/Settings/.git/rebase-apply/patch:164: trailing whitespace.                 mDisplayManager.setDisplayKeepRate(dispid, value);        warning: 2 lines add whitespace errors. Applying patch to packages/apps/SoundRecorder Applying patch to packages/apps/VideoEditor Applying patch to packages/inputmethods/PinyinIME Applying patch to packages/providers/MediaProvider Applying patch to packages/wallpapers/Basic Applying patch to packages/wallpapers/MagicSmoke Applying patch to prebuilt /ext/myandroid_r13/prebuilt/.git/rebase-apply/patch:119: trailing whitespace.     echo "flashing android images..."   /ext/myandroid_r13/prebuilt/.git/rebase-apply/patch:174: trailing whitespace. #   vi mksdcard-android.sh /ext/myandroid_r13/prebuilt/.git/rebase-apply/patch:188: trailing whitespace. #   Description   : Split appart an Android boot image created /ext/myandroid_r13/prebuilt/.git/rebase-apply/patch:192: trailing whitespace. #                   Thanks to alansj on xda-developers.com for /ext/myandroid_r13/prebuilt/.git/rebase-apply/patch:193: trailing whitespace. #                   identifying the format in bootimg.h and warning: squelched 2 whitespace errors warning: 7 lines add whitespace errors. Applying patch to system/core /ext/myandroid_r13/system/core/.git/rebase-apply/patch:77: new blank line at EOF. + warning: 1 line adds whitespace errors. /ext/myandroid_r13/system/core/.git/rebase-apply/patch:48: new blank line at EOF. + warning: 1 line adds whitespace errors. Applying patch to system/extras Applying patch to system/netd /ext/myandroid_r13/system/netd/.git/rebase-apply/patch:663: trailing whitespace.    /ext/myandroid_r13/system/netd/.git/rebase-apply/patch:684: trailing whitespace. #ifdef ATH_WIFI /ext/myandroid_r13/system/netd/.git/rebase-apply/patch:710: trailing whitespace. #ifdef ATH_WIFI /ext/myandroid_r13/system/netd/.git/rebase-apply/patch:723: trailing whitespace. #ifdef ATH_WIFI /ext/myandroid_r13/system/netd/.git/rebase-apply/patch:760: trailing whitespace.     strcpy(mBuf, "abcdefghijklmnopqrstuvwxyz");   warning: squelched 5 whitespace errors warning: 10 lines add whitespace errors. /ext/myandroid_r13/system/netd/.git/rebase-apply/patch:758: trailing whitespace.    warning: 1 line adds whitespace errors. Applying patch to system/vold Applying patch to system/wlan/atheros /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:501: trailing whitespace. # /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:511: trailing whitespace. # /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:576: trailing whitespace. # backup EEPROM data to a file,the file name is the option,if the filename not specified,using last part of MAC address as the file name /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:582: trailing whitespace. sudo $IMAGEPATH/eeprom -r -f $1.epm /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:2769: trailing whitespace. # warning: squelched 4303 whitespace errors warning: 4308 lines add whitespace errors. /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:36: trailing whitespace.     printf("%s", buffer);   warning: 1 line adds whitespace errors. /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:1027: trailing whitespace. # /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:1037: trailing whitespace. # /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:2425: trailing whitespace. #define AR6000_XIOCTL_WMI_SET_QOS_SUPP                  148 /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:2437: trailing whitespace. #define AR6000_XIOCTL_SET_BT_HW_POWER_STATE             156 /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:2438: trailing whitespace. #define AR6000_XIOCTL_GET_BT_HW_POWER_STATE             157 warning: squelched 4657 whitespace errors warning: 4662 lines add whitespace errors. /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:102: trailing whitespace.    /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:119: trailing whitespace.     mkdir /data/system/wpa_supplicant /data/system/hostapd /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:137: trailing whitespace.     else /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:155: trailing whitespace.     fi /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:179: trailing whitespace.     fi  warning: squelched 11 whitespace errors warning: 16 lines add whitespace errors. /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:263: trailing whitespace. // /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:792: trailing whitespace. // /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:942: trailing whitespace. /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:1013: trailing whitespace. // /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:1061: trailing whitespace. // warning: squelched 122 whitespace errors warning: 127 lines add whitespace errors. /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:15730: trailing whitespace. # /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:15740: trailing whitespace. # /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:15822: trailing whitespace. // /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:15832: trailing whitespace. // /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:15885: trailing whitespace. // warning: squelched 3625 whitespace errors warning: 3630 lines add whitespace errors. /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:12: new blank line at EOF. + warning: 1 line adds whitespace errors. /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:243484: trailing whitespace. # new relase of compat-wireless-2.6 OR when the user updates the /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:243502: trailing whitespace.   @$(MODPROBE) -l ath3k      /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:243540: trailing whitespace.   @$(MODPROBE) -l ath3k      /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:243617: trailing whitespace.   @echo /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:243698: trailing whitespace.   @$(MODPROBE) -l ath3k          warning: squelched 2585 whitespace errors warning: 2590 lines add whitespace errors. /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:15: trailing whitespace. # /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:78: trailing whitespace. endif /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:107: trailing whitespace. ATH_ANDROID_BUILD_FLAGS += -DATH6KL_CONFIG_HIF_VIRTUAL_SCATTER /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:108: trailing whitespace. endif warning: 4 lines add whitespace errors. /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:11544: trailing whitespace.   REG_RULE(2457, 2482, 20, 3, 20, /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:11545: trailing whitespace.   NL80211_RRF_PASSIVE_SCAN | /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:11547: trailing whitespace.   REG_RULE(2474, 2494, 20, 3, 20, /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:11548: trailing whitespace.   NL80211_RRF_PASSIVE_SCAN | /ext/myandroid_r13/system/wlan/atheros/.git/rebase-apply/patch:11549: trailing whitespace.   NL80211_RRF_NO_IBSS | warning: squelched 169 whitespace errors warning: 174 lines add whitespace errors. Applying patch to system/dispd /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:53: trailing whitespace. LOCAL_CFLAGS := /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:246: trailing whitespace.    /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:423: trailing whitespace.         LOGE("Unable to listen on fd '%d' for socket '%s': %s", /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:454: trailing whitespace.      * Bootstrap /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:877: trailing whitespace.     return 0;  warning: squelched 6 whitespace errors warning: 11 lines add whitespace errors. /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:175: trailing whitespace.     { "sii9022", handle_sii9022_event }, /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:212: trailing whitespace.     } /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:130: new blank line at EOF. + warning: 3 lines add whitespace errors. /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:242: trailing whitespace.     { "sii902x", handle_sii9022_event }, /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:284: trailing whitespace. * Uevent Handlers for dvi plugin/plugout /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:299: trailing whitespace.     } /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:153: new blank line at EOF. + warning: 4 lines add whitespace errors. /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:24: trailing whitespace.     { "switch", NULL, handle_switch_event }, /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:26: trailing whitespace.     { "sii902x", "/devices/platform/sii902x.0",handle_sii9022_event }, warning: 2 lines add whitespace errors. /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:153: new blank line at EOF. + warning: 1 line adds whitespace errors. /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:139: trailing whitespace.    /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:218: trailing whitespace.    /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:307: trailing whitespace.     send_msg_with_code(enabled ? InterfaceConnected: InterfaceDisconnected, /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:334: trailing whitespace.     send_msg_with_code(enabled ? InterfaceEnabled: InterfaceDisabled, /ext/myandroid_r13/system/dispd/.git/rebase-apply/patch:359: trailing whitespace.         rc = send_msg_with_code(disp_connected_get(i) ? InterfaceConnected: InterfaceDisconnected, warning: squelched 35 whitespace errors warning: 40 lines add whitespace errors. ************************************************************* Success: Now you can build android code for FSL i.MX platform ************************************************************* hkbdm@ubuntu:/ext/android_bak/r13$

 

 

what happens ?

why it show "Success: Now you can build android code for FSL i.MX platform ''

Outcomes