summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-sancloud
AgeCommit message (Collapse)AuthorFilesLines
2020-07-15meta-agl-bsp: meta-sancloud: Use 1080p screen resolutionPaul Barker1-3/+0
Bug-AGL: SPEC-3498 Signed-off-by: Paul Barker <paul.barker@sancloud.co.uk> Change-Id: Id2e8af3dfac4db8040b7ab40ec6b11bb4d1737ae Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25022 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2019-05-14meta-agl-bsp: meta-sancloud: weston-ini-conf: Use 720p resolution where possiblePaul Barker1-0/+3
The BBE is has fairly limited CPU and Graphics power so everything is sluggish at 1080p. Things work much better at 720p. However, if the 'hdmi-a-1-270.cfg' file has been removed (for example, when building the cluster demo) then don't try to modify it. Bug-AGL: SPEC-2409 Change-Id: I614bf6a7d65f5d51b6f9b1b776851562151fe2f6 Signed-off-by: Paul Barker <paul.barker@sancloud.co.uk>
2019-05-14meta-agl-bsp: meta-sancloud: weston-ini-conf: Set correct gbm-formatPaul Barker1-0/+3
The default gbm-format needs to be changed on the BeagleBone Enhanced due to a hardware errata on the AM335x SoC. For further details see the following section of the TI wiki: http://processors.wiki.ti.com/index.php/Processor_Linux_SDK_Graphics_and_Display#AM3_Beagle_Bone_Black_Board_Configuration The TI documentation recommends further changes to powervr.ini and qt_env.sh. The change to powervr.ini is already applied in the meta-sancloud layer and the change to qt_env.sh was found not to be needed. Bug-AGL: SPEC-2409 Change-Id: Iec91ab939b13bd4f936e64681d45931dafb8ee91 Signed-off-by: Paul Barker <paul.barker@sancloud.co.uk>
2019-05-14meta-agl-bsp: meta-sancloud: linux-bbe: Reserve 256MB for CMAPaul Barker2-0/+5
The tilcdc DRM driver needs more CMA memory available than we reserve by default in order to give a working GUI in AGL guppy. Bug-AGL: SPEC-2409 Change-Id: I0e09773c37133db86520fc15ed0ad11e80382b2e Signed-off-by: Paul Barker <paul.barker@sancloud.co.uk>
2019-05-14meta-agl-bsp: meta-sancloud: linux-bbe: Apply AGL kernel changesPaul Barker1-0/+1
This is the first step towards integration of the Sancloud BeagleBone Enhanced (BBE) BSP with AGL. When building the BBE kernel for AGL we need to pick up the correct .inc files. Bug-AGL: SPEC-2409 Change-Id: I05fe3094e75e873984df57f9610c704dd3c10e29 Signed-off-by: Paul Barker <paul.barker@sancloud.co.uk>
space */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
# Copyright 2019 The Meson development team

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

#     http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import subprocess
from pathlib import Path
import typing as T

def ls_as_bytestream() -> bytes:
    if os.path.exists('.git'):
        return subprocess.run(['git', 'ls-tree', '-r', '--name-only', 'HEAD'],
                              stdout=subprocess.PIPE).stdout

    files = [str(p) for p in Path('.').glob('**/*')
             if not p.is_dir() and
             not next((x for x in p.parts if x.startswith('.')), None)]
    return '\n'.join(files).encode()


def cscope() -> int:
    ls = b'\n'.join([b'"%s"' % f for f in ls_as_bytestream().split()])
    return subprocess.run(['cscope', '-v', '-b', '-i-'], input=ls).returncode


def ctags() -> int:
    ls = ls_as_bytestream()
    return subprocess.run(['ctags', '-L-'], input=ls).returncode


def etags() -> int:
    ls = ls_as_bytestream()
    return subprocess.run(['etags', '-'], input=ls).returncode


def run(args: T.List[str]) -> int:
    tool_name = args[0]
    srcdir_name = args[1]
    os.chdir(srcdir_name)
    assert tool_name in ['cscope', 'ctags', 'etags']
    res = globals()[tool_name]()
    assert isinstance(res, int)
    return res