Skip to content
Snippets Groups Projects
Unverified Commit a01818f6 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

scripts: target_config_lib: remove handling for targets without devices

Another leftover from legacy OpenWrt targets, which we don't support
anymore.
parent 16227efd
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,6 @@ lib.include(target)
lib.check_devices()
if #lib.devices > 0 then
handle_target_pkgs(lib.target_packages)
for _, dev in ipairs(lib.devices) do
......@@ -180,20 +179,5 @@ if #lib.devices > 0 then
table.concat(device_pkgs, ' ')
)
end
else
-- x86 fallback: no devices
local target_pkgs = {}
local function handle_pkgs(pkgs)
target_pkgs = concat_list(target_pkgs, pkgs)
end
-- Just hardcode the class for device-less targets to 'standard'
-- - this is x86 only at the moment, and it will have devices
-- in OpenWrt 19.07 + 1 as well
handle_pkgs(lib.target_packages)
handle_pkgs(class_packages('standard'))
handle_target_pkgs(target_pkgs)
end
return lib
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment