coreboot-kgpe-d16/util/lint/check_lint_tests
Jonathan Neuschäfer c22ad581c8 arch/power8: Rename to ppc64
POWER8 is a specific implementation of ppc64, which is by now outdated
(POWER9 has been on the market for a while). Rename arch/power8/ to
potentially cover a wider range of hardware.

TEST=Toolchains built before/after this commit can build coreboot for
     emulation/qemu-power8 from before/after this commit.

Change-Id: I2d6f08b12a9ffc8a652ddcd6f24ad85ecb33ca52
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/c/29943
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Timothy Pearson <tpearson@raptorengineering.com>
2018-11-30 20:02:17 +00:00

50 lines
1.6 KiB
Bash
Executable file

#!/usr/bin/env bash
# test to make sure the lint tests fail
SPACE=' '
UNDERSCORE='_'
#lint-stable-000-license-headers
TESTFILE000a=src/arch/x86/thread.c
TESTFILE000b=src/arch/ppc64/misc.c
sed -i.bak 's/^[[:space:]]\*[[:space:]].*//' ${TESTFILE000a}
sed -i.bak 's/^[[:space:]]\*[[:space:]]but WITHOUT ANY WARRANTY;//' ${TESTFILE000b}
#lint-stable-003-whitespace
TESTFILE003=src/acpi/sata.c
sed -i.bak 's/^$/ /' ${TESTFILE003}
#lint-stable-004-style-labels
TESTFILE004=src/soc/nvidia/tegra124/spi.c
sed -i.bak 's/^done:/ done:/' ${TESTFILE004}
#lint-stable-005-board-status
TESTFILE005a=src/mainboard/google/storm/board_info.txt
TESTFILE005b=src/mainboard/aaeon/pfm-540i_revb/board_info.txt
rm -f ${TESTFILE005a}
sed -i.bak 's/^Category:.*/Category: lint/' ${TESTFILE005b}
#lint-stable-006-board-name
TESTFILE006=src/mainboard/amd/bettong/Kconfig.name
rm -f ${TESTFILE006}
#lint-stable-008-kconfig
#lint-stable-009-old-licenses
TESTFILE009=src/superio/common/conf_mode.c
sed -i "s/for more details./for more details.\n \* You${SPACE}should${SPACE}have received a copy of the GNU General Public License\n \* along with this program; if not, write to the Free Software\n \* Foundation, Inc./" ${TESTFILE009}
git add ${TESTFILE009}
#lint-stable-010-asm-syntax
TESTFILE010=src/arch/x86/bootblock_romcc.S
sed -i "1s/^/.att${UNDERSCORE}syntax noprefix\n/" ${TESTFILE010}
git add ${TESTFILE010}
#lint-stable-012-executable-bit
TESTFILE012=src/lib/libgcc.c
chmod +x ${TESTFILE012}
#lint-stable-013-site-local
mkdir -p site-local
TESTFILE013=$(mktemp --tmpdir=site-local)
git add -f ${TESTFILE013}