Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon Firmware Selector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon Firmware Selector
Commits
1e88e806
Commit
1e88e806
authored
8 years ago
by
Moritz Warning
Browse files
Options
Downloads
Patches
Plain Diff
make vendormodels varaible configurable
parent
be9504b9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app.js
+2
-2
2 additions, 2 deletions
app.js
config_template.js
+2
-0
2 additions, 0 deletions
config_template.js
with
4 additions
and
2 deletions
app.js
+
2
−
2
View file @
1e88e806
...
@@ -62,8 +62,8 @@ var firmwarewizard = function() {
...
@@ -62,8 +62,8 @@ var firmwarewizard = function() {
var
vendormodels_reverse
=
{}
var
vendormodels_reverse
=
{}
// create a map of {match : [{vendor, model, default-revision}, ... ], ...}
// create a map of {match : [{vendor, model, default-revision}, ... ], ...}
for
(
var
vendor
in
vendormodels
)
{
for
(
var
vendor
in
config
.
vendormodels
)
{
var
models
=
vendormodels
[
vendor
];
var
models
=
config
.
vendormodels
[
vendor
];
for
(
var
model
in
models
)
{
for
(
var
model
in
models
)
{
var
match
=
models
[
model
];
var
match
=
models
[
model
];
if
(
typeof
match
==
'
string
'
)
{
if
(
typeof
match
==
'
string
'
)
{
...
...
This diff is collapsed.
Click to expand it.
config_template.js
+
2
−
0
View file @
1e88e806
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
*/
*/
var
config
=
{
var
config
=
{
// see devices.js for different vendor model maps
vendormodels
:
vendormodels
,
// relative image paths and branch
// relative image paths and branch
directories
:
{
directories
:
{
// some demo sources
// some demo sources
...
...
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