Add variables for Hash and Signature.
Add checking for EC, beacuse some platforms which use Heads use EC as
well, therefore EC firmware links are needed during transition. Before
this commit the link had not been set, and transition failed.
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
Cause of this patch: After I have added and integrated HAL - I have
added following line in dts-boot:
source $DTS_HAL
This was needed because I have used some fuctions from the HAL in the
script.
Inside DTS_HAL I had following line:
source $DTS_ENV
Because I have used some vars from the DTS_ENV in the HAL.
The problem was, that I had another line in DTS_ENV:
source $DTS_HAL
So, I got following boot workflow:
Boot
|
v
dts-boot
| /-------\
v v |
DTS_HAL->DTS_ENV
.
............
v
dts
Instead of sourcing some scripts and then launching dts script - I got a
loop betwee DTS_HAL and DTS_ENV. Therefore I decided to clean up
sourcing a bit.
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
Configurations of all supported platforms are done inside
board_config function as switch/case Bash statements. The list of
supported platforms has grown a lot since then, and the function became
unreadable, so adding and managing configurations became difficult and
error-prone.
This commit adds some default configuration values as well as tries to
reuse some configuration code.
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
This commit adds dynamically rendered submenu for functionality
implemented by private DES packages installed from Dasharo server.
Every installed package extends the submenu accroding to its needs.
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
This commit adds package management functionality: downloading and
installing packages from Dasharo server. The packages are private, the
access is granted after entering DES credentials.
Additionally this commit reworks codebase a bit, to make it more clear.
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
The header was inspired by Chromebox.
Add more hardware nad firmware information into the header.
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
This variable is initialized with value from dmiedecode -s
system-manufacturer, so SYSTEM_VENDOR name is more appropriate.
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
Reason: ignore "variable appears unsued" beacause scripts in this
directory are being sourced by other scripts in the repo, and,
therefore, so not use self declared variables.
Solutions I have also tried:
- adding "# shellcheck source=../include/dts-functions.sh" and "# shellcheck
source=../include/dts-environment.sh" to all scripts under path
./scripts/;
- adding "# shellcheck source=SCRIPTDIR/../include/dts-functions.sh" and "#
shellcheck source=SCRIPTDIR/../include/dts-environment.sh" to all scripts
under path ./scripts/;
- adding "source-path=./include" and "source-path=SCRIPTDIR/../include" to
".shellcheckrc" as well as via command line arguments and comments in shell
scriptfiles;
- mixing above solutions in different ways;
All above solutions did not work.
References:
https://www.shellcheck.net/wiki/Directivehttps://www.shellcheck.net/wiki/SC2034https://www.shellcheck.net/wiki/SC1090https://pre-commit.com/#config-args
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>