Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Commits
0fd5905f
Unverified
Commit
0fd5905f
authored
4 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
build: target_config_lib: introduce concat_list helper
parent
9be7a5ca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/target_config_lib.lua
+7
-6
7 additions, 6 deletions
scripts/target_config_lib.lua
with
7 additions
and
6 deletions
scripts/target_config_lib.lua
+
7
−
6
View file @
0fd5905f
...
...
@@ -49,14 +49,17 @@ local function append_to_list(list, item, keep_neg)
return
ret
end
local
function
co
mpac
t_list
(
list
,
keep_neg
)
local
ret
=
{}
for
_
,
el
in
ipairs
(
list
)
do
local
function
co
nca
t_list
(
a
,
b
,
keep_neg
)
local
ret
=
a
for
_
,
el
in
ipairs
(
b
)
do
ret
=
append_to_list
(
ret
,
el
,
keep_neg
)
end
return
ret
end
local
function
compact_list
(
list
,
keep_neg
)
return
concat_list
({},
list
,
keep_neg
)
end
local
function
site_vars
(
var
)
return
lib
.
exec_capture_raw
(
string.format
(
...
...
@@ -178,9 +181,7 @@ else
-- x86 fallback: no devices
local
target_pkgs
=
{}
local
function
handle_pkgs
(
pkgs
)
for
_
,
pkg
in
ipairs
(
pkgs
)
do
target_pkgs
=
append_to_list
(
target_pkgs
,
pkg
)
end
target_pkgs
=
concat_list
(
target_pkgs
,
pkgs
)
end
-- Just hardcode the class for device-less targets to 'standard'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment