e5be1a6b76
This adds GLUON_BUILDTYPE, which is an option that allows specifying an alternate base configuration Other additions: - GLUON_PREFIX option to specify the filename prefix, if VERSION_DIST is set - Skip gluon target-definitions if TARGET_ALL_PROFILES is set - Allow overriding any file in targets/ by adding the file to site/ - Allow loading the original file using include_gluon() from gluon
25 lines
668 B
Plaintext
25 lines
668 B
Plaintext
config('TARGET_' .. env.BOARD, true)
|
|
if env.SUBTARGET ~= '' then
|
|
config(string.format('TARGET_%s_%s', env.BOARD, env.SUBTARGET), true)
|
|
end
|
|
|
|
local default_feeds = {}
|
|
for feed in string.gmatch(exec_capture_raw('. scripts/default_feeds.sh && echo "$DEFAULT_FEEDS"'), '%S+') do
|
|
default_feeds[feed] = true
|
|
end
|
|
|
|
for feed in string.gmatch(exec_capture_raw('. scripts/modules.sh && echo -n "$FEEDS"'), '%S+') do
|
|
if not default_feeds[feed] then
|
|
config('FEED_' .. feed, false)
|
|
end
|
|
end
|
|
|
|
if istrue(env.GLUON_DEBUG) then
|
|
config('DEBUG', true)
|
|
config('NO_STRIP', true)
|
|
config('USE_STRIP', false)
|
|
config('USE_SSTRIP', false)
|
|
|
|
try_config('TARGET_ROOTFS_PARTSIZE', 500)
|
|
end
|