ee3c8ba8 | 12-Feb-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: fix memory allocation in HII tests
In efi_selftest we are in EFI land. We cannot call U-Boot library functions malloc() and free() but should use the boot time services instead.
Signe
efi_selftest: fix memory allocation in HII tests
In efi_selftest we are in EFI land. We cannot call U-Boot library functions malloc() and free() but should use the boot time services instead.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Alexander Graf <agraf@suse.de>
show more ...
|
5fbb2895 | 11-Feb-2019 |
Alexander Graf <agraf@suse.de> |
efi_loader: Make HII a config option
Heinrich ran into issues with HII and iPXE which lead to #SErrors on his Odroid-C2 system. We definitely do not want to regress just yet, so let's not expose the
efi_loader: Make HII a config option
Heinrich ran into issues with HII and iPXE which lead to #SErrors on his Odroid-C2 system. We definitely do not want to regress just yet, so let's not expose the HII protocols by default.
Instead, let's make it a config option that people can play with This way, we can stabilize the code in tree without breaking any users.
Once someone figures out, why this breaks iPXE (probably a NULL dereference), we can enable it by default.
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
---
v1 -> v2:
- Remove HII selftest as well
v2 -> v3:
- Make config option
show more ...
|
f38753d2 | 23-Jan-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: fix HII tests
efi_st_printf() does not support format code %ld. Anyway the format code for size_t would be %zu which isn't supported either.
We do not want any divisions to avoid inva
efi_selftest: fix HII tests
efi_st_printf() does not support format code %ld. Anyway the format code for size_t would be %zu which isn't supported either.
We do not want any divisions to avoid invalid references to integer arithmetic routines, cf. https://gcc.gnu.org/onlinedocs/gccint/Integer-library-routines.html.
As a simple remedy remove the noisy messages from the output. They are not relevant for automated testing.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
6c75db07 | 21-Jan-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: do not use symbolic links
Symbolic links are not supported on all file systems, e.g. not on FAT. So it is not wise to use them in our source tree.
Use a qualified path to refer to lib/e
efi_loader: do not use symbolic links
Symbolic links are not supported on all file systems, e.g. not on FAT. So it is not wise to use them in our source tree.
Use a qualified path to refer to lib/efi_loader/efi_freestanding.c in scripts/Makefile.lib instead.
Reported-by: Alexander Graf <agraf@suse.de> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> [agraf: Fix build with O=] Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
2013c685 | 20-Jan-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: use freestanding library for efi apps
GCC requires that freestanding programs provide memcpy(), memmove(), memset(), and memcmp().
Add the library functions when building a *.efi files.
efi_loader: use freestanding library for efi apps
GCC requires that freestanding programs provide memcpy(), memmove(), memset(), and memcmp().
Add the library functions when building a *.efi files.
The EFI selftests might use other compilation flags. So use a symbolic link to provide lib/efi_selftest/efi_freestanding.c and compile it separately.
Reported-by: Alexander Graf <agraf@suse.de> Fixes: 5be444d14b38 ("efi_loader: consistent build flags for EFI applications") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
1170fee6 | 21-Jan-2019 |
AKASHI Takahiro <takahiro.akashi@linaro.org> |
efi_selftest: fix variables test for GetNextVariableName()
There is a bug in efi variables test. Fix it with some cosmetic improvements.
Please note that efi variables test still fails at QueryVari
efi_selftest: fix variables test for GetNextVariableName()
There is a bug in efi variables test. Fix it with some cosmetic improvements.
Please note that efi variables test still fails at QueryVariableInfo() and GetVariable(), but this is not due to a change in this patch. ==8<== Testing EFI API implementation
Selected test: 'variables'
Setting up 'variables' Setting up 'variables' succeeded
Executing 'variables' .../u-boot/lib/efi_selftest/efi_selftest_variables.c(60): TODO: QueryVariableInfo failed .../u-boot/lib/efi_selftest/efi_selftest_variables.c(131): TODO: GetVariable returned wrong length 7 .../u-boot/lib/efi_selftest/efi_selftest_variables.c(133): TODO: GetVariable returned wrong value Executing 'variables' succeeded
Boot services terminated
Summary: 0 failures ==>8==
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
0e3dc01e | 12-Jan-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: consistent build flags for EFI applications
At the same time adding and removing the -Os flag does not make any sense. Actually it leads to -Os not being used.
Signed-off-by: Heinrich S
efi_loader: consistent build flags for EFI applications
At the same time adding and removing the -Os flag does not make any sense. Actually it leads to -Os not being used.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
44e7c62a | 06-Jan-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: tpl unit test, check return values
For some API calls checks for the return values are missing.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <
efi_selftest: tpl unit test, check return values
For some API calls checks for the return values are missing.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
1309a159 | 06-Jan-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: events unit test, check return values
For some API calls checks for the return values are missing.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Gra
efi_selftest: events unit test, check return values
For some API calls checks for the return values are missing.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
3c2c54ca | 22-Oct-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: rename setup_ok
The variable name setup_ok might suggest a boolean with true indicating OK. Let's avoid the misleading name.
%s/setup_ok/setup_status/g
Suggested-by: Simon Glass <sjg
efi_selftest: rename setup_ok
The variable name setup_ok might suggest a boolean with true indicating OK. Let's avoid the misleading name.
%s/setup_ok/setup_status/g
Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
0fdb9e30 | 20-Oct-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: fix simple network protocol test
To use the simple network protocol we have to call the start service first and the initialize service second.
Signed-off-by: Heinrich Schuchardt <xypr
efi_selftest: fix simple network protocol test
To use the simple network protocol we have to call the start service first and the initialize service second.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
42910ff1 | 18-Nov-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: building sandbox with EFI_SELFTEST
Enable building the sandbox with CONFIG_EFI_SELFTEST.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@s
efi_selftest: building sandbox with EFI_SELFTEST
Enable building the sandbox with CONFIG_EFI_SELFTEST.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
34841303 | 18-Nov-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: add test for memory allocation
This unit test checks the following runtime services: AllocatePages, FreePages, GetMemoryMap
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Sig
efi_selftest: add test for memory allocation
This unit test checks the following runtime services: AllocatePages, FreePages, GetMemoryMap
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|