mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-26 04:20:23 +09:00
PD#138714: initial commit for meson64 bringup 1. add meson64 defconfig 2. add uart driver 3. add iomap driver 4. add scripts 5. add p212 & q200 dts Change-Id: Idbc0d4e33f024eaeb97fc9f7948188b9596aea4c Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
24 lines
605 B
Bash
Executable File
24 lines
605 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# pre-commit hook to run check-patch on the output and stop any commits
|
|
# that do not pass. Note, only for git-commit, and not for any of the
|
|
# other scenarios
|
|
#
|
|
# Copyright 2010 Ben Dooks, <ben-linux@fluff.org>
|
|
|
|
if git rev-parse --verify HEAD 2>/dev/null >/dev/null
|
|
then
|
|
against=HEAD
|
|
else
|
|
# Initial commit: diff against an empty tree object
|
|
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
|
|
fi
|
|
|
|
git diff --cached --stat -p $against -- | ./scripts/checkpatch.pl --no-signoff -
|
|
if [ $? -ne 0 ]
|
|
then
|
|
exit 1;
|
|
fi
|
|
|
|
git diff --name-status --cached $against -- | ./scripts/amlogic/licence_pre.pl -
|