Daniel Schaefer and Anup Patel
fe92347b9f
lib: utils/fdt: Replace strcmp with strncmp
...
Use strncmp() instead of strcmp() in __fixup_find_domain_offset()
so that it compiles fine when linking with external firmware (such
as EDK2).
Signed-off-by: Daniel Schaefer <daniel.schaefer@hpe.com >
Reviewed-by: Xiang W <wxjstz@126.com >
Reviewed-by: Abner Chang <abner.chang@hpe.com >
Reviewed-by: Anup Patel <anup.patel@wdc.com >
2021-05-19 17:35:38 +05:30
Daniel Schaefer and Anup Patel
ee7c2b27ea
lib: utils/fdt: Don't use sbi_string functions
...
When SBI is built by external firmware, we need to use their functions,
defined in libfdt_env.h.
Just like 2cfd2fc904
Signed-off-by: Daniel Schaefer <daniel.schaefer@hpe.com >
Reviewed-by: Abner Chang <abner.chang@hpe.com >
Reviewed-by: Xiang W <wxjstz@126.com >
Reviewed-by: Anup Patel <anup.patel@wdc.com >
2021-05-19 17:34:06 +05:30
Daniel Schaefer and Anup Patel
c9ef2bc7e4
lib: utils: Add strncpy macro to libfdt_env.h
...
we want to use sbi_strncpy as strncpy in the OpenSBI implementation for
libfdt.
Just like 2845d2d2cf
Signed-off-by: Daniel Schaefer <daniel.schaefer@hpe.com >
Reviewed-by: Abner Chang <abner.chang@hpe.com >
Reviewed-by: Xiang W <wxjstz@126.com >
Reviewed-by: Anup Patel <anup.patel@wdc.com >
2021-05-19 17:33:33 +05:30
Daniel Schaefer and Anup Patel
38a4b54cdc
firmware: Correct spelling mistakes
...
Signed-off-by: Daniel Schaefer <git@danielschaefer.me >
Reviewed-by: Anup Patel <anup.patel@wdc.com >
2020-05-18 10:42:29 +05:30