openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Yocto changes to TEMPLATECONF location.
@ 2022-09-09 15:58 Patrick Williams
  2022-09-12 19:34 ` Patrick Williams
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Williams @ 2022-09-09 15:58 UTC (permalink / raw)
  To: OpenBMC List

[-- Attachment #1: Type: text/plain, Size: 1389 bytes --]

Hello,

An upstream Yocto changes is causing us to move the location of the
template config files in our machine layers.  These are the
`bblayers.conf.sample` and `local.conf.sample` locations.

I have made all the necessary changes (basically just file moves) in
our tree[1] and some minor changes to the `setup` script.  If you happen
to use `openbmc-env` to set up your environment, you will need to
adjust the TEMPLATECONF environment variable accordingly (look at
`setup` for an example).

I have also updated any references in docs[2] to avoid usage of
`openbmc-env` and `TEMPLATECONF` and switch instead to recommend `setup`
workflows.

If you have any machines in a downstream fork you may also need to make
similar file location changes once we pull in the next subtree update.
These might be helpful for you:

```
   $ git ls-files "**/*.sample" | \
     grep -v -e poky -e meta-security -e meta-openembedded | \
     xargs -n1 dirname | sed 's#$#/templates/default#' | \
     sort | uniq | xargs mkdir -p
   $ git ls-files "**/*.sample" | \
     grep -v -e poky -e meta-security -e meta-openembedded | \
     sed 's#\(.*\)/conf/\(.*\)#\1/conf/\2 \1/conf/templates/default/\2#' | \
     xargs -n2 git mv -f
```

1. https://gerrit.openbmc.org/c/openbmc/openbmc/+/57049
2. https://gerrit.openbmc.org/c/openbmc/docs/+/57050

-- 
Patrick Williams

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Yocto changes to TEMPLATECONF location.
  2022-09-09 15:58 Yocto changes to TEMPLATECONF location Patrick Williams
@ 2022-09-12 19:34 ` Patrick Williams
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick Williams @ 2022-09-12 19:34 UTC (permalink / raw)
  To: OpenBMC List

[-- Attachment #1: Type: text/plain, Size: 1889 bytes --]

On Fri, Sep 09, 2022 at 10:58:39AM -0500, Patrick Williams wrote:
> Hello,
> 
> An upstream Yocto changes is causing us to move the location of the
> template config files in our machine layers.  These are the
> `bblayers.conf.sample` and `local.conf.sample` locations.
> 
> I have made all the necessary changes (basically just file moves) in
> our tree[1] and some minor changes to the `setup` script.  If you happen
> to use `openbmc-env` to set up your environment, you will need to
> adjust the TEMPLATECONF environment variable accordingly (look at
> `setup` for an example).
> 
> I have also updated any references in docs[2] to avoid usage of
> `openbmc-env` and `TEMPLATECONF` and switch instead to recommend `setup`
> workflows.
> 
> If you have any machines in a downstream fork you may also need to make
> similar file location changes once we pull in the next subtree update.
> These might be helpful for you:
> 
> ```
>    $ git ls-files "**/*.sample" | \
>      grep -v -e poky -e meta-security -e meta-openembedded | \
>      xargs -n1 dirname | sed 's#$#/templates/default#' | \
>      sort | uniq | xargs mkdir -p
>    $ git ls-files "**/*.sample" | \
>      grep -v -e poky -e meta-security -e meta-openembedded | \
>      sed 's#\(.*\)/conf/\(.*\)#\1/conf/\2 \1/conf/templates/default/\2#' | \
>      xargs -n2 git mv -f
> ```
> 
> 1. https://gerrit.openbmc.org/c/openbmc/openbmc/+/57049
> 2. https://gerrit.openbmc.org/c/openbmc/docs/+/57050
> 
> -- 
> Patrick Williams

The conf-notes.txt files also needed to be moved.

```
    $ git ls-files "**/conf-notes.txt" | \
      grep -v -e poky -e meta-security -e meta-openembedded | \
      sed 's#\(.*\)/conf/\(.*\)#\1/conf/\2 \1/conf/templates/default/\2#' | \
      xargs -n2 git mv -f
```

https://gerrit.openbmc.org/c/openbmc/openbmc/+/57094

-- 
Patrick Williams

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-12 19:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-09 15:58 Yocto changes to TEMPLATECONF location Patrick Williams
2022-09-12 19:34 ` Patrick Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).