u-boot: Reorder and update patches and bootenv fixes

Yocto does not apply patches by name, but instead it applies them
in the order that files are added to the SRC_URI variable.

Therefore move the common patch file to the top in the u-boot.inc file,
followed by the optional patches that are enabled via machine feature.
Update the patches so that they apply on that order.

Fix the loadaddr env variable to convert from an int.
Escape bootargs variables to keep the variable names and not have
them replaced during build time.

Change-Id: I28d469c643d66e4b11225f37c3331e471676aec5
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/meta-phosphor/common/recipes-bsp/u-boot/files/0001-config-ast-common-hack-bootopts.patch b/meta-phosphor/common/recipes-bsp/u-boot/files/0001-config-ast-common-hack-bootopts.patch
index d168769..f0895ce 100644
--- a/meta-phosphor/common/recipes-bsp/u-boot/files/0001-config-ast-common-hack-bootopts.patch
+++ b/meta-phosphor/common/recipes-bsp/u-boot/files/0001-config-ast-common-hack-bootopts.patch
@@ -9,7 +9,7 @@
  1 file changed, 6 insertions(+)
 
 diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h
-index 110c780070..6f2a50b854 100644
+index 15e1db4..e7fa6ed 100644
 --- a/include/configs/ast-common.h
 +++ b/include/configs/ast-common.h
 @@ -84,7 +84,10 @@
@@ -23,9 +23,9 @@
  
  #define CONFIG_AST_SPI_NOR    /* AST SPI NOR Flash */
  #define CONFIG_FMC_CS			1
-@@ -96,11 +99,14 @@
- #define CONFIG_ENV_OFFSET		0x60000	/* environment starts here  */
- #define CONFIG_ENV_SIZE			0x20000	/* Total Size of Environment Sector */
+@@ -99,11 +102,14 @@
+ #define CONFIG_ENV_SIZE			0x10000	/* Total Size of Environment Sector */
+ #define CONFIG_ENV_SIZE_REDUND		0x10000
  
 +#if 0
  #define CONFIG_BOOTCOMMAND	\
@@ -39,5 +39,5 @@
  
  #define ASPEED_ENV_SETTINGS \
 -- 
-2.13.0
+1.8.2.2