pnmtologo.c (89aa02edaa30e4327ebc8fca9b80795bbfd4ce9b) pnmtologo.c (3dc59489fda386bd3fedbb1787ee08619afd5aee)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Convert a logo in ASCII PNM format to C source suitable for inclusion in
4 * the Linux kernel
5 *
6 * (C) Copyright 2001-2003 by Geert Uytterhoeven <geert@linux-m68k.org>
7 */
8

--- 224 unchanged lines hidden (view full) ---

233 }
234
235 fputs("/*\n", out);
236 fputs(" * DO NOT EDIT THIS FILE!\n", out);
237 fputs(" *\n", out);
238 fprintf(out, " * Linux logo %s\n", logoname);
239 fputs(" */\n\n", out);
240 fputs("#include <linux/linux_logo.h>\n\n", out);
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Convert a logo in ASCII PNM format to C source suitable for inclusion in
4 * the Linux kernel
5 *
6 * (C) Copyright 2001-2003 by Geert Uytterhoeven <geert@linux-m68k.org>
7 */
8

--- 224 unchanged lines hidden (view full) ---

233 }
234
235 fputs("/*\n", out);
236 fputs(" * DO NOT EDIT THIS FILE!\n", out);
237 fputs(" *\n", out);
238 fprintf(out, " * Linux logo %s\n", logoname);
239 fputs(" */\n\n", out);
240 fputs("#include <linux/linux_logo.h>\n\n", out);
241 fprintf(out, "static unsigned char %s_data[] __initdata = {\n",
241 fprintf(out, "static const unsigned char %s_data[] __initconst = {\n",
242 logoname);
243}
244
245static void write_footer(void)
246{
247 fputs("\n};\n\n", out);
248 fprintf(out, "const struct linux_logo %s __initconst = {\n", logoname);
249 fprintf(out, "\t.type\t\t= %s,\n", logo_types[logo_type]);

--- 120 unchanged lines hidden (view full) ---

370 for (k = 0; k < logo_clutsize; k++)
371 if (is_equal(logo_data[i][j], logo_clut[k]))
372 break;
373 write_hex(k+32);
374 }
375 fputs("\n};\n\n", out);
376
377 /* write logo clut */
242 logoname);
243}
244
245static void write_footer(void)
246{
247 fputs("\n};\n\n", out);
248 fprintf(out, "const struct linux_logo %s __initconst = {\n", logoname);
249 fprintf(out, "\t.type\t\t= %s,\n", logo_types[logo_type]);

--- 120 unchanged lines hidden (view full) ---

370 for (k = 0; k < logo_clutsize; k++)
371 if (is_equal(logo_data[i][j], logo_clut[k]))
372 break;
373 write_hex(k+32);
374 }
375 fputs("\n};\n\n", out);
376
377 /* write logo clut */
378 fprintf(out, "static unsigned char %s_clut[] __initdata = {\n",
378 fprintf(out, "static const unsigned char %s_clut[] __initconst = {\n",
379 logoname);
380 write_hex_cnt = 0;
381 for (i = 0; i < logo_clutsize; i++) {
382 write_hex(logo_clut[i].red);
383 write_hex(logo_clut[i].green);
384 write_hex(logo_clut[i].blue);
385 }
386

--- 122 unchanged lines hidden ---
379 logoname);
380 write_hex_cnt = 0;
381 for (i = 0; i < logo_clutsize; i++) {
382 write_hex(logo_clut[i].red);
383 write_hex(logo_clut[i].green);
384 write_hex(logo_clut[i].blue);
385 }
386

--- 122 unchanged lines hidden ---