scripts/build-all: relax check_kernel()

Enforce just that PWD is the top working directory by dropping the
hard-coded defconfig lookup.

Change-Id: I14404de5e28605c14329768747bb18a49487694f
Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
This commit is contained in:
Bryan Huntsman 2018-06-04 15:11:10 -07:00 committed by Gerrit - the friendly Code Review server
parent f82ab04ca4
commit 3e408fe3e3
1 changed files with 2 additions and 6 deletions

View File

@ -59,12 +59,8 @@ if not os.environ.get('CROSS_COMPILE'):
def check_kernel():
"""Ensure that PWD is a kernel directory"""
have_defconfig = any([
os.path.isfile('arch/arm64/configs/msm_defconfig'),
os.path.isfile('arch/arm64/configs/sdm845_defconfig')])
if not all([os.path.isfile('MAINTAINERS'), have_defconfig]):
fail("This doesn't seem to be an MSM kernel dir")
if not os.path.isfile('MAINTAINERS'):
fail("This doesn't seem to be a kernel dir")
def check_build():
"""Ensure that the build directory is present."""