debug: add some debug to the scripts
This commit is contained in:
parent
ad42cc07f8
commit
b40f7a483c
@ -15,6 +15,7 @@ local output = {}
|
||||
|
||||
for config in pairs(lib.configs) do
|
||||
table.insert(output, config)
|
||||
io.stderr:write(config, "\n")
|
||||
end
|
||||
|
||||
-- The sort will make =y entries override =m ones
|
||||
|
@ -66,6 +66,8 @@ END_MAKE
|
||||
device_pkgs = device_pkgs .. ' ' .. pkg
|
||||
end
|
||||
|
||||
io.stderr:write("debug: in for _, dev in ipairs(lib.devices) for profile " .. profile .. "\n")
|
||||
|
||||
for _, pkg in ipairs(dev.options.packages or {}) do
|
||||
handle_pkg(pkg)
|
||||
end
|
||||
|
@ -146,15 +146,18 @@ local function add_image(image)
|
||||
end
|
||||
|
||||
function F.try_config(...)
|
||||
io.stderr:write("try_config: " .. ... .. "\n")
|
||||
M.configs[string.format(...)] = 1
|
||||
end
|
||||
|
||||
function F.config(...)
|
||||
io.stderr:write("config: " .. ... .. "\n")
|
||||
M.configs[string.format(...)] = 2
|
||||
end
|
||||
|
||||
function F.packages(pkgs)
|
||||
for _, pkg in ipairs(pkgs) do
|
||||
io.stderr:write("packages: " .. pkg .. "\n")
|
||||
table.insert(M.target_packages, pkg)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user