Commit Graph

71 Commits

Author SHA1 Message Date
Daniil Klimuk
6d53e2cf05 integrate HAL
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:17:36 +01:00
Daniil Klimuk
d7780f288b include: hal: add
Add HAL and mocking functions.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:17:35 +01:00
Daniil Klimuk
b447b8c03e include: dts-functions: downloading artifacts: add capsules
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00
Daniil Klimuk
2aef6c34f4 Add more comments
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00
Daniil Klimuk
ecbb7b1424 include: dts-functions: fix footer rendering
Before:

*********************************************************
R to reboot  P to poweroff  S to enter shell
K to launch SSH server  L to enable sending DTS logs V to enable verbose mode
Enter an option:

Now:

*********************************************************
R to reboot  P to poweroff  S to enter shell
K to launch SSH server  L to enable sending DTS logs
V to enable verbose mode
Enter an option:

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00
Daniil Klimuk
ce92021c35 include: dts-functions.sh: fix QEMU config
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00
Daniil Klimuk
c93114f437 include: add UEFI Capusle Update configuration
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:37 +01:00
Daniil Klimuk
89367a5c1f include: dts-functions: make func verify_artifacts more reusable
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:37 +01:00
Daniil Klimuk
cee2d5b41f use test -n instead of test -v
"test -v" checks whether a variable has been declared, it does not check
its value. We sometimes use "unset" for some variables, and then check
again with "test -v". The problem is, "unset" erases variable value, but
the variable still exists, so the "test -v" will be true before, as well
as after the "unset".

We must use "test -n" (whether a variable holds non-zero length
string value) and "test -z" (whether a variable holds zero length string
value) to check string values of variables. This way the "unset" will
work.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:36 +01:00
Daniil Klimuk
3f02401b94 include: dts-functions: erase DTS menu after entering shell
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:36 +01:00
Daniil Klimuk
423221471d include: dts-functions: clean up platforms configuration
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>
2024-11-14 10:39:30 +01:00
Daniil Klimuk
43ce343a03 include: dts-functions: add QEMU q35 configuration
QEMU q35 will use UEFI Capsule Update only.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:25:43 +01:00
Daniil Klimuk
b1202bfa4e add missing shellcheck source statements
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:25:43 +01:00
Daniil Klimuk
4064f68ebe include: dts-functions.sh: bump DPP versions for MSI
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 08:52:51 +01:00
Pawel Langowski
6f16bf454e Send all log files to cloud
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-11-06 13:53:21 +01:00
Pawel Langowski
0937f53591 include/dts-functions.sh: In verbose mode, pass -x to called scripts
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-11-06 12:16:19 +01:00
Pawel Langowski
35afe437e4 include/dts-subscription.sh: Redirect mc error to error file and print message
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-10-22 11:58:44 +02:00
Pawel Langowski
098102eef2 Check if Dasharo can be installed
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-10-17 10:22:51 +02:00
Michał Iwanicki
dcb0e12214 dts-functions: fix OptiPlex DPP link
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-09-27 13:16:21 +02:00
artur-rs
6153dc9193 Merge pull request #33 from Dasharo/add-v5x0tnx
dts-functions.sh: add NovaCustom V5x0TNx
2024-09-26 18:07:07 +02:00
Michał Iwanicki
62414ae577 dts-functions: add PLATFORM_SIGN_KEY to ODROID-H4
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-09-26 16:38:53 +02:00
Michał Iwanicki
d0b8bd5bf6 include/dts-functions.sh: remove '-rc1'
Co-authored-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2024-09-26 16:38:53 +02:00
Michał Iwanicki
d8bc45d21c dts-functions.sh: add ODROID-H4+
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-09-26 16:38:48 +02:00
Michał Iwanicki
89a58299c3 dts-functions.sh: add NovaCustom V5x0TNx
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-09-25 17:16:59 +02:00
artur-rs
2eaa53cf1c Merge pull request #27 from Dasharo/send-logs
verbose + send-logs options
2024-09-17 14:59:55 +02:00