From patchwork Wed Sep 7 08:55:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 12398 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9775ECAAD3 for ; Wed, 7 Sep 2022 08:56:03 +0000 (UTC) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by mx.groups.io with SMTP id smtpd.web10.5470.1662540962235354269 for ; Wed, 07 Sep 2022 01:56:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=W5hJaAv9; spf=pass (domain: gmail.com, ip: 209.85.221.44, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f44.google.com with SMTP id t14so11973341wrx.8 for ; Wed, 07 Sep 2022 01:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=dNvu1GQn6i/5rkiwaabcrzNFTIkUdQmAU0hOrKWQXMQ=; b=W5hJaAv97Y+L+F9HN5PkSv8eEw8NjxMuS0pQZ4GNfaL/n7INQv95XlvzdOM1qcbnsN mAz42HJOCiJRO7vAtqAPpNucIxDDwO3DmUBvAvTVf22bzcFXiS0/DpDAtPp4nszaDBy8 v2ZEht9l0OIKf5noGsc1u7Q26CezMG8pZCJpKtekmtyMPtt3QLpDEWFSFHFsBW4F57ph Iwp0bOf11cQcVergF4M/AYGNxv+z33u62IeDRYimu5ezgjesn5ZWZxCyr5YwALIiBvnl 1mXrWEUVpqPPz7viSi3taDMts+iP/qYR8sOjmI8Nzwc8Nb31HPMJD0kjUAoEFsSzIrOP vApw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=dNvu1GQn6i/5rkiwaabcrzNFTIkUdQmAU0hOrKWQXMQ=; b=4sZkQZIpds0JET8IjXXQZ2X5cdPdB9xL2AkmOJlOUILiVq9pDveCERjPegEo0OGyx0 EmjaSyrf+irP+Qlb8Dmt28Z+e9PYqJhbWZJtQ3Ws2R164dfG58IWtmEGLrbJwu4E5EDp 1ekR2ykpFdwrk3OJKmikUQxqFU+VRKqm3SYOMdfdhzS2RPcbrc36FCi3RNrKt8Vu5Ifx SgQzAOxx1U3c87L1H44swlQDlVMWZBw8NXIzynMdlRToEDMO7+suwP3hCTaQeFWxiYrB GwZWIr6lnl014m20AVpkwDyUUukixBaMe2qIPo/mbrzlE0PDp6RcMOkYpsUuxKokJ+DA /Bkg== X-Gm-Message-State: ACgBeo0554xFsNVMIf+nFSbJx+XSjJuF9F/8KIS1of7Qq3AQkGcpu7W8 VS4q44+7bfpFowfwqmSgnZqVOnibPXg= X-Google-Smtp-Source: AA6agR41b1eDW2dNwkPsjmYo+LL8AEcdT5pSZ2D7VkCKFZDncsws7MKjoLDCbnR4aoRlcV3IO8zYgg== X-Received: by 2002:a05:6000:15c5:b0:220:727a:24bf with SMTP id y5-20020a05600015c500b00220727a24bfmr1457300wry.621.1662540960387; Wed, 07 Sep 2022 01:56:00 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id l11-20020a05600c10cb00b003a5260b8392sm21498255wmd.23.2022.09.07.01.55.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 01:55:59 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH v2 1/3] oe-setup-build: add a tool for discovering config templates and setting up builds Date: Wed, 7 Sep 2022 10:55:50 +0200 Message-Id: <20220907085552.1171821-1-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 07 Sep 2022 08:56:03 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/170373 This is the last (I believe) piece of the puzzle in setting up builds from nothing without having to write custom scripts or use external tools. After layers have been fetched and placed into their respective locations, one would surely want to proceed to the actual build, and here's how: 1. Without arguments or with 'list-config-templates', the tool simply walks the ../.. of its location (which is the parent dir of poky/oe-core), and prints what templates it has found, as seen below. If the following is not enough information, adding '-v' will also print conf-notes.txt for each of the templates: $ oe-setup-build Available build configuration templates (re-run with -v to see their descriptions): /srv/work/alex/poky/scripts/oe-setup-build setup-build-env -c /srv/work/alex/poky/meta-poky/conf/templates/default will create a build configuration in /srv/work/alex/build-meta-poky-default /srv/work/alex/poky/scripts/oe-setup-build setup-build-env -c /srv/work/alex/meta-alex/conf/templates/configuration-gizmo will create a build configuration in /srv/work/alex/build-meta-alex-configuration-gizmo /srv/work/alex/poky/scripts/oe-setup-build setup-build-env -c /srv/work/alex/meta-alex/conf/templates/configuration-gadget will create a build configuration in /srv/work/alex/build-meta-alex-configuration-gadget 2. Then the user picks one command of the above and runs it. This will land them in a shell ready to run bitbake: $ oe-setup-build setup-build-env -c /srv/work/alex/meta-alex/conf/templates/configuration-gizmo Running: TEMPLATECONF=/srv/work/alex/meta-alex/conf/templates/configuration-gizmo . /srv/work/alex/poky/oe-init-build-env /srv/work/alex/build-meta-alex-configuration-gizmo && /bin/bash You had no conf/local.conf file. This configuration file has therefore been created for you from /srv/work/alex/meta-alex/conf/templates/configuration-gizmo/local.conf.sample You may wish to edit it to, for example, select a different MACHINE (target hardware). See conf/local.conf for more information as common configuration options are commented. You had no conf/bblayers.conf file. This configuration file has therefore been created for you from /srv/work/alex/meta-alex/conf/templates/configuration-gizmo/bblayers.conf.sample To add additional metadata layers into your configuration please add entries to conf/bblayers.conf. The Yocto Project has extensive documentation about OE including a reference manual which can be found at: https://docs.yoctoproject.org For more information about OpenEmbedded see the website: https://www.openembedded.org/ This configuration template will set up a build for the purposes of supporting gizmo. Please refer to meta-alex/README for additional details and available bitbake targets. 3. The full set of command line options is: $ oe-setup-build -h usage: oe-setup-build [-h] {list-config-templates,setup-build-env} ... A script that discovers available build configuration templates and sets up a build environment based on one of them positional arguments: {list-config-templates,setup-build-env} list-config-templates List available configuration templates setup-build-env Set up a build environment and open a shell session with it, ready to run builds. optional arguments: -h, --help show this help message and exit $ oe-setup-build list-config-templates -h usage: oe-setup-build list-config-templates [-h] [--topdir TOPDIR] [-v] optional arguments: -h, --help show this help message and exit --topdir TOPDIR Where to look for available build configuration templates (default is /srv/work/alex). -v Print a description for each available build configuration template. $ oe-setup-build setup-build-env -h usage: oe-setup-build setup-build-env [-h] -c template_path [-b build_path] [--no-shell] optional arguments: -h, --help show this help message and exit -c template_path Use a build configuration template in template_path to set up a build environment (run this script with 'list-config-templates' to see what is available) -b build_path Set up a build directory in build_path (run this script with 'list-config-templates' to see where it would be by default) --no-shell Create a build directory but do not start a shell session with the build environment from it. 4. There's also a selftest that runs a basic check for template discovery and build setup, and an added hint in oe-setup-layers about how to proceed (as it is really not user-friendly to fetch the layer repos successfully and then exit without a word). Signed-off-by: Alexander Kanavin --- meta/lib/oeqa/selftest/cases/bblayers.py | 12 ++++ scripts/oe-setup-build | 79 ++++++++++++++++++++++++ scripts/oe-setup-layers | 7 +++ 3 files changed, 98 insertions(+) create mode 100755 scripts/oe-setup-build diff --git a/meta/lib/oeqa/selftest/cases/bblayers.py b/meta/lib/oeqa/selftest/cases/bblayers.py index c6bd5a1f6a..37b92f19c3 100644 --- a/meta/lib/oeqa/selftest/cases/bblayers.py +++ b/meta/lib/oeqa/selftest/cases/bblayers.py @@ -122,6 +122,18 @@ class BitbakeLayers(OESelftestTestCase): fullpath = os.path.join(layerpath, "conf", "templates", "buildconf-1", f) self.assertTrue(os.path.exists(fullpath), "Template configuration file {} not found".format(fullpath)) + cmd = 'oe-setup-build list-config-templates --topdir {}'.format(layerpath) + result = runCmd(cmd) + cond = "scripts/oe-setup-build setup-build-env -c " in result.output and "test-bitbakelayer-layercreate/conf/templates/buildconf-1" in result.output + self.assertTrue(cond, "Incorrect output from {}: {}".format(cmd, result.output)) + + # rather than hardcode the build setup cmdline here, let's actually run what the tool suggests to the user + cmd = None + for l in result.output.splitlines(): + if "scripts/oe-setup-build setup-build-env -c " in l: + cmd = l + " --no-shell" + result = runCmd(cmd) + def get_recipe_basename(self, recipe): recipe_file = "" result = runCmd("bitbake-layers show-recipes -f %s" % recipe) diff --git a/scripts/oe-setup-build b/scripts/oe-setup-build new file mode 100755 index 0000000000..7c125425ec --- /dev/null +++ b/scripts/oe-setup-build @@ -0,0 +1,79 @@ +#!/usr/bin/env python3 +# +# Copyright OpenEmbedded Contributors +# +# SPDX-License-Identifier: MIT +# + +import argparse +import json +import os +import subprocess + +def defaulttop(): + return os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) + +def makebuildpath(topdir, templatelocation, template): + return os.path.join(topdir, "build-{}-{}".format(os.path.basename(os.path.abspath(os.path.join(templatelocation,'..','..'))), template)) + +def print_templates(args): + topdir = args.topdir + verbose = args.v + print("Available build configuration templates (re-run with -v to see their descriptions):\n") + for (dir, dirs, files) in os.walk(topdir): + if dir.endswith('conf/templates'): + for d in dirs: + print("{} setup-build-env -c {}\nwill create a build configuration in {}\n".format(__file__, os.path.join(dir, d), makebuildpath(args.topdir, dir, d))) + if verbose: + if os.path.join(dir, d).endswith('meta-poky/conf/templates/default'): + print("Description: this is the reference configuration of the poky reference distribution (choose this if you are uncertain).") + elif os.path.join(dir, d).endswith('meta/conf/templates/default'): + print("Description: this is the reference configuration of the openembedded-core layer (choose this if you are uncertain).") + else: + print("Description:", open(os.path.join(dir, d, 'conf-notes.txt')).read()) + print("---") + + # Do not recurse into build directories; they can be enormous + if 'conf' in dirs and 'bblayers.conf' in os.listdir(os.path.join(dir, 'conf')): + dirs.clear() + # Do not recurse into sstate-cache or downloads similarly + if 'universal' in dirs and '00' in dirs: + dirs.clear() + if 'uninative' in dirs and 'git2' in dirs: + dirs.clear() + +def setup_build_env(args): + template = args.c + builddir = args.b + no_shell = args.no_shell + if not builddir: + builddir = makebuildpath(defaulttop(), os.path.dirname(template), os.path.basename(template)) + coredir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) + cmd = "TEMPLATECONF={} . {} {}".format(template, os.path.join(coredir, 'oe-init-build-env'), builddir) + if not no_shell: + cmd = cmd + " && {}".format(os.environ['SHELL']) + print("Running:", cmd) + subprocess.run(cmd, shell=True, executable=os.environ['SHELL']) + +parser = argparse.ArgumentParser(description="A script that discovers available build configuration templates and sets up a build environment based on one of them") +subparsers = parser.add_subparsers() +parser_list_templates = subparsers.add_parser('list-config-templates', help='List available configuration templates') + +parser_list_templates.add_argument("--topdir", default=defaulttop(), help='Where to look for available build configuration templates (default is {}).'.format(defaulttop())) +parser_list_templates.add_argument('-v', action='store_true', + help='Print a description for each available build configuration template.') +parser_list_templates.set_defaults(func=print_templates) + +parser_setup_env = subparsers.add_parser('setup-build-env', help='Set up a build environment and open a shell session with it, ready to run builds.') +parser_setup_env.add_argument('-c', metavar='template_path', required=True, help="Use a build configuration template in template_path to set up a build environment (run this script with 'list-config-templates' to see what is available)") +parser_setup_env.add_argument('-b', metavar='build_path', help="Set up a build directory in build_path (run this script with 'list-config-templates' to see where it would be by default)") +parser_setup_env.add_argument('--no-shell', action='store_true', + help='Create a build directory but do not start a shell session with the build environment from it.') +parser_setup_env.set_defaults(func=setup_build_env) + +args = parser.parse_args() +if 'func' in args: + args.func(args) +else: + from argparse import Namespace + print_templates(Namespace(topdir=defaulttop(), v=False)) diff --git a/scripts/oe-setup-layers b/scripts/oe-setup-layers index 6ecaffed75..7fe250c557 100755 --- a/scripts/oe-setup-layers +++ b/scripts/oe-setup-layers @@ -17,6 +17,7 @@ import os import subprocess def _do_checkout(args, json): + oesetupbuild = None layers = json['sources'] for l_name in layers: l_data = layers[l_name] @@ -53,6 +54,12 @@ def _do_checkout(args, json): print("Running '{}' in {}".format(cmd, layerdir)) subprocess.check_output(cmd, shell=True, cwd=layerdir) + if os.path.exists(os.path.join(layerdir, 'scripts/oe-setup-build')): + oesetupbuild = os.path.join(layerdir, 'scripts/oe-setup-build') + + if oesetupbuild: + print("\nRun '{} list-config-templates' to list available build configuration templates and set up a build from one of them.".format(oesetupbuild)) + parser = argparse.ArgumentParser(description="A self contained python script that fetches all the needed layers and sets them to correct revisions using data in a json format from a separate file. The json data can be created from an active build directory with 'bitbake-layers create-layers-setup destdir' and there's a sample file and a schema in meta/files/") parser.add_argument('--force-bootstraplayer-checkout', action='store_true', From patchwork Wed Sep 7 08:55:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 12400 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 831B8C54EE9 for ; Wed, 7 Sep 2022 08:56:13 +0000 (UTC) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.groups.io with SMTP id smtpd.web09.5559.1662540963053818148 for ; Wed, 07 Sep 2022 01:56:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Tkoa1Z/N; spf=pass (domain: gmail.com, ip: 209.85.128.44, mailfrom: alex.kanavin@gmail.com) Received: by mail-wm1-f44.google.com with SMTP id r205-20020a1c44d6000000b003b2973dafb7so202461wma.2 for ; Wed, 07 Sep 2022 01:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=/D0MMHvP7Xm3AhG94VVD1ki4iNexxVoH8ZSdFPTd85A=; b=Tkoa1Z/N6yqi6KchD9pb1m/hgmwpJU6BttFE0/ghFTmyGb9tcj0yU9C3Yfff0MxmV2 SOHET94FnGG/bt9qZKW/utLiZrTSVhNkKEaub8AnTAlvF2E1rCej85jVHTItQ/VwiVr/ oF7AxbLFCBin9ciwCQ49V+SjFR5ee7O9uyekQk0+VrLFh6e2VYRE7GkKdh1UD8ehQEjA RixiuvbaBaOi6tXIHQs8mCezq80SJORsml5zoEkb3lADkky9PCSpEwSkmtAzn2mlLWSH +o4VOPaK6Vt0m/rvZymCxdIc2MF12mGOT46RibbVqrbHreVpKcSyw5ckwsph1X21egsr GaPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=/D0MMHvP7Xm3AhG94VVD1ki4iNexxVoH8ZSdFPTd85A=; b=DAxV6nYNar6ds2axtfZcSiAaT2mXUEKwWlRxaB/rpQklXAO2NMkC7i6Fz1rLWvn+3R NQxlt8SgJjeU8GAW6SdHPmYTFhPngYProi9Ek1AvilZmGZJ1jID+Tg/DZ61wGX5zW2D8 4Vi/iOtj0gaCLNVRhIugToB/eTFGYY1R4+zDkkbGR92S0KUsD74RqSDp8oaOJdjAewV1 77tfbDwoiJWL97IiScsS9dOIbvLY3xLGITo/o6PtTq9qItEM2zriw03juaSeIBNv+O09 pKcdCOMsowekC/6bwbyhB8694pEAsez5gVAsPxBL8xMjXMrLfNEhyi1NPqXpCo+qC1XN hCUg== X-Gm-Message-State: ACgBeo2A2prdzwIcRSZ6GH8Jy5MWVshv3/d3bWvz1peis+6Ye8+qrMCN KOPKKq9XLWVbHyfO/qdvSV6Y+Hwe6/c= X-Google-Smtp-Source: AA6agR7S8yZHy4xozmwO2DVY+FdDHwLoItdvVoKDyVothMCW7aPJ3eu3xaU3bDB2DGvC1j3xsGjhrA== X-Received: by 2002:a05:600c:444b:b0:3a6:6b99:239a with SMTP id v11-20020a05600c444b00b003a66b99239amr16382151wmn.41.1662540961282; Wed, 07 Sep 2022 01:56:01 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id l11-20020a05600c10cb00b003a5260b8392sm21498255wmd.23.2022.09.07.01.56.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 01:56:00 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH v2 2/3] selftest/cases/bblayers.py: build python3-jsonschema only once Date: Wed, 7 Sep 2022 10:55:51 +0200 Message-Id: <20220907085552.1171821-2-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220907085552.1171821-1-alex@linutronix.de> References: <20220907085552.1171821-1-alex@linutronix.de> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 07 Sep 2022 08:56:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/170374 setUpLocal runs before every testcase, setUpClass runs only once in the beginning. Signed-off-by: Alexander Kanavin --- meta/lib/oeqa/selftest/cases/bblayers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/cases/bblayers.py b/meta/lib/oeqa/selftest/cases/bblayers.py index 37b92f19c3..328af91532 100644 --- a/meta/lib/oeqa/selftest/cases/bblayers.py +++ b/meta/lib/oeqa/selftest/cases/bblayers.py @@ -14,7 +14,9 @@ from oeqa.selftest.case import OESelftestTestCase class BitbakeLayers(OESelftestTestCase): - def setUpLocal(self): + @classmethod + def setUpClass(cls): + super(BitbakeLayers, cls).setUpClass() bitbake("python3-jsonschema-native") bitbake("-c addto_recipe_sysroot python3-jsonschema-native") From patchwork Wed Sep 7 08:55:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 12399 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83183C38145 for ; Wed, 7 Sep 2022 08:56:13 +0000 (UTC) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mx.groups.io with SMTP id smtpd.web11.5487.1662540963579221451 for ; Wed, 07 Sep 2022 01:56:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LYel6X+y; spf=pass (domain: gmail.com, ip: 209.85.221.47, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f47.google.com with SMTP id bq9so6348734wrb.4 for ; Wed, 07 Sep 2022 01:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=psgWjQl9qyugR+ffQimE68Xc3/lyxCOKgc+Cay1Ax8M=; b=LYel6X+yrBKrPoN9MqKqEKEQadOySVBxagkWACzVz0WxAxqQuKvMYKOTyAyODMpVwm Bf3W2gvdgD0tWwzU0OcYnwtQb7pwhOrJ7tkhK3hTxoD5bjyRuip8PrRZJ/PG3W9UCu8R f2B9C+eVF2Vd2yc/uYs6ABUA7Zjn0i3uo215dNi7BrOm6SAzr7FgEmN4+2+yKK4Oczqn fUxgwU/r23m1PEcVwCRSPvUCbGUTPKFuUup5bjXA5Rc6hRYK0LHDlje0WyCQQfLLYSkL ULlSf6cpXlBMYTXuDEAt4IltqMMhV5rNUbShEcf3OMpUX8tQHVQoWc3lCPt9/6F4JupX jWCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=psgWjQl9qyugR+ffQimE68Xc3/lyxCOKgc+Cay1Ax8M=; b=WgLivzyU/xS8QMdm3r4nS8PryYv6YXHK1PHzvw2d1fXPqVN4awPXYqirXG1t9JFEE4 kBo4QR19N257zt0xEM04gUvscajk9nvwoY7hI0rD06InVvjAaH/ZVkn4u4PZEnqbTLjy o2CEOZPYEDVvVMHznWW4zLjd5hy1ieQ6/AxK2gK4KBG9zFB0KlQAt8Of1aa49ySPMNSJ R/XfvR+6mFYn3DfZ0fwgv3S7db4++RhyENYMNeEQWIC50bYmqqVMyYoPa4hUhxajU87K NdLaJePQZjnbnrTM9JMHhMjykTIaI68DROkFADIIKcTS75o0BrwmbucaITG6BpSimaNu hMlg== X-Gm-Message-State: ACgBeo1rgEs5IxXqv4UXqlD3tx+VWPzd95JaJieMAfM0ihOJFrgsyMck IQ5yfehnAObEG9kgMjjPIfAx0TLJuhc= X-Google-Smtp-Source: AA6agR55OnA211a8rIiMZCbakUuAbk1IyctI4it46fNAAqfSj2C3e1We0rcfm9b2RXVblLbMsEJx3g== X-Received: by 2002:adf:e94a:0:b0:228:6aa8:432a with SMTP id m10-20020adfe94a000000b002286aa8432amr1381189wrn.567.1662540962111; Wed, 07 Sep 2022 01:56:02 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id l11-20020a05600c10cb00b003a5260b8392sm21498255wmd.23.2022.09.07.01.56.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 01:56:01 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH v2 3/3] oe-setup-builddir: do not suggest local.conf as a source of examples Date: Wed, 7 Sep 2022 10:55:52 +0200 Message-Id: <20220907085552.1171821-3-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220907085552.1171821-1-alex@linutronix.de> References: <20220907085552.1171821-1-alex@linutronix.de> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 07 Sep 2022 08:56:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/170375 This holds true for the default core/poky template, but not anything else. Eventually there will be fragments and associated tooling. Signed-off-by: Alexander Kanavin --- scripts/oe-setup-builddir | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir index d3c7f943e7..c4fd253d36 100755 --- a/scripts/oe-setup-builddir +++ b/scripts/oe-setup-builddir @@ -83,8 +83,7 @@ if [ ! -r "$BUILDDIR/conf/local.conf" ]; then You had no conf/local.conf file. This configuration file has therefore been created for you from $OECORELOCALCONF You may wish to edit it to, for example, select a different MACHINE (target -hardware). See conf/local.conf for more information as common configuration -options are commented. +hardware). EOM cp -f "$OECORELOCALCONF" "$BUILDDIR/conf/local.conf"