Merge branch '2021-02-01-assorted-fixes'

- Assorted fixes
This commit is contained in:
Tom Rini 2021-02-02 09:24:10 -05:00
commit fdcb93e170
9 changed files with 26 additions and 8 deletions

View File

@ -458,7 +458,7 @@ jobs:
cat << "EOF" >> build.sh cat << "EOF" >> build.sh
if [[ "${BUILDMAN}" != "" ]]; then if [[ "${BUILDMAN}" != "" ]]; then
ret=0; ret=0;
tools/buildman/buildman -o /tmp -P -W ${BUILDMAN} ${OVERRIDE} || ret=$?; tools/buildman/buildman -o /tmp -P -E -W ${BUILDMAN} ${OVERRIDE} || ret=$?;
if [[ $ret -ne 0 ]]; then if [[ $ret -ne 0 ]]; then
tools/buildman/buildman -o /tmp -seP ${BUILDMAN}; tools/buildman/buildman -o /tmp -seP ${BUILDMAN};
exit $ret; exit $ret;

View File

@ -893,6 +893,7 @@ F: arch/nds32/
NETWORK NETWORK
M: Joe Hershberger <joe.hershberger@ni.com> M: Joe Hershberger <joe.hershberger@ni.com>
M: Ramon Fried <rfried.dev@gmail.com>
S: Maintained S: Maintained
T: git https://gitlab.denx.de/u-boot/custodians/u-boot-net.git T: git https://gitlab.denx.de/u-boot/custodians/u-boot-net.git
F: drivers/net/ F: drivers/net/

View File

@ -7,7 +7,6 @@
#include <asm-offsets.h> #include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/macro.h> #include <asm/macro.h>
#include <asm/psci.h> #include <asm/psci.h>

View File

@ -140,6 +140,12 @@ config FIT_IMAGE_POST_PROCESS
injected into the FIT creation (i.e. the blobs would have been pre- injected into the FIT creation (i.e. the blobs would have been pre-
processed before being added to the FIT image). processed before being added to the FIT image).
config FIT_PRINT
bool "Support FIT printing"
default y
help
Support printing the content of the fitImage in a verbose manner.
if SPL if SPL
config SPL_FIT config SPL_FIT

View File

@ -162,7 +162,7 @@ int fit_get_subimage_count(const void *fit, int images_noffset)
return count; return count;
} }
#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_FIT_PRINT) #if CONFIG_IS_ENABLED(FIT_PRINT) || CONFIG_IS_ENABLED(SPL_FIT_PRINT)
/** /**
* fit_image_print_data() - prints out the hash node details * fit_image_print_data() - prints out the hash node details
* @fit: pointer to the FIT format image header * @fit: pointer to the FIT format image header
@ -570,7 +570,7 @@ void fit_image_print(const void *fit, int image_noffset, const char *p)
#else #else
void fit_print_contents(const void *fit) { } void fit_print_contents(const void *fit) { }
void fit_image_print(const void *fit, int image_noffset, const char *p) { } void fit_image_print(const void *fit, int image_noffset, const char *p) { }
#endif /* !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_FIT_PRINT) */ #endif /* CONFIG_IS_ENABLED(FIR_PRINT) || CONFIG_IS_ENABLED(SPL_FIT_PRINT) */
/** /**
* fit_get_desc - get node description property * fit_get_desc - get node description property

View File

@ -423,6 +423,9 @@ int write_mbr_partitions(struct blk_desc *dev,
ext_part_sect = next_ebr; ext_part_sect = next_ebr;
} }
/* Update the partition table entries*/
part_init(dev_desc);
return 0; return 0;
} }
@ -499,6 +502,9 @@ int write_mbr_sector(struct blk_desc *dev_desc, void *buf)
return 1; return 1;
} }
/* Update the partition table entries*/
part_init(dev_desc);
return 0; return 0;
} }

View File

@ -710,8 +710,10 @@ int do_load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
if (argc > 7) if (argc > 7)
return CMD_RET_USAGE; return CMD_RET_USAGE;
if (fs_set_blk_dev(argv[1], (argc >= 3) ? argv[2] : NULL, fstype)) if (fs_set_blk_dev(argv[1], (argc >= 3) ? argv[2] : NULL, fstype)) {
log_err("Can't set block device\n");
return 1; return 1;
}
if (argc >= 4) { if (argc >= 4) {
addr = simple_strtoul(argv[3], &ep, 16); addr = simple_strtoul(argv[3], &ep, 16);

View File

@ -554,7 +554,10 @@ def pytest_runtest_protocol(item, nextitem):
""" """
log.get_and_reset_warning() log.get_and_reset_warning()
ihook = item.ihook
ihook.pytest_runtest_logstart(nodeid=item.nodeid, location=item.location)
reports = runtestprotocol(item, nextitem=nextitem) reports = runtestprotocol(item, nextitem=nextitem)
ihook.pytest_runtest_logfinish(nodeid=item.nodeid, location=item.location)
was_warning = log.get_and_reset_warning() was_warning = log.get_and_reset_warning()
# In pytest 3, runtestprotocol() may not call pytest_runtest_setup() if # In pytest 3, runtestprotocol() may not call pytest_runtest_setup() if
@ -623,4 +626,4 @@ def pytest_runtest_protocol(item, nextitem):
if failure_cleanup: if failure_cleanup:
console.cleanup_spawn() console.cleanup_spawn()
return reports return True

View File

@ -25,9 +25,10 @@
void usage(char *cmdname) void usage(char *cmdname)
{ {
fprintf(stderr, "Usage: %s -f fit file -k key file\n" fprintf(stderr, "Usage: %s -f fit file -k key file -c config name\n"
" -f ==> set fit file which should be checked'\n" " -f ==> set fit file which should be checked'\n"
" -k ==> set key file which contains the key'\n", " -k ==> set key file which contains the key'\n"
" -c ==> set the configuration name'\n",
cmdname); cmdname);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }