From ecb5a3724dcd0b8c90fbaf681c41457936e9e0e0 Mon Sep 17 00:00:00 2001 From: Herb Kuta Date: Fri, 31 May 2019 09:43:09 -0700 Subject: [PATCH] DRAFT weboslayers.py: Convert to file format version 2, must use mcf 7.0.0 or later - Add McfFileVersion. - fetch, options => dict-s - webos_layers -> Layers - Add BblayersConfExtraLines. --- files/weboslayers.py | 50 +++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/files/weboslayers.py b/files/weboslayers.py index a841a52..74bcd1f 100644 --- a/files/weboslayers.py +++ b/files/weboslayers.py @@ -12,41 +12,47 @@ # See the License for the specific language governing permissions and # limitations under the License. +McfFileVersion = 2 + # Value for DISTRO -Distribution = "webos" +Distribution = 'webos' # Supported MACHINE-s -Machines = ['raspberrypi3','qemux86'] +Machines = ['raspberrypi3', 'qemux86'] -# webos_layers = [ -# ('layer-name', priority, 'URL', 'submission', 'working-dir'), +# Layers = [ +# (layer-name: str, priority: int, URL: str, fetch: dict, options: dict), # ... # ] # Note that the github.com/openembedded repositories are read-only mirrors of # the authoritative repositories on git.openembedded.org . -webos_layers = [ -('bitbake', -1, 'git://github.com/openembedded/bitbake.git', 'branch=1.32,commit=0193e1f', ''), +Layers = [ +('bitbake', -1, 'git://github.com/openembedded/bitbake.git', {'branch': '1.32', 'commit': '0193e1f'}, {}), -('meta', 5, 'git://github.com/openembedded/openembedded-core.git', 'branch=morty,commit=4b32784', ''), +('meta', 5, 'git://github.com/openembedded/openembedded-core.git', {'branch': 'morty', 'commit': '4b32784'}, {}), -('meta-oe', 10, 'git://github.com/openembedded/meta-openembedded.git', 'branch=morty,commit=997caf9', ''), -('meta-multimedia', 11, 'git://github.com/openembedded/meta-openembedded.git', '', ''), -('meta-networking', 12, 'git://github.com/openembedded/meta-openembedded.git', '', ''), -('meta-python', 13, 'git://github.com/openembedded/meta-openembedded.git', '', ''), -('meta-filesystems', 14, 'git://github.com/openembedded/meta-openembedded.git', '', ''), +('meta-oe', 10, 'git://github.com/openembedded/meta-openembedded.git', {'branch': 'morty', 'commit': '997caf9'}, {}), +('meta-multimedia', 11, 'git://github.com/openembedded/meta-openembedded.git', {}, {}), +('meta-networking', 12, 'git://github.com/openembedded/meta-openembedded.git', {}, {}), +('meta-python', 13, 'git://github.com/openembedded/meta-openembedded.git', {}, {}), +('meta-filesystems', 14, 'git://github.com/openembedded/meta-openembedded.git', {}, {}), -('meta-qt5', 20, 'git://github.com/meta-qt5/meta-qt5.git', 'branch=krogoth,commit=dcfcb58', ''), +('meta-qt5', 20, 'git://github.com/meta-qt5/meta-qt5.git', {'branch': 'krogoth', 'commit': 'dcfcb58'}, {}), -('meta-webos-backports-2.3', 30, 'git://github.com/webosose/meta-webosose.git', '', ''), -('meta-webos-backports-2.4', 31, 'git://github.com/webosose/meta-webosose.git', '', ''), -('meta-webos-backports-2.5', 32, 'git://github.com/webosose/meta-webosose.git', '', ''), -('meta-webos-backports-2.6', 33, 'git://github.com/webosose/meta-webosose.git', '', ''), +('meta-webos-backports-2.3', 30, 'git://github.com/webosose/meta-webosose.git', {}, {}), +('meta-webos-backports-2.4', 31, 'git://github.com/webosose/meta-webosose.git', {}, {}), +('meta-webos-backports-2.5', 32, 'git://github.com/webosose/meta-webosose.git', {}, {}), +('meta-webos-backports-2.6', 33, 'git://github.com/webosose/meta-webosose.git', {}, {}), -('meta-ros2', 38, 'git://github.com/lgsvl/meta-ros2.git', 'branch=ros2pr,commit=b92ab96',''), -('meta-webos', 40, 'git://github.com/webosose/meta-webosose.git', 'branch=master,commit=288cff4', ''), +('meta-ros2', 38, 'git://github.com/lgsvl/meta-ros2.git', {'branch': 'ros2pr', 'commit': 'b92ab96'}, {}), +('meta-webos', 40, 'git://github.com/webosose/meta-webosose.git', {'branch': 'master', 'commit': '288cff4'}, {}), -('meta-raspberrypi', 50, 'git://git.yoctoproject.org/meta-raspberrypi', 'branch=morty,commit=2a19226', ''), -('meta-webos-raspberrypi', 51, 'git://github.com/webosose/meta-webosose.git', '', ''), +('meta-raspberrypi', 50, 'git://git.yoctoproject.org/meta-raspberrypi', {'branch': 'morty', 'commit': '2a19226'}, {}), +('meta-webos-raspberrypi', 51, 'git://github.com/webosose/meta-webosose.git', {}, {}), -('meta-webos-ros2', 52, 'git://github.com/webosose/meta-webosose.git', '', ''), +('meta-webos-ros2', 52, 'git://github.com/webosose/meta-webosose.git', {}, {}), ] + +# BblayersConfExtraLines is a list of strings to be appended to the generated +# conf/bblayers.conf . +BblayersConfExtraLines = []