RTEMS | powerpc/beatnik: Convert MOTLoad GEV variables into env variables (!1276)
Gedare Bloom (@gedare)
gitlab at rtems.org
Wed Jun 17 01:02:04 UTC 2026
Gedare Bloom started a new discussion on bsps/powerpc/shared/start/motload-gev-net-env.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1276#note_152548
> + * and the values are used if there are no explictic names set.
> + */
> + char var[256];
> + struct gev_net_var vars;
> + int r;
> + if (unit < 1) {
> + return;
> + }
> + memset(&vars, 0, sizeof(vars));
> + snprintf(&var[0], sizeof(var), "RTEMS_NET_IFACE_%i", unit);
> + setenv(var, label, 1);
> + r = motload_gev_get(nvram_base, "mot-script-boot", &var[0], sizeof(var));
> + if (r > 0) {
> + const char* tftp_get = strnstr(var, "tftpGet", r);
> + if (tftp_get != NULL) {
> + const char* tftp_get_end = strnstr(tftp_get, "\n", r);
need to validate `!NULL`
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1276#note_152548
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260617/1fa6bbe2/attachment-0001.htm>
More information about the bugs
mailing list