gluon/targets/generic
Sven Roederer a4e0b26470 gluon: (partial) add FLAG "GLUON_FOREIGN" to make the framework usable for other types of firmwares
ignored changes in MAkefile

defining this FLAG (to "1") disables / skips some things

* including gluon-core packages
* strict inclusion of some packages
* per device sepecific kernel build
* a gluon specific target/generic_gluon will be considered
2020-03-06 00:43:28 +01:00

26 lines
702 B
Plaintext

config('CONFIG_TARGET_%s=y', env.BOARD)
if env.SUBTARGET ~= '' then
config('CONFIG_TARGET_%s_%s=y', env.BOARD, env.SUBTARGET)
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('# CONFIG_FEED_%s is not set', feed)
end
end
if envtrue.GLUON_DEBUG then
config 'CONFIG_DEBUG=y'
config 'CONFIG_NO_STRIP=y'
config '# CONFIG_USE_STRIP is not set'
config '# CONFIG_USE_SSTRIP is not set'
try_config 'CONFIG_TARGET_ROOTFS_PARTSIZE=500'
end