Permalink
Browse files

Speed-up eeprom reading if only run-time muxing is performed.

  • Loading branch information...
1 parent b64e708 commit 0270ab6ad229636f22fd4d761e9de10c73137589 @piranha32 committed Mar 27, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 bbone_pinmux_tool.rb
@@ -1331,7 +1331,13 @@ def run_pinmuxing(context)
eeprom=[]
begin
eeprom_f=File.new(input_file_name,"rb")
- eeprom=eeprom_f.read
+
+ #There is no need to read the entire eeprom if no output file will be written and only run-time muxing is performed.
+ if(do_muxing && output_format=="none")
+ eeprom=eeprom_f.read(300)
+ else
+ eeprom=eeprom_f.read
+ end
eeprom_f.close
rescue Exception => e
puts "Can't read input file \"#{input_file_name}\": #{e.to_s}."

0 comments on commit 0270ab6

Please sign in to comment.