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

Commit e14308dd authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scripts/build-all: relax check_kernel()"

parents 07c7c5f9 3e408fe3
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."""