From a0fae1f827c948183f099e9b51972fed67c29855 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 31 Dec 2021 14:36:30 +0100 Subject: [PATCH] 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. --- scripts/target_lib.lua | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/scripts/target_lib.lua b/scripts/target_lib.lua index 36a6ee91..1c2395e6 100644 --- a/scripts/target_lib.lua +++ b/scripts/target_lib.lua @@ -267,47 +267,6 @@ function F.device(image, name, options) 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) default_options = merge(default_options, options) end