diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2015-03-05 11:58:30 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-03-06 07:43:10 +0100 |
commit | d95733943950139059ddd62c26b0bda9e240ca74 (patch) | |
tree | f34b9a4ec4135cb92005b27d9242acd61095e015 /scripts | |
parent | fbba349cd54b84d3050e6593541ea97cacfe022b (diff) | |
download | barebox-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')
-rwxr-xr-x | scripts/socfpga_import_preloader | 1 |
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 |