summaryrefslogtreecommitdiffstats
path: root/scripts/socfpga_get_sequencer
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2015-02-23 10:15:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-03-02 07:43:25 +0100
commit093dd1e7befa01aff30c5849994e4195331812fb (patch)
tree166785417f8ef464cec68b0447eb1aa147dd8936 /scripts/socfpga_get_sequencer
parente9cd1542ccd193f4bd6a6a57e5f0a143759eb997 (diff)
downloadbarebox-093dd1e7befa01aff30c5849994e4195331812fb.tar.gz
barebox-093dd1e7befa01aff30c5849994e4195331812fb.tar.xz
scripts: socfpga: add coccinelle magic
Use coccinelle to cleanup the imported u-boot code some more. This will remove: - debugging macros (TCL_RPT, BFM_STAGE, ALTERA_ASSERT) - empty if/else/for blocks resulting from macro deletion - some unused functions (scc_mgr_xxx) Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/socfpga_get_sequencer')
-rwxr-xr-xscripts/socfpga_get_sequencer3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/socfpga_get_sequencer b/scripts/socfpga_get_sequencer
index de12b35b5d..5e4eb2d0c4 100755
--- a/scripts/socfpga_get_sequencer
+++ b/scripts/socfpga_get_sequencer
@@ -46,6 +46,9 @@ copy_source() {
echo " Automated readability fixup..."
indent -npro -kr -i8 -ts8 -sob -l100 -ss -ncs -cp1 -il0 $tgt
+
+ echo " Running coccinelle cleanups..."
+ spatch -sp_file scripts/coccinelle/misc/altera_sequencer.cocci -in_place arch/arm/mach-socfpga/include/mach
}
copy_source ${ubootsrc}/board/altera/socfpga/sdram/sequencer.c arch/arm/mach-socfpga/include/mach/sequencer.c