wok diff linld/stuff/src/LINLD.CPP @ rev 24013

linld: add quick boot switch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 18 08:56:43 2021 +0000 (2021-02-18)
parents 5c1ce90eb1d6
children c1844f1c4954
line diff
     1.1 --- a/linld/stuff/src/LINLD.CPP	Tue Jan 12 07:47:12 2021 +0000
     1.2 +++ b/linld/stuff/src/LINLD.CPP	Thu Feb 18 08:56:43 2021 +0000
     1.3 @@ -8,7 +8,11 @@
     1.4  
     1.5  extern char bzimagestr[];
     1.6  const char* cmdstr[4] = {"auto",bzimagestr,NULL,NULL};
     1.7 +#ifdef QUICK_BOOT
     1.8 +u32 cmdnum[7];
     1.9 +#else
    1.10  u32 cmdnum[5];
    1.11 +#endif
    1.12  
    1.13  inline void syntax() {
    1.14      die("Syntax:" NL
    1.15 @@ -51,7 +55,11 @@
    1.16  	    exit();
    1.17  	}
    1.18  	if (argstr(*argv,"cl|image|initrd|iso",clp) == (int) clp) continue;
    1.19 +#ifdef QUICK_BOOT
    1.20 +	if (argnum(*argv,"root|vga|mem|-b|-f*|-q*|-v*",&root_dev) >= (int) &base_himem) continue;
    1.21 +#else
    1.22  	if (argnum(*argv,"root|vga|mem|-b|-f*",&root_dev) >= (int) &base_himem) continue;
    1.23 +#endif
    1.24  	if (fileexist(*argv) != -1) {
    1.25              kernel_name=*argv;
    1.26  	    continue;