Subversion Repositories Kolibri OS

Rev

Rev 9762 | Rev 9797 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9762 Rev 9795
Line 973... Line 973...
973
table.sort(raw_dirs)
973
table.sort(raw_dirs)
974
for _, dir in pairs(raw_dirs) do
974
for _, dir in pairs(raw_dirs) do
975
  make_raw_command = make_raw_command .. ' && mmd -i kolibri.raw@@1M "::' .. dir .. '"'
975
  make_raw_command = make_raw_command .. ' && mmd -i kolibri.raw@@1M "::' .. dir .. '"'
976
end
976
end
Line 977... Line 977...
977
 
977
 
978
-- Put copying of raw_files into separate script to avoid 'execl: Argument list too long'
978
-- Put copying of raw_files into separate scripts to avoid 'execl: Argument list too long'
-
 
979
make_raw_command2 = "true"
979
make_raw_command2 = "true"
980
make_raw_command3 = "true"
980
-- copy files
981
-- copy files
981
for i,v in ipairs(raw_files) do
982
for i,v in ipairs(raw_files) do
982
  local_file = v[2]
983
  local_file = v[2]
-
 
984
  cmd = ' && mcopy -moi kolibri.raw@@1M "' .. local_file .. '" "::' .. v[1] .. '"'
-
 
985
  if i < 1024 then -- 1024 commands require ~100kiB which is below 128kiB with some margin
-
 
986
    make_raw_command2 = make_raw_command2 .. cmd
-
 
987
  else
-
 
988
    make_raw_command3 = make_raw_command3 .. cmd
983
  make_raw_command2 = make_raw_command2 .. ' && mcopy -moi kolibri.raw@@1M "' .. local_file .. '" "::' .. v[1] .. '"'
989
  end
Line 984... Line 990...
984
end
990
end
-
 
991
 
985
 
992
make_raw_command2_file = "make_raw_command2_file"
-
 
993
make_raw_command3_file = "make_raw_command3_file"
Line 986... Line 994...
986
make_raw_command2_file = "make_raw_command2_file"
994
tup.definerule{inputs = {}, command = "echo '" .. make_raw_command2 .. "' > " .. make_raw_command2_file, outputs = {make_raw_command2_file}}
-
 
995
tup.definerule{inputs = {}, command = "echo '" .. make_raw_command3 .. "' > " .. make_raw_command3_file, outputs = {make_raw_command3_file}}
987
tup.definerule{inputs = {}, command = "echo '" .. make_raw_command2 .. "' > " .. make_raw_command2_file, outputs = {make_raw_command2_file}}
996
 
988
 
997
table.insert(input_deps, make_raw_command2_file)