[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbios
Subject:    [OpenBIOS] r503 - cpu/x86/pc/olpc
From:       svn () openbios ! org
Date:       2007-07-28 17:45:19
Message-ID: 200707281745.l6SHjQvZ026582 () mailer ! progressive-comp ! com
[Download RAW message or body]

Author: wmb
Date: 2007-07-28 19:45:18 +0200 (Sat, 28 Jul 2007)
New Revision: 503

Modified:
   cpu/x86/pc/olpc/mfgtree.fth
Log:
OLPC - "invent" SN (0) and U# (0) properties in /mfg-data for systems
that have no manufacturing data.



Modified: cpu/x86/pc/olpc/mfgtree.fth
===================================================================
--- cpu/x86/pc/olpc/mfgtree.fth	2007-07-27 05:29:41 UTC (rev 502)
+++ cpu/x86/pc/olpc/mfgtree.fth	2007-07-28 17:45:18 UTC (rev 503)
@@ -12,7 +12,18 @@
          >r  encode-bytes  r> 2  property   ( adr )
       repeat                                ( adr )
       drop
+      " SN" get-property  if
+         " SHF00000000" " SN" string-property
+      else
+         2drop
+      then
+      " U#" get-property  if
+         " 00000000-0000-0000-0000-000000000000" " S#" string-property
+      else
+         2drop
+      then
    device-end
+
 ;
 
 \ LICENSE_BEGIN


-- 
OpenBIOS                 http://openbios.org/
Mailinglist:  http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic