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
7779c57c
Commit
7779c57c
authored
11 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
Use site code and release number for image version strings
parent
69423034
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+2
-2
2 additions, 2 deletions
Makefile
include/gluon.mk
+6
-0
6 additions, 0 deletions
include/gluon.mk
with
8 additions
and
2 deletions
Makefile
+
2
−
2
View file @
7779c57c
...
...
@@ -195,7 +195,7 @@ prepare: FORCE
+$(GLUONMAKE)
packages
+$(GLUONMAKE)
prepare-image
touch
$(gluon_prepared_stamp)
echo
"$(GLUON_RELEASE)"
>
$(gluon_prepared_stamp)
$(gluon_prepared_stamp)
:
+
$(
GLUONMAKE
)
prepare
...
...
@@ -261,7 +261,7 @@ image: FORCE
+$(GLUONMAKE)
package_install
$(
call
Image/mkfs/prepare
)
$(_SINGLE)$(NO_TRACE_MAKE)
-C
$(TOPDIR)/target/linux/$(BOARD)/image
install
TARGET_BUILD
=
1
IB
=
1
IMG_PREFIX
=
"gluon-
$(
BOARD
)$(
if
$(
SUBTARGET
)
,-
$(
SUBTARGET
))
"
\
$(_SINGLE)$(NO_TRACE_MAKE)
-C
$(TOPDIR)/target/linux/$(BOARD)/image
install
TARGET_BUILD
=
1
IB
=
1
IMG_PREFIX
=
"gluon-
$(
GLUON_SITE_CODE
)
-
$$(
cat
$(
gluon_prepared_stamp
))
-
$(
BOARD
)$(
if
$(
SUBTARGET
)
,-
$(
SUBTARGET
))
"
\
PROFILE
=
"
$(
PROFILE
)
"
KDIR
=
"
$(
PROFILE_KDIR
)
"
TARGET_DIR
=
"
$(
TARGET_DIR
)
"
BIN_DIR
=
"
$(
BIN_DIR
)
"
TMP_DIR
=
"
$(
TMP_DIR
)
"
...
...
This diff is collapsed.
Click to expand it.
include/gluon.mk
+
6
−
0
View file @
7779c57c
...
...
@@ -25,6 +25,12 @@ $(GLUON_SITEDIR)/site.mk:
GLUON_CONFIG_VERSION
:=
$(
shell
cd
$(
GLUON_SITEDIR
)
&&
git describe
--always
--dirty
=
.
$$(
stat
-c
%Y
$(
GLUON_SITEDIR
)
/site.conf
)
2>/dev/null
||
stat
-c
%Y site.conf
)
export
GLUON_CONFIG_VERSION
GLUON_SITE_CODE
:=
$(
shell
$(
GLUONDIR
)
/scripts/site.sh site_code
)
export
GLUON_SITE_CODE
GLUON_RELEASE
?=
$(
shell
$(
GLUONDIR
)
/scripts/site.sh release
)
export
GLUON_RELEASE
define
merge-lists
$(1)
:=
$(foreach var,$(2),$(1)
:
= $$(sort $$(filter-out -% $$(patsubst -%
,
%
,
$$(filter -%
,
$$($(var))))
,
$$($(1)) $$($(var))))
...
...
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