summaryrefslogtreecommitdiff
path: root/target/linux/coldfire/patches/001-mcfv4e_checkfiles_script.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2009-06-23 21:04:37 +0000
committerImre Kaloz <kaloz@openwrt.org>2009-06-23 21:04:37 +0000
commitc49f135f72f98633653300bab5b0ac993b03c6be (patch)
tree50929b27bcea9ab4dc74b041d6e90967473301fa /target/linux/coldfire/patches/001-mcfv4e_checkfiles_script.patch
parent50f2abfa16a2b509955312d1776beeece662c61b (diff)
downloadmtk-20170518-c49f135f72f98633653300bab5b0ac993b03c6be.zip
mtk-20170518-c49f135f72f98633653300bab5b0ac993b03c6be.tar.gz
mtk-20170518-c49f135f72f98633653300bab5b0ac993b03c6be.tar.bz2
use broken-out patches for the coldfire to make it easier to follow differences against the bsp
SVN-Revision: 16547
Diffstat (limited to 'target/linux/coldfire/patches/001-mcfv4e_checkfiles_script.patch')
-rw-r--r--target/linux/coldfire/patches/001-mcfv4e_checkfiles_script.patch94
1 files changed, 94 insertions, 0 deletions
diff --git a/target/linux/coldfire/patches/001-mcfv4e_checkfiles_script.patch b/target/linux/coldfire/patches/001-mcfv4e_checkfiles_script.patch
new file mode 100644
index 0000000..16b8536
--- /dev/null
+++ b/target/linux/coldfire/patches/001-mcfv4e_checkfiles_script.patch
@@ -0,0 +1,94 @@
+From d54d785a28afb65811c5d5ad727c57233deb6f60 Mon Sep 17 00:00:00 2001
+From: Kurt Mahan <kmahan@freescale.com>
+Date: Wed, 31 Oct 2007 16:36:51 -0600
+Subject: [PATCH] Scripts to allow running files through checkpatch.pl
+
+Scripts based on scripts/checkfiles that are in various trees.
+
+These should not be sent up because there are already patches from
+the original script author.
+
+LTIBName: mcfv4e-checkfiles-script
+Signed-off-by: Kurt Mahan <kmahan@freescale.com>
+---
+ scripts/checkfiles | 35 +++++++++++++++++++++++++++++++++++
+ scripts/checkfilesterse | 34 ++++++++++++++++++++++++++++++++++
+ 2 files changed, 69 insertions(+), 0 deletions(-)
+ create mode 100755 scripts/checkfiles
+ create mode 100755 scripts/checkfilesterse
+
+--- /dev/null
++++ b/scripts/checkfiles
+@@ -0,0 +1,35 @@
++#!/bin/sh
++# (c) 2007, Erez Zadok <ezk@cs.sunysb.edu> (initial version)
++# Licensed under the terms of the GNU GPL License version 2
++#
++# Check source files for compliance with coding standards, using terse
++# output in the style that g/cc produces. This output can be easily parsed
++# within text editors (e.g., emacs/vim) which can produce a split text
++# screen showing in one screen the error message, and in another screen the
++# corresponding source file, with the cursor placed on the offending line.
++# See for example the documentation for Emacs's "next-error" command, often
++# bound to M-x ` (ESC x back-tick).
++
++# Usage: checkfiles file [files...]
++# if "file" is a directory, will check all *.[hc] files recursively
++
++# check usage
++usage() {
++ echo "Usage: checkfiles file [files...]"
++ echo "(if \"file\" is a directory, check recursively for all C sources/headers)"
++ exit 1
++}
++
++# if test -z "$@" ; then
++# usage
++# fi
++if ! test -f scripts/checkpatch.pl ; then
++ echo "checkfiles: must run from top level source tree"
++ exit 1
++fi
++
++# check coding-style compliance of each source file found
++find "$@" -type f -name '*.[hc]' | \
++while read f ; do
++ diff -u /dev/null $f | perl scripts/checkpatch.pl -
++done
+--- /dev/null
++++ b/scripts/checkfilesterse
+@@ -0,0 +1,34 @@
++#!/bin/sh
++# (c) 2007, Erez Zadok <ezk@cs.sunysb.edu> (initial version)
++# Licensed under the terms of the GNU GPL License version 2
++#
++# Check source files for compliance with coding standards, using terse
++# output in the style that g/cc produces. This output can be easily parsed
++# within text editors (e.g., emacs/vim) which can produce a split text
++# screen showing in one screen the error message, and in another screen the
++# corresponding source file, with the cursor placed on the offending line.
++# See for example the documentation for Emacs's "next-error" command, often
++# bound to M-x ` (ESC x back-tick).
++
++# Usage: checkfiles file [files...]
++# if "file" is a directory, will check all *.[hc] files recursively
++
++# check usage
++usage() {
++ echo "Usage: checkfiles file [files...]"
++ echo "(if \"file\" is a directory, check recursively for all C sources/headers)"
++ exit 1
++}
++if test -z "" ; then
++ usage
++fi
++if ! test -f scripts/checkpatch.pl ; then
++ echo "checkfiles: must run from top level source tree"
++ exit 1
++fi
++
++# check coding-style compliance of each source file found, using terse output
++find "$@" -type f -name '*.[hc]' | \
++while read f ; do
++ diff -u /dev/null $f | perl scripts/checkpatch.pl -t -
++done