Chargement...
Recherche...
Aucune correspondance
Aller à la documentation de ce fichier. 1 A PRIORI C
'EST OBSOLETE !!
5/*----------------------------------------------------------------------------*/
6/* Outils permettant de générer un taille.conf pour la compilation de */
8/* (C) Manu Chaput 2000-2021 */
9/*----------------------------------------------------------------------------*/
15#define TAILLE_BLOC 512
17int main(int argc,char * argv[])
19 int nbBlocs ; // Nombre de blocs du noyau
20 int tailleBourage; // Pour un nombre entier de blocs
21 int premierSecteurRamDisk; // Nécessaire lors du chargement
23 struct stat statNoyau, statInit;
25 if (stat(argv[1], &statNoyau)) {
30 nbBlocs = ((int) statNoyau.st_size + TAILLE_BLOC)/TAILLE_BLOC;
31 tailleBourage = nbBlocs * TAILLE_BLOC - (int) statNoyau.st_size;
34 if (stat(argv[2], &statInit)) {
38 premierSecteurRamDisk = nbBlocs + ((int) statInit.st_size)/TAILLE_BLOC;
41 printf("# Fichier généré automatiquement, ne pas modifier\nMANUX_NB_SECT_KERNEL = %d\nMANUX_TAILLE_BOURRAGE = %d\n",