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
ab659611
Commit
ab659611
authored
4 years ago
by
Matthias Schiffer
Committed by
David Bauer
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
build: introduce GLUON_AUTOREMOVE flag
parent
57516fe4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+3
-2
3 additions, 2 deletions
Makefile
contrib/actions/run-build.sh
+1
-0
1 addition, 0 deletions
contrib/actions/run-build.sh
docs/user/getting_started.rst
+6
-0
6 additions, 0 deletions
docs/user/getting_started.rst
targets/generic
+5
-0
5 additions, 0 deletions
targets/generic
with
15 additions
and
2 deletions
Makefile
+
3
−
2
View file @
ab659611
...
...
@@ -44,6 +44,7 @@ $(eval $(call mkabspath,GLUON_TARGETSDIR))
$(
eval
$(
call mkabspath,GLUON_PATCHESDIR
))
GLUON_MULTIDOMAIN
?=
0
GLUON_AUTOREMOVE
?=
0
GLUON_DEBUG
?=
0
GLUON_MINIFY
?=
1
...
...
@@ -54,8 +55,8 @@ src-link gluon_base ../../package
endef
GLUON_VARS
=
\
GLUON_RELEASE GLUON_REGION GLUON_MULTIDOMAIN GLUON_DEBUG GLUON_MINIFY GLUON_DEPRECATED
GLUON_DEVICES
\
GLUON_TARGETSDIR GLUON_PATCHESDIR GLUON_TMPDIR GLUON_IMAGEDIR GLUON_PACKAGEDIR
\
GLUON_RELEASE GLUON_REGION GLUON_MULTIDOMAIN
GLUON_AUTOREMOVE
GLUON_DEBUG GLUON_MINIFY GLUON_DEPRECATED
\
GLUON_DEVICES
GLUON_TARGETSDIR GLUON_PATCHESDIR GLUON_TMPDIR GLUON_IMAGEDIR GLUON_PACKAGEDIR
\
GLUON_SITEDIR GLUON_RELEASE GLUON_BRANCH GLUON_LANGS GLUON_BASE_FEEDS
\
GLUON_TARGET BOARD SUBTARGET
...
...
This diff is collapsed.
Click to expand it.
contrib/actions/run-build.sh
+
1
−
0
View file @
ab659611
#!/bin/bash
export
BROKEN
=
1
export
GLUON_AUTOREMOVE
=
1
export
GLUON_DEPRECATED
=
1
export
GLUON_SITEDIR
=
"contrib/ci/minimal-site"
export
GLUON_TARGET
=
$1
...
...
This diff is collapsed.
Click to expand it.
docs/user/getting_started.rst
+
6
−
0
View file @
ab659611
...
...
@@ -208,6 +208,12 @@ GLUON_TARGET
Special variables
.................
GLUON_AUTOREMOVE
Setting ``GLUON_AUTOREMOVE=1`` enables the ``CONFIG_AUTOREMOVE`` OpenWrt setting, which will delete package build
directories after a package build has finished to save space. This is mostly useful for CI builds from scratch. Do
not set this flag during development (or generally, when you want you reuse your build tree for subsequent builds),
as it significantly increases incremental build times.
GLUON_DEBUG
Setting ``GLUON_DEBUG=1`` will provide firmware images including debugging symbols usable with GDB or
similar tools. Requires a device or target with at least 16 MB of flash space, e.g. `x86-64`. Unset by default.
...
...
This diff is collapsed.
Click to expand it.
targets/generic
+
5
−
0
View file @
ab659611
...
...
@@ -31,6 +31,7 @@ end
config '# CONFIG_TARGET_ROOTFS_INITRAMFS is not set'
config 'CONFIG_DEVEL=y'
config 'CONFIG_ALL_NONSHARED=y'
config '# CONFIG_PACKAGE_usbip is not set' -- fails to build
...
...
@@ -51,6 +52,10 @@ if istrue(env.GLUON_MULTIDOMAIN) then
config 'CONFIG_GLUON_MULTIDOMAIN=y'
end
if istrue(env.GLUON_AUTOREMOVE) then
config 'CONFIG_AUTOREMOVE=y'
end
if istrue(env.GLUON_DEBUG) then
config 'CONFIG_DEBUG=y'
config 'CONFIG_NO_STRIP=y'
...
...
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