Displaying 5 results from an estimated 5 matches for "blsdata".
Did you mean:
bl_data
2019 Jul 09
0
[PATCH] core: Add support for BLS Type 1 entries
...DER_SPECIFICATION
+ * #type-1-boot-loader-specification-entries
+ */
+
+#include <ctype.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+#include <dprintf.h>
+#include "refstr.h"
+#include "bls.h"
+
+const char *get_bls_field(struct blsdata *bd, const char *fieldname) {
+ if (!bd || !fieldname)
+ return NULL;
+
+ if (strcmp(fieldname, "filename") == 0)
+ return bd->filename;
+ if (strcmp(fieldname, "title") == 0)
+ return bd->title;
+ if (strcmp(fieldname, "version") == 0)
+ return bd-&g...
2019 May 24
3
[PATCH] (vesa)menu.c32: Add support for BLS
...nt bls_version_places = 3;
+char *bls_sort_by = "machine-id version title";
+
/* Empty refstring */
const char *empty_string;
@@ -1060,6 +1066,337 @@ do_include:
}
}
+/*
+ * https://systemd.io/BOOT_LOADER_SPECIFICATION
+ * #type-1-boot-loader-specification-entries
+ */
+struct blsdata {
+ const char *title;
+ const char *version;
+ char *version0; /* version string padded with zeros */
+ const char *machine_id;
+ const char *linux_;
+ const char *initrd;
+ const char *efi;
+ char *options;
+ const char *devicetree;
+ const char *architecture;
+ c...
2019 May 25
2
[PATCH] (vesa)menu.c32: Add support for BLS
...This patch enables syslinux's
> > (vesa)menu.c32 modules to parse the drop-in files that are defined by
> > this new specification.
>
> Any reason why you don't try to implement this in syslinux core?
>
> <snip>
>
> > +static int parse_bls1_file(struct blsdata *bd, const char *filename)
> > +{
> > + FILE *f = NULL;
> > + char line[MAX_LINE], *p;
> > + char *sort_field;
> > +
> > + dprintf("Opening bls entry: %s ", filename);
> > +
> > + f = fopen(filename, "r");
> >...
2019 May 25
0
[PATCH] (vesa)menu.c32: Add support for BLS
...tributions are using this yet?
> This patch enables syslinux's
> (vesa)menu.c32 modules to parse the drop-in files that are defined by
> this new specification.
Any reason why you don't try to implement this in syslinux core?
<snip>
> +static int parse_bls1_file(struct blsdata *bd, const char *filename)
> +{
> + FILE *f = NULL;
> + char line[MAX_LINE], *p;
> + char *sort_field;
> +
> + dprintf("Opening bls entry: %s ", filename);
> +
> + f = fopen(filename, "r");
> + dprintf("%s\n", f ? "ok&q...
2019 May 27
0
[PATCH] (vesa)menu.c32: Add support for BLS
...uld enable
support for it. I guess "$BOOT/loader/entries/" is fixed as
"/loader/entries" for syslinux/extlinux/isolinux. It could depend
on "pxelinux.pathprefix" for pxelinux.
> >
> > <snip>
> >
> > > +static int parse_bls1_file(struct blsdata *bd, const char
> > > *filename) +{
> > > + FILE *f = NULL;
> > > + char line[MAX_LINE], *p;
> > > + char *sort_field;
> > > +
> > > + dprintf("Opening bls entry: %s ", filename);
> > > +
> > > + f = fo...