Convert the U-Boot command line into FreeBSD kenv and boot options. */
| 130 | |
| 131 | /* Convert the U-Boot command line into FreeBSD kenv and boot options. */ |
| 132 | static void |
| 133 | cmdline_set_env(char *cmdline, const char *guard) |
| 134 | { |
| 135 | size_t guard_len; |
| 136 | |
| 137 | /* Skip leading spaces. */ |
| 138 | while (isspace(*cmdline)) |
| 139 | cmdline++; |
| 140 | |
| 141 | /* Test and remove guard. */ |
| 142 | if (guard != NULL && guard[0] != '\0') { |
| 143 | guard_len = strlen(guard); |
| 144 | if (strncasecmp(cmdline, guard, guard_len) != 0) |
| 145 | return; |
| 146 | cmdline += guard_len; |
| 147 | } |
| 148 | |
| 149 | boothowto |= boot_parse_cmdline(cmdline); |
| 150 | } |
| 151 | |
| 152 | void |
| 153 | parse_fdt_bootargs(void) |
no test coverage detected