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

Commit 39b7c1d4 authored by Bryan Huntsman's avatar Bryan Huntsman
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 66198289
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -60,12 +60,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/sm8150_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."""