summaryrefslogtreecommitdiff
path: root/setup
AgeCommit message (Collapse)AuthorFilesLines
2020-01-21setup: support zshPatrick Williams1-2/+1
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 <patrick@stwcx.xyz> Change-Id: I2843d96a7fdaa46f9ee6edb9031ca9c16ca3bd98
2019-08-08Make `setup` show available targets in columnsAlexander Amelkin1-1/+8
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 <a.amelkin@yadro.com>
2019-06-18setup: Add the missing quotesAlexander Filippov1-1/+1
Fixes: d70e7e81bfd44553f425f (setup: Use config name instead layer name) Change-Id: Iee4a49f31bfbe137532f9be30277857d408cf7d5 Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
2019-06-11setup: Use config name instead layer nameAlexander Filippov1-16/+20
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 <a.filippov@yadro.com>
2018-09-28setup: Allow user to pass in the build directory nameAmithash Prasad1-2/+7
This can be extremely useful if one is working on multiple platforms simultaneously Change-Id: I316ef106d972413221ab2691dfc727f8f9bcffa8 Signed-off-by: Amithash Prasad <amithash@fb.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-08-23[Subtree] Bring openbmc machines to top levelDave Cobbley1-17/+15
The new subtree model brings the subtrees up from the openbmc-machines layer. Change-Id: I58a03ae1be374bc79ae1438e65e888375d12d0c0 Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-04-26Refix 68a967d: setup: Fix subshell spawningAlexander Amelkin1-2/+19
* Fix subshell spawning due to `sort`. Subshell spawning effectively prevented the script from working. Now `sort` is only invoked for `setup` without arguments; * Add a license/copyright header Change-Id: I643a91cae14e5ddb8e6efe154d325baaab3d0100 Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com>
2018-02-14Add setup script for easy openbmc env setupAlexander Amelkin1-0/+43
Before this commit it was required to specify a long TEMPLATECONF string before running openbmc-env if one wanted to build a non-qemu image. This commit adds a simple setup script that can be sourced like the following to setup the environment for any machine (e.g., for palmetto): . setup palmetto Change-Id: Id3fa73dca9b8ce9347cf38e41fe8662c03ea84e3 Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com>