scripts: target_lib: remove obsolete non-device image handlers

All our targets use the OpenWrt device abstraction. Since commit
6ba58c9b17c90e41b521d796ab76e5723ee017170
("generic: force per-device RootFS") building non-device targets is not
possible anymore, so we can remove these obsolete handlers.
This commit is contained in:
Matthias Schiffer 2021-12-31 14:36:30 +01:00
parent 65da23ada4
commit a0fae1f827
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -267,47 +267,6 @@ function F.device(image, name, options)
end end
end end
function F.factory_image(image, name, ext, options)
options = merge(default_options, options)
if not want_device(image, options) then
return
end
if options.deprecated and not full_deprecated then
return
end
add_image {
image = image,
name = name,
subdir = 'factory',
in_suffix = '',
out_suffix = '',
extension = ext,
aliases = options.aliases,
}
end
function F.sysupgrade_image(image, name, ext, options)
options = merge(default_options, options)
if not want_device(image, options) then
return
end
add_image {
image = image,
name = name,
subdir = 'sysupgrade',
in_suffix = '',
out_suffix = '-sysupgrade',
extension = ext,
aliases = options.aliases,
manifest_aliases = options.manifest_aliases,
}
end
function F.defaults(options) function F.defaults(options)
default_options = merge(default_options, options) default_options = merge(default_options, options)
end end