Changeset 2040


Ignore:
Timestamp:
05/19/07 07:55:47 (6 years ago)
Author:
laforge
Message:

get_board_rev() is not universally present, this patch fixes the dfu dependency on it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/u-boot/patches/uboot-dfu.patch

    r2036 r2040  
    100100--- /dev/null 
    101101+++ u-boot/drivers/usbdfu.c 
    102 @@ -0,0 +1,1066 @@ 
     102@@ -0,0 +1,1069 @@ 
    103103+/* 
    104104+ * (C) 2007 by OpenMoko, Inc. 
     
    197197+static int dfu_trailer_matching(const struct uboot_dfu_trailer *trailer) 
    198198+{ 
    199 +       if (trailer->magic == UBOOT_DFU_TRAILER_MAGIC && 
    200 +           trailer->version == UBOOT_DFU_TRAILER_V1 && 
    201 +           trailer->vendor == CONFIG_USBD_VENDORID && 
    202 +           (trailer->product == CONFIG_USBD_PRODUCTID_CDCACM || 
    203 +            trailer->product == CONFIG_USBD_PRODUCTID_GSERIAL) && 
    204 +           trailer->revision == get_board_rev()) 
    205 +               return 1; 
    206 + 
    207 +       return 0; 
     199+       if (trailer->magic != UBOOT_DFU_TRAILER_MAGIC || 
     200+           trailer->version != UBOOT_DFU_TRAILER_V1 || 
     201+           trailer->vendor != CONFIG_USBD_VENDORID || 
     202+           (trailer->product != CONFIG_USBD_PRODUCTID_CDCACM && 
     203+            trailer->product != CONFIG_USBD_PRODUCTID_GSERIAL)) 
     204+               return 0; 
     205+#ifdef CONFIG_REVISION_TAG 
     206+       if (trailer->revision != get_board_rev()) 
     207+               return 0; 
     208+#endif 
     209+ 
     210+       return 1; 
    208211+} 
    209212+ 
Note: See TracChangeset for help on using the changeset viewer.