^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #include <stdio.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #include <stdlib.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #include <init.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) static __initdata const char *config[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) "CONFIG"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) static int __init print_config(char *line, int *add)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) int i;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) for (i = 0; i < sizeof(config)/sizeof(config[0]); i++)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) printf("%s", config[i]);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) exit(0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) __uml_setup("--showconfig", print_config,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) "--showconfig\n"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) " Prints the config file that this UML binary was generated from.\n\n"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)