Temporarily disabled the unfinished HP-PA PALO bootability preparations

This commit is contained in:
2014-03-03 20:28:36 +00:00
parent bc51ba2f09
commit 8030458fcc
10 changed files with 171 additions and 276 deletions

View File

@ -554,10 +554,17 @@ int Xorriso_status_hppa(struct XorrisO *xorriso, char *what, char *value,
int Xorriso_boot_status_non_mbr(struct XorrisO *xorriso, IsoImage *image,
char *filter, FILE *fp, int flag)
{
int i, num_boots, sa_type, ret;
char *paths[15], *line, num[4];
int i, num_boots, sa_type;
char *paths[15], *line;
#ifdef Libisofs_enable_unreleased_hppa_palO
int ret;
char num[4];
char *cmdline, *bootloader, *kernel_32, *kernel_64, *ramdisk;
#endif
line= xorriso->result_line;
sa_type= (xorriso->system_area_options & 0xfc) >> 2;
@ -591,6 +598,9 @@ int Xorriso_boot_status_non_mbr(struct XorrisO *xorriso, IsoImage *image,
return(num_boots);
}
if(sa_type == 4 || sa_type == 5) {
#ifdef Libisofs_enable_unreleased_hppa_palO
ret= iso_image_get_hppa_palo(image, &cmdline, &bootloader, &kernel_32,
&kernel_64, &ramdisk);
if(ret == 1) {
@ -602,6 +612,9 @@ int Xorriso_boot_status_non_mbr(struct XorrisO *xorriso, IsoImage *image,
sprintf(num, "%d", sa_type);
Xorriso_status_hppa(xorriso, "hdrversion", num, filter, fp, 0);
}
#endif /* ! Libisofs_enable_unreleased_hppa_palO */
return(0);
}
return(0);
@ -1289,8 +1302,14 @@ int Xorriso_set_hppa_boot_parm(struct XorrisO *xorriso, char *text, char *what,
par[0]= par[1]= par[2]= par[3]= par[4]= NULL;
if(flag & 1) {
/* Give up HP-PA boot parameters */
#ifdef Libisofs_enable_unreleased_hppa_palO
iso_image_set_hppa_palo(image, par[0], par[1], par[2], par[3], par[4],
1);
#endif
return(1);
}
if(strcmp(what, "cmdline") == 0) {
@ -1324,6 +1343,9 @@ int Xorriso_set_hppa_boot_parm(struct XorrisO *xorriso, char *text, char *what,
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
return(0);
}
#ifdef Libisofs_enable_unreleased_hppa_palO
ret= iso_image_set_hppa_palo(image, par[0], par[1], par[2], par[3], par[4],
0);
if (ret < 0) {
@ -1333,6 +1355,15 @@ int Xorriso_set_hppa_boot_parm(struct XorrisO *xorriso, char *text, char *what,
return(0);
}
return(1);
#else
strcpy(xorriso->info_text, "HP-PA boot preparations are not yet supported");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
return(0);
#endif /* ! Libisofs_enable_unreleased_hppa_palO */
}