9
0
Fork 0

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>
This commit is contained in:
Steffen Trumtrar 2015-03-05 11:58:30 +01:00 committed by Sascha Hauer
parent fbba349cd5
commit d957339439
1 changed files with 1 additions and 0 deletions

View File

@ -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