partially revert "add FLAG "GLUON_FOREIGN" ot make the frmework usablefor other types of firmwares"

reenable setting of
* CONFIG_TARGET_DEVICE_%s_DEVICE_%s
* CONFIG_TARGET_DEVICE_PACKAGES_%s_DEVICE_%s
* CONFIG_TARGET_PER_DEVICE_ROOTFS=y

to fix building of initramfs. This way we also honor the devices-packages, and
e.g. remove the ath9k-ct drivers in favor of ath9k. Else it causes double
inclusion of drivers and results in file-conflicts.
This commit is contained in:
Sven Roederer 2020-03-05 09:54:40 +01:00 committed by Sven Roederer
parent f45b5da0bd
commit 5d8e01e1e4
2 changed files with 5 additions and 6 deletions

View File

@ -99,12 +99,10 @@ io.stderr:write(string.format("debug: %s\n", device_pkgs))
handle_pkg(pkg)
end
if env.FOREIGN_BUILD == '' then
funcs.config_message(lib.config, string.format("unable to enable device '%s'", profile),
'CONFIG_TARGET_DEVICE_%s_DEVICE_%s=y', openwrt_config_target, profile)
lib.config('CONFIG_TARGET_DEVICE_PACKAGES_%s_DEVICE_%s="%s"',
openwrt_config_target, profile, device_pkgs)
end
funcs.config_message(lib.config, string.format("unable to enable device '%s'", profile),
'CONFIG_TARGET_DEVICE_%s_DEVICE_%s=y', openwrt_config_target, profile)
lib.config('CONFIG_TARGET_DEVICE_PACKAGES_%s_DEVICE_%s="%s"',
openwrt_config_target, profile, device_pkgs)
end

View File

@ -1,6 +1,7 @@
try_config 'CONFIG_TARGET_MULTI_PROFILE=y'
try_config 'CONFIG_TARGET_ALL_PROFILES=y'
try_config 'CONFIG_TARGET_PER_DEVICE_ROOTFS=y'
config 'CONFIG_DEVEL=y'
config 'CONFIG_TOOLCHAINOPTS=y'