Commit Graph

8 Commits

Author SHA1 Message Date
Daniil Klimuk 8e05b0f2e2 delete explicit redirection to stdout (1>&1)
Reviewed-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk 4934117d74 include: dts-functions.sh: fix AC adapter mocking
Reviewed-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk 09258fb168 include: hal: dts-hal.sh: use $@ instead of $*
Reviewed-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk 821e7082b3 include: hal: dts-hal: add usage comment for tool_wrapper
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk 1fde2de736 include: dts-functions.sh: check_if_boot_guard_enabled add mocks
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:45 +01:00
Daniil Klimuk ef75759a38 include: dts-functions.sh: check_if_fused: add mocks
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:45 +01:00
Daniil Klimuk 5d310535f5 fix sourcing libs
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>
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