2019-06-17 23:33:12 +00:00
|
|
|
local funcs = {}
|
2019-06-14 17:20:15 +00:00
|
|
|
|
2019-06-17 23:33:12 +00:00
|
|
|
function funcs.config_message(config, _, ...)
|
2019-06-14 17:20:15 +00:00
|
|
|
config(...)
|
|
|
|
end
|
|
|
|
|
2019-06-17 23:33:12 +00:00
|
|
|
function funcs.config_package(config, pkg, value)
|
2019-06-14 17:20:15 +00:00
|
|
|
config('CONFIG_PACKAGE_%s=%s', pkg, value)
|
|
|
|
end
|
|
|
|
|
2019-06-17 23:33:12 +00:00
|
|
|
local lib = dofile('scripts/target_config_lib.lua')(funcs)
|
2019-06-14 17:20:15 +00:00
|
|
|
|
|
|
|
|
2019-06-17 23:33:12 +00:00
|
|
|
local output = {}
|
|
|
|
|
|
|
|
for config in pairs(lib.configs) do
|
|
|
|
table.insert(output, config)
|
|
|
|
end
|
2019-06-14 17:20:15 +00:00
|
|
|
|
|
|
|
-- The sort will make =y entries override =m ones
|
|
|
|
table.sort(output)
|
|
|
|
for _, line in ipairs(output) do
|
|
|
|
io.stdout:write(line, '\n')
|
|
|
|
end
|