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

Commit 74b9014d 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.py: set clang as REAL_CC for arm"

parents 1f981feb 850650fd
Loading
Loading
Loading
Loading
+5 −24
Original line number Diff line number Diff line
@@ -268,18 +268,11 @@ class Builder():

        # Build targets can be dependent upon the completion of
        # previous build targets, so build them one at a time.
        if os.environ.get('ARCH') == "arm64":
        cmd_line = ['make',
            'INSTALL_HDR_PATH=%s' % hdri_dir,
            'INSTALL_MOD_PATH=%s' % modi_dir,
            'O=%s' % dest_dir,
            'REAL_CC=%s' % clang_bin]
        else:
            cmd_line = ['make',
                'INSTALL_HDR_PATH=%s' % hdri_dir,
                'INSTALL_MOD_PATH=%s' % modi_dir,
                'O=%s' % dest_dir]

        build_targets = []
        for c in make_command:
            if re.match(r'^-{1,2}\w', c):
@@ -294,18 +287,6 @@ class Builder():
def scan_configs():
    """Get the full list of defconfigs appropriate for this tree."""
    names = []
    arch_pats = (
        r'[fm]sm[0-9]*_defconfig',
        r'apq*_defconfig',
        r'qsd*_defconfig',
        r'mpq*_defconfig',
        r'sdm*_defconfig',
        r'sdx*_defconfig',
        )
    for p in arch_pats:
        for n in glob.glob('arch/arm/configs/' + p):
            name = os.path.basename(n)[:-10]
            names.append(Builder(name, n))
    for defconfig in glob.glob('arch/arm*/configs/vendor/*_defconfig'):
        target = os.path.basename(defconfig)[:-10]
        name = target + "-llvm"