[PATCH 1/2] scripts: socfpga: statify sys_mgr_init_table

Steffen Trumtrar s.trumtrar at pengutronix.de
Thu Mar 5 02:58:30 PST 2015


The preloader import-script misses the sys_mgr_init_table variable.
When multiple boards are build, this will lead to compile errors,
because the variable exists multiple times.

Signed-off-by: Steffen Trumtrar <s.trumtrar at pengutronix.de>
---
 scripts/socfpga_import_preloader | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/socfpga_import_preloader b/scripts/socfpga_import_preloader
index 9fc657e483e6..b08262cb6c83 100755
--- a/scripts/socfpga_import_preloader
+++ b/scripts/socfpga_import_preloader
@@ -29,6 +29,7 @@ copy_source() {
 	echo "	Fixing extern/static keywords..."
 	# Statify all global variables with missing static keyword
 	sed -i 's/^const /static const /g' $tgt
+	sed -i 's/^unsigned long sys_mgr_init_table/static unsigned long sys_mgr_init_table/g' $tgt
 
 	echo "	Remove unused defines..."
 	sed -i 's/\[CONFIG_HPS_PINMUX_NUM\]/\[\]/g' $tgt
-- 
2.1.4




More information about the barebox mailing list