From 84c5f51867fca830cc08841dd4abaf593fe72bb3 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Wed, 15 Jun 2016 13:31:26 +0200 Subject: u-boot: get rid of obsolete patches Signed-off-by: Marcel Ziswiler Signed-off-by: Max Krummenacher --- .../files/board_stackcorruption_workaround.patch | 67 ---------------------- 1 file changed, 67 deletions(-) delete mode 100644 recipes-bsp/u-boot/files/board_stackcorruption_workaround.patch (limited to 'recipes-bsp/u-boot/files/board_stackcorruption_workaround.patch') diff --git a/recipes-bsp/u-boot/files/board_stackcorruption_workaround.patch b/recipes-bsp/u-boot/files/board_stackcorruption_workaround.patch deleted file mode 100644 index c2258e9..0000000 --- a/recipes-bsp/u-boot/files/board_stackcorruption_workaround.patch +++ /dev/null @@ -1,67 +0,0 @@ ---- git/board/toradex/common/board.c 2012-06-02 21:16:34.000000000 +0200 -+++ git/board/toradex/common/board.c 2012-06-03 19:04:03.000000000 +0200 -@@ -263,9 +271,7 @@ - }; - - #ifdef BOARD_LATE_INIT --#ifdef CONFIG_TRDX_CFG_BLOCK_OFFSET --static unsigned char *config_block; --#endif -+static unsigned char *config_block = NULL; - #endif - - #ifdef CONFIG_HW_WATCHDOG -@@ -504,7 +510,8 @@ - #ifdef BOARD_LATE_INIT - int board_late_init(void) - { -- char env_str[64]; -+ char env_str[256 ]; -+ - #ifdef CONFIG_TRDX_CFG_BLOCK_OFFSET - int do_saveenv = 0; - char *addr_str, *end; -@@ -517,6 +524,9 @@ - unsigned char toradex_oui[3] = { 0x00, 0x14, 0x2d }; - int valid = 0; - -+ unsigned int offset; -+ int ret; -+ - /* Allocate RAM area for config block */ - config_block = malloc(size); - if (!config_block) { -@@ -525,9 +535,6 @@ - } - - for (i = 0; i < 2; i++) { -- unsigned int offset; -- int ret; -- - if (i == 0) - offset = CONFIG_TRDX_CFG_BLOCK_OFFSET; - else -@@ -699,6 +706,10 @@ - unsigned short major = 0, minor = 0, release = 0; - size_t size = 4096; - -+ if(config_block == NULL) { -+ return 0; -+ } -+ - /* Parse revision information in config block */ - for (i = 0; i < (size - 8); i++) { - if (config_block[i] == 0x02 && config_block[i+1] == 0x40 && -@@ -731,6 +742,12 @@ - unsigned int serial = 0; - unsigned int serial_offset = 11; - -+ if(config_block == NULL) { -+ serialnr->low = 0; -+ serialnr->high = 0; -+ return; -+ } -+ - /* Get MAC address from config block */ - memcpy(&serial, config_block + serial_offset, 3); - serial = ntohl(serial); -- cgit v1.2.3