summaryrefslogtreecommitdiffstats
path: root/scripts/socfpga_import_preloader
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2015-03-05 11:58:30 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-03-06 07:43:10 +0100
commitd95733943950139059ddd62c26b0bda9e240ca74 (patch)
treef34b9a4ec4135cb92005b27d9242acd61095e015 /scripts/socfpga_import_preloader
parentfbba349cd54b84d3050e6593541ea97cacfe022b (diff)
downloadbarebox-d95733943950139059ddd62c26b0bda9e240ca74.tar.gz
barebox-d95733943950139059ddd62c26b0bda9e240ca74.tar.xz
scripts: socfpga: statify sys_mgr_init_table
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@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/socfpga_import_preloader')
-rwxr-xr-xscripts/socfpga_import_preloader1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/socfpga_import_preloader b/scripts/socfpga_import_preloader
index 9fc657e483..b08262cb6c 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