Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e408fe3 authored by Bryan Huntsman's avatar Bryan Huntsman Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarBryan Huntsman <bryanh@codeaurora.org>
parent f82ab04c
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -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."""