Index: soft/giet_vm/giet_python/genmap
===================================================================
--- soft/giet_vm/giet_python/genmap	(revision 401)
+++ soft/giet_vm/giet_python/genmap	(revision 411)
@@ -13,6 +13,7 @@
 # 2) The optionals "map.bin" and vsegs.ld" files are used to configure the GietVM.
 # 3) The optional "netbsd.dts" file can be used to configure NetBSD.
-# 4) The optional "arch.bib" file can be used to configure ALMOS.
-# 5) An optional "map.xml" file can be generated for debug. 
+# 4) The optional "netbsd.dts" file can be used to configure NetBSD.
+# 5) The optional "arch.bib" file can be used to configure ALMOS.
+# 6) An optional "map.xml" file can be generated for debug. 
 #######################################################################################
 # The hardware parameters  are:
@@ -57,4 +58,8 @@
                    help = 'define number of processors per cluster' )
 
+parser.add_option( '--fbf', type = 'int', dest = 'fbf_size', 
+                   default = 128,
+                   help = 'define frame buffer width and heigth' )
+
 parser.add_option( '--v', action = 'store_true', dest = 'verbose',
                    default = False,
@@ -63,4 +68,7 @@
 parser.add_option( '--netbsd', type = 'string', dest = 'netbsd_path', 
                    help = 'define pathname for the netbsd.dts file' )
+
+parser.add_option( '--linux', type = 'string', dest = 'linux_path', 
+                   help = 'define pathname for the linux.dts file' )
 
 parser.add_option( '--almos', type = 'string', dest = 'almos_path', 
@@ -99,8 +107,10 @@
 y_size        = options.y_size      # number of clusters in a column
 nprocs        = options.nprocs      # number of processors in a cluster
+fbf_size      = options.fbf_size    # frame buffer width & heigth
 
 verbose       = options.verbose     # report on map.bin generation if True
 
 netbsd_path   = options.netbsd_path # path for netbsd.dts file 
+linux_path    = options.linux_path  # path for linux.dts file 
 almos_path    = options.almos_path  # path for arch.bib file
 giet_path     = options.giet_path   # path for map.bin & vsegs.ld files
@@ -130,5 +140,5 @@
 
 # build mapping calling the function (function name)
-mapping = select.arch( x_size, y_size, nprocs )
+mapping = select.arch( x_size, y_size, nprocs, fbf_size )
 print '[genmap] platform %s build' % mapping.name 
 
@@ -172,5 +182,16 @@
     f = open ( pathname, 'w' )
     f.write( mapping.netbsd_dts() )
-    print '[genmap] %s generated for netbsd' % pathname
+    print '[genmap] %s generated' % pathname
+
+######################################################################################
+#   Generate linux.dts file if required.
+#   It is used for LINUX configuration.
+######################################################################################
+
+if ( (linux_path != None) and (arch_path != None) ):
+    pathname = linux_path + '/linux.dts'
+    f = open ( pathname, 'w' )
+    f.write( mapping.linux_dts() )
+    print '[genmap] %s generated' % pathname
 
 ######################################################################################
