<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/tmp/openbmc.git/setup, branch hardknott</title>
<subtitle>OpenBMC Distribution (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/tmp/openbmc.git/atom?h=hardknott</id>
<link rel='self' href='https://git.radix-linux.su/BMC/tmp/openbmc.git/atom?h=hardknott'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/tmp/openbmc.git/'/>
<updated>2021-02-20T01:49:38+00:00</updated>
<entry>
<title>setup: skip non-phosphor machines</title>
<updated>2021-02-20T01:49:38+00:00</updated>
<author>
<name>Patrick Williams</name>
<email>patrick@stwcx.xyz</email>
</author>
<published>2021-02-20T01:45:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/tmp/openbmc.git/commit/?id=aef980975e4ed5f11b990decee6903178188a363'/>
<id>urn:sha1:aef980975e4ed5f11b990decee6903178188a363</id>
<content type='text'>
We already had logic to skip non-phosphor machines in the
'list' operation, but did not skip those machines when targeting
them.  Those machines are almost certain to not operate as
expected and in some cases, such as EVB models, we have two
meta-layers associated with the machine.  Skipping non-phosphor
machines ensures that the setup script picks the right
configuration and does not attempt to target a machine that won't
work.

Signed-off-by: Patrick Williams &lt;patrick@stwcx.xyz&gt;
Change-Id: If68c27e2a8675405672df497827dde6e86147108
</content>
</entry>
<entry>
<title>setup: tolerate `which` failures</title>
<updated>2021-02-19T21:10:20+00:00</updated>
<author>
<name>Patrick Williams</name>
<email>patrick@stwcx.xyz</email>
</author>
<published>2021-02-19T21:07:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/tmp/openbmc.git/commit/?id=a469a0ffe98eb48e976a23675fdb02cf7d8b75e3'/>
<id>urn:sha1:a469a0ffe98eb48e976a23675fdb02cf7d8b75e3</id>
<content type='text'>
If this script is sourced in a shell that has something like
`set -e`, then it fails if the column program does not exist
because the `which columm` fails.  Make a few changes to
tolerate this and not fail:
    - Use $(...) rather than `...`.
    - Use `... || true` when appropriate to allow continuance.

Signed-off-by: Patrick Williams &lt;patrick@stwcx.xyz&gt;
Change-Id: I9008778e8aee4747faa4decff74a2fb361a206ed
</content>
</entry>
<entry>
<title>setup: support any level of machine conf depth</title>
<updated>2021-01-27T22:00:40+00:00</updated>
<author>
<name>Maksym Sloyko</name>
<email>maxims@google.com</email>
</author>
<published>2020-12-08T22:11:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/tmp/openbmc.git/commit/?id=f197793a823fd9ddbb31a21a465933734e626e24'/>
<id>urn:sha1:f197793a823fd9ddbb31a21a465933734e626e24</id>
<content type='text'>
Modify setup script to support any level of machine conf depth.
Internally Google uses machines that sit yet another layer deep
in the repository. Instead of adding yet another level of depth
to the expansion, look for all configs using `find`, if it's
available. If it's not, ball back to the old wildcard expansion.

Signed-off-by: Maksym Sloyko &lt;maxims@google.com&gt;
Change-Id: I1066fe5f6ece4454e3555ca97f75bd91d6da1dba
</content>
</entry>
<entry>
<title>setup: support single-deep machine conf directories</title>
<updated>2020-05-01T13:10:48+00:00</updated>
<author>
<name>Patrick Williams</name>
<email>patrick@stwcx.xyz</email>
</author>
<published>2020-04-30T13:06:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/tmp/openbmc.git/commit/?id=e855ad8576ce02db51c8fc0c89810dbd337c21e8'/>
<id>urn:sha1:e855ad8576ce02db51c8fc0c89810dbd337c21e8</id>
<content type='text'>
The witherspoon config was moved directly into meta-ibm, which caused
the setup script to not be able to find it.  Modify the setup script
to also find machine config files in single-deep meta directories.

Signed-off-by: Patrick Williams &lt;patrick@stwcx.xyz&gt;
Change-Id: Icb24649c2e90cd29f72e8b661085b85cde6fcad5
</content>
</entry>
<entry>
<title>setup: Use machine-specific build directories by default</title>
<updated>2020-04-27T22:08:58+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2020-04-19T11:26:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/tmp/openbmc.git/commit/?id=ab714a26c3f883c68f08043cd7d8a0af4c84e2ba'/>
<id>urn:sha1:ab714a26c3f883c68f08043cd7d8a0af4c84e2ba</id>
<content type='text'>
bitbake can struggle to cope with switching machine configurations in
the one build directory, so default to using machine-specific build
directories.

It's recommended that the following be added to your .profile
to provide a common location for bitbake data caches:

```
BB_ENV_EXTRAWHITE="SSTATE_DIR DL_DIR"
SSTATE_DIR="/var/cache/bitbake/sstate-cache"
DL_DIR="/var/cache/bitbake/downloads"
export BB_ENV_EXTRAWHITE SSTATE_DIR DL_DIR
```

Change-Id: I70abb6a6bc901c42266f92c9f8c230b793b7a0f9
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>setup: filter out unsupported machines</title>
<updated>2020-04-08T15:32:27+00:00</updated>
<author>
<name>Patrick Williams</name>
<email>patrick@stwcx.xyz</email>
</author>
<published>2020-04-02T18:11:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/tmp/openbmc.git/commit/?id=42c0f8bd38491632e6f7c15627ea401d66ffb1bd'/>
<id>urn:sha1:42c0f8bd38491632e6f7c15627ea401d66ffb1bd</id>
<content type='text'>
Due to the import of meta-layers from out of openbmc, some of which have
their own machine configs, running `source setup` reveils a long list of
machines many of which are unsupported.  Any supported machine should be
using the `meta-phosphor` layer in some way, so look for that in the
`bblayers.conf.sample` file.

Signed-off-by: Patrick Williams &lt;patrick@stwcx.xyz&gt;
Change-Id: I3ee4aa33a643d5f7faf0c6e1bd6f3d9c84cddab8
</content>
</entry>
<entry>
<title>setup: support zsh</title>
<updated>2020-01-21T12:28:09+00:00</updated>
<author>
<name>Patrick Williams</name>
<email>patrick@stwcx.xyz</email>
</author>
<published>2020-01-17T16:35:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/tmp/openbmc.git/commit/?id=512028d952ee109e8c09591979c46945bae83f31'/>
<id>urn:sha1:512028d952ee109e8c09591979c46945bae83f31</id>
<content type='text'>
zsh populates $0 even when sourcing a script.  This caused sourcing
this script to think that it was being executed and it `exit 1`d
the running shell.  Since no sane distribution would ever set /bin/sh
to zsh, the presence of $ZSH_NAME implies that the script is being
sourced.

Tested with both bash and zsh in both modes of operation.

Signed-off-by: Patrick Williams &lt;patrick@stwcx.xyz&gt;
Change-Id: I2843d96a7fdaa46f9ee6edb9031ca9c16ca3bd98
</content>
</entry>
<entry>
<title>Make `setup` show available targets in columns</title>
<updated>2019-08-08T15:56:29+00:00</updated>
<author>
<name>Alexander Amelkin</name>
<email>a.amelkin@yadro.com</email>
</author>
<published>2019-07-17T15:11:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/tmp/openbmc.git/commit/?id=88a7fe6ea8f34f0c1ed4d8efcbc497742c4585b1'/>
<id>urn:sha1:88a7fe6ea8f34f0c1ed4d8efcbc497742c4585b1</id>
<content type='text'>
The list of targets is getting longer and tends to not fit into
one screen when displayed in one column. Filter it through `column`
tool if available. If not available, then fall back to the old
representation.

Change-Id: I1e827d0835608d2e37ca58705e77a14b0667b170
Signed-off-by: Alexander Amelkin &lt;a.amelkin@yadro.com&gt;
</content>
</entry>
<entry>
<title>setup: Add the missing quotes</title>
<updated>2019-06-18T19:05:24+00:00</updated>
<author>
<name>Alexander Filippov</name>
<email>a.filippov@yadro.com</email>
</author>
<published>2019-06-13T08:56:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/tmp/openbmc.git/commit/?id=b5b5bc1cdd2bc663942f36a041f2b50730868a2b'/>
<id>urn:sha1:b5b5bc1cdd2bc663942f36a041f2b50730868a2b</id>
<content type='text'>
Fixes: d70e7e81bfd44553f425f (setup: Use config name instead layer name)
Change-Id: Iee4a49f31bfbe137532f9be30277857d408cf7d5
Signed-off-by: Alexander Filippov &lt;a.filippov@yadro.com&gt;
</content>
</entry>
<entry>
<title>setup: Use config name instead layer name</title>
<updated>2019-06-11T20:51:05+00:00</updated>
<author>
<name>Alexander Filippov</name>
<email>a.filippov@yadro.com</email>
</author>
<published>2019-05-21T12:45:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/tmp/openbmc.git/commit/?id=d70e7e81bfd44553f425fd828c0231ae3b14b4d5'/>
<id>urn:sha1:d70e7e81bfd44553f425fd828c0231ae3b14b4d5</id>
<content type='text'>
Allows user to pass a config name instead of a layer name.
This can be extremely useful for layers, which contain several configs.

E.g. to build firmware for swift you can call:
```
. setup swift
bitbake obmc-phosphor-image
```

Change-Id: I397a53b0cc135f622e4b3dc712ff93f6a0c10b8a
Signed-off-by: Alexander Filippov &lt;a.filippov@yadro.com&gt;
</content>
</entry>
</feed>
