blob: 7a7dc8b2e225c7ef65d929afcbb4854f4b9a63fa [file] [log] [blame]
Martin Roth0ad5fbd2020-12-24 12:06:38 -07001#!/usr/bin/env sh
Patrick Georgi55189c92020-05-10 20:09:31 +02002# SPDX-License-Identifier: GPL-2.0-or-later
Martin Roth44ef1672016-02-02 09:43:12 -07003#
4# DESCR: Verify that site-local is not in the coreboot repository
5#
6# Because site-local is intended for local use only, it should never be
7# pushed to coreboot.org. Even for committing it for local use, it's
8# recommended that it be kept in a separate repository, and pulled in
Martin Rothd81debd2022-06-03 00:06:57 -06009# as a submodule.
Martin Roth44ef1672016-02-02 09:43:12 -070010
Martin Rothd81debd2022-06-03 00:06:57 -060011LINTDIR="$(
12 cd -- "$(dirname "$0")" > /dev/null 2>&1 || return
13 pwd -P
14)"
Martin Roth44ef1672016-02-02 09:43:12 -070015
Martin Rothd81debd2022-06-03 00:06:57 -060016# shellcheck source=helper_functions.sh
17. "${LINTDIR}/helper_functions.sh"
18
19# Exit if the code isn't in a git repo
20if [ "${IN_GIT_TREE}" -eq 0 ]; then
21 exit 0
22fi
23
24
25if [ -n "$(${FIND_FILES} site-local/*)" ]; then
26 echo "Error: site-local must be kept separate from the coreboot repository."
Martin Roth44ef1672016-02-02 09:43:12 -070027fi