aboutsummaryrefslogtreecommitdiffstats
path: root/tools/flex/patches
Commit message (Collapse)AuthorAgeFilesLines
* tools: flex: fix segfault with glibc 2.26+Marko Ratkaj2017-09-241-0/+27
| | | | | | | | | Fix segmentation fault caused by implicit declaration of function 'reallocarray'. Added patch will enable reallocarray() prototype in glibc 2.26+ on Linux systems. This fix will be included in flex 2.6.5. Fixes LEDE issue: FS#1003 (Flex does not build with GCC 7.2) Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
* tools: flex: fix build with automake 1.15.1Jo-Philipp Wich2017-07-051-2/+2
| | | | | | | | | | | | | | | | After the update of GNU automake, the flex configure fails with configure.ac:31: error: version mismatch. This is Automake 1.15.1, configure.ac:31: but the definition used by this AM_INIT_AUTOMAKE configure.ac:31: comes from Automake 1.15. Apply the autoreconf host fixup to properly regenerate configure before to avoid triggering the version mismatch. Also refresh the patch while we're at it. Fixes FS#885. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools/flex: update to 2.6.3Hannu Nyman2017-05-251-1/+1
| | | | | | | | * update flex to 2.6.3 * download .tar.gz (as upstream has dropped .xz) * refresh patches Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* tools/flex: update to 2.6.1John Crispin2016-03-162-18/+13
| | | | | | | | | | | | Update flex to 2.6.1 * Flex has moved to Github, adjust download link * Remove patch that has been applied upstream * Disable building tests to avoid circular dependency to bison - disable also docs and examples at the same time Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> SVN-Revision: 49025
* flex: fix build error due to undefined library symbolsFelix Fietkau2014-03-121-0/+18
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39888
ground-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
--- a/arch/mips/ralink/of.c
+++ b/arch/mips/ralink/of.c
@@ -3,7 +3,7 @@
  * under the terms of the GNU General Public License version 2 as published
  * by the Free Software Foundation.
  *
- * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
+ * Copyright (C) 2008-2014 Imre Kaloz <kaloz@openwrt.org>
  * Copyright (C) 2008-2009 Gabor Juhos <juhosg@openwrt.org>
  * Copyright (C) 2013 John Crispin <blogic@openwrt.org>
  */
@@ -66,6 +66,17 @@ static int __init early_init_dt_find_mem
 	return 0;
 }
 
+static int chosen_dtb;
+
+static int __init early_init_dt_find_chosen(unsigned long node, const char *uname,
+				     int depth, void *data)
+{
+	if (depth == 1 && !strcmp(uname, "chosen"))
+		chosen_dtb = 1;
+
+	return 0;
+}
+
 extern struct boot_param_header __image_dtb;
 
 void __init plat_mem_setup(void)
@@ -78,7 +89,9 @@ void __init plat_mem_setup(void)
 	 */
 	__dt_setup_arch(&__image_dtb);
 
-	strlcpy(arcs_cmdline, boot_command_line, COMMAND_LINE_SIZE);
+	of_scan_flat_dt(early_init_dt_find_chosen, NULL);
+	if (chosen_dtb)
+		strlcpy(arcs_cmdline, boot_command_line, COMMAND_LINE_SIZE);
 
 	of_scan_flat_dt(early_init_dt_find_memory, NULL);
 	if (memory_dtb)