Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
ffbs-gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ffbs
ffbs-gluon
Commits
1df243d1
Commit
1df243d1
authored
5 years ago
by
David Bauer
Committed by
David Bauer
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
build: add class specific GLUON_FEATURES
parent
7903d9eb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+21
-13
21 additions, 13 deletions
Makefile
docs/user/site.rst
+12
-2
12 additions, 2 deletions
docs/user/site.rst
with
33 additions
and
15 deletions
Makefile
+
21
−
13
View file @
1df243d1
...
@@ -112,22 +112,30 @@ lint-sh: FORCE
...
@@ -112,22 +112,30 @@ lint-sh: FORCE
@
scripts/lint-sh.sh
@
scripts/lint-sh.sh
GLUON_DEFAULT_PACKAGES
:=
hostapd-mini
GLUON_DEFAULT_PACKAGES
:=
hostapd-mini
GLUON_CLASS_PACKAGES_standard
:=
define
merge_lists
GLUON_CLASS_PACKAGES_tiny
:=
$(1)
:=
$(
foreach
pkg,
$(
2
)
,
$(
1
)
:
=
$$(
strip
$$(
filter-out -
$$(
patsubst -%,%,
$(
pkg
))
$$(
patsubst -%,%,
$(
pkg
))
,
$$(
value
$(
1
)))
$(
pkg
))
)
endef
GLUON_FEATURE_PACKAGES
:=
$(
shell scripts/features.sh
'
$(
GLUON_FEATURES
)
'
||
echo
'__ERROR__'
)
define
feature_packages
ifneq
($(filter __ERROR__,$(GLUON_FEATURE_PACKAGES)),)
$(1)
:=
$(
shell scripts/features.sh
'
$(
2
)
'
||
echo
'__ERROR__'
)
$(
error
Error
while
evaluating GLUON_FEATURES
)
endef
endif
$(
eval
$(
call merge_lists,GLUON_FEATURE_LIST_standard,
$(
GLUON_FEATURES
)
$(
GLUON_FEATURES_standard
)))
$(
eval
$(
call merge_lists,GLUON_FEATURE_LIST_tiny,
$(
GLUON_FEATURES
)
$(
GLUON_FEATURES_tiny
)))
GLUON_PACKAGES
:=
$(
eval
$(
call feature_packages,GLUON_FEATURE_PACKAGES_standard,
$(
GLUON_FEATURE_LIST_standard
)))
define
merge_packages
$(
eval
$(
call feature_packages,GLUON_FEATURE_PACKAGES_tiny,
$(
GLUON_FEATURE_LIST_tiny
)))
$(
foreach
pkg,
$(
1
)
,
GLUON_PACKAGES :
=
$$(
strip
$$(
filter-out -
$$(
patsubst -%,%,
$(
pkg
))
$$(
patsubst -%,%,
$(
pkg
))
,
$$(
GLUON_PACKAGES
))
$(
pkg
))
ifneq
($(filter __ERROR__,$(GLUON_FEATURES_standard) $(GLUON_FEATURES_tiny)),)
)
$(
error
Error
while
evaluating features
)
endef
endif
$(
eval
$(
call merge_packages,
$(
GLUON_DEFAULT_PACKAGES
)
$(
GLUON_FEATURE_PACKAGES
)
$(
GLUON_SITE_PACKAGES
)))
$(
eval
$(
call merge_lists,GLUON_DEFAULT_PACKAGES,
$(
GLUON_DEFAULT_PACKAGES
)
$(
GLUON_SITE_PACKAGES
)))
$(
eval
$(
call merge_lists,GLUON_CLASS_PACKAGES_standard,
$(
GLUON_FEATURE_PACKAGES_standard
)))
$(
eval
$(
call merge_lists,GLUON_CLASS_PACKAGES_tiny,
$(
GLUON_FEATURE_PACKAGES_tiny
)))
LUA
:=
openwrt/staging_dir/hostpkg/bin/lua
LUA
:=
openwrt/staging_dir/hostpkg/bin/lua
...
...
This diff is collapsed.
Click to expand it.
docs/user/site.rst
+
12
−
2
View file @
1df243d1
...
@@ -527,8 +527,18 @@ GLUON_DEPRECATED
...
@@ -527,8 +527,18 @@ GLUON_DEPRECATED
deployments of low-flash devices are required).
deployments of low-flash devices are required).
GLUON_FEATURES
GLUON_FEATURES
Defines a list of features to include. The feature list is used to generate
Defines a list of features to include. Depending on the device, the feature list
the default package set.
defined from this value is combined with the feature list for either the standard
or the tiny device-class. The resulting feature list is used to generate the default
package set.
GLUON_FEATURES_standard
Defines a list of additional features to include or exclude for devices of
the standard device-class.
GLUON_FEATURES_tiny
Defines a list of additional features to include or exclude for devices of
the tiny device-class.
GLUON_SITE_PACKAGES
GLUON_SITE_PACKAGES
Defines a list of packages which should be installed in addition to the
Defines a list of packages which should be installed in addition to the
...
...
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