View | Details | Raw Unified | Return to bug 192957
Collapse All | Expand All

(-)yast2/library/modules/Arch.ycp (+34 lines)
Lines 220-225 global string board_compatible () { Link Here
220
	{
220
	{
221
	    _board_compatible = "wintel";
221
	    _board_compatible = "wintel";
222
	}
222
	}
223
	// hwinfo expects CHRP/PReP/iSeries/MacRISC* in /proc/cpuinfo
224
	// there is no standard for the board identification
225
	// Cell and Maple based boards have no CHRP in /proc/cpuinfo
226
	if (ppc () && _board_compatible == nil)
227
	{
228
	   map device_type = (map) SCR::Execute (.target.bash_output, "echo `cat /proc/device-tree/device_type`" , $[]);
229
	   map model = (map) SCR::Execute (.target.bash_output, "echo `cat /proc/device-tree/model`" , $[]);
230
	   string board = model["stdout"]:"";
231
	   y2milestone("model %1 , device_type %2\n", model, device_type);
232
	   // catch remaining IBM boards
233
	   if (device_type["stdout"] == "chrp")
234
	   {
235
	     _board_compatible = "CHRP";
236
	   }
237
	   else
238
	   {
239
	      // Maple has its own way of pretenting OF1275 compliance
240
	      if (board == "Momentum,Maple-D" || board == "Momentum,Maple-L" || board == "Momentum,Maple")
241
	      {
242
	         _board_compatible = "CHRP";
243
	      }
244
	      if (board == "Pegasos2")
245
	      {
246
	         _board_compatible = "Pegasos";
247
	      }
248
	   }
249
	}
223
	// avoid future re-probing if probing failed
250
	// avoid future re-probing if probing failed
224
	// also avoid passing nil outside the module
251
	// also avoid passing nil outside the module
225
	if (board_compatible == nil)
252
	if (board_compatible == nil)
Lines 277-282 global boolean board_prep () { Link Here
277
}
304
}
278
305
279
/**
306
/**
307
 * true for all "Pegasos" ppc boards
308
 */
309
global boolean board_pegasos () {
310
    return ppc () && board_compatible () == "Pegasos";
311
}
312
313
/**
280
 * true for all "Windows/Intel" compliant boards (x86 based)
314
 * true for all "Windows/Intel" compliant boards (x86 based)
281
 */
315
 */
282
global boolean board_wintel () {
316
global boolean board_wintel () {

Return to bug 192957