
In message 1206056978-17675-1-git-send-email-Tsi-Chung.Liew@freescale.com you wrote:
The long condition in the script causes all ColdFire platforms unable to compile correctly. By adding square brackets, all compile without error.
Signed-off-by: TsiChung Liew Tsi-Chung.Liew@freescale.com
tools/setlocalversion | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/setlocalversion b/tools/setlocalversion index 9bbdafd..2c27291 100755 --- a/tools/setlocalversion +++ b/tools/setlocalversion @@ -11,8 +11,8 @@ cd "${1:-.}" || usage # Check for git and a git repo. if head=`git rev-parse --verify HEAD 2>/dev/null`; then # Do we have an untagged version?
- if git name-rev --tags HEAD | \
grep -E '^HEAD[[:space:]]+(.*~[0-9]*|undefined)$' > /dev/null; then
- if [git name-rev --tags HEAD | \
figrep -E '^HEAD[[:space:]]+(.*~[0-9]*|undefined)$' > /dev/null]; then git describe | awk -F- '{printf("-%05d-%s", $(NF-1),$(NF))}'
Ummm... what exactly has this code, which is running natively in the shell on your development host, to do with a ColdFire cross-compile?
Note that the very same code is used in the Linux kernel.
If this code doesn't work for you, you also cannot compile any recent Linux kernel code?
Also, I don't understand what you do.
Unless you can provide a really good explanation why that should be needed I will reject this patch.
Best regards,
Wolfgang Denk