Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ffbs
gluon
Commits
c4109b34
Commit
c4109b34
authored
10 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
Add DATE and PRIORITY fields to the manifest
parent
d376f4d4
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
+19
-12
19 additions, 12 deletions
Makefile
scripts/rfc3339date.lua
+5
-0
5 additions, 0 deletions
scripts/rfc3339date.lua
with
24 additions
and
12 deletions
Makefile
+
19
−
12
View file @
c4109b34
...
...
@@ -90,7 +90,8 @@ toolchain/% package/% target/%: FORCE
+@
$(
GLUONMAKE
)
$@
manifest
:
FORCE
[
-n
"
$(
GLUON_BRANCH
)
"
]
||
(
echo
'Please set GLUON_BRANCH to create a manifest.'
;
false
)
[
-n
'
$(
GLUON_BRANCH
)
'
]
||
(
echo
'Please set GLUON_BRANCH to create a manifest.'
;
false
)
echo
'
$(
GLUON_PRIORITY
)
'
|
grep
-qE
'^([0-9]*\.)?[0-9]+$$'
||
(
echo
'Please specify a numeric value for GLUON_PRIORITY to create a manifest.'
;
false
)
@$(
CheckExternal
)
+@
$(
GLUONMAKE_EARLY
)
maybe-prepare-target
+@
$(
GLUONMAKE
)
$@
...
...
@@ -342,17 +343,23 @@ images: $(patsubst %,call_image/%,$(PROFILES)) ;
manifest
:
FORCE
mkdir
-p
$(
GLUON_IMAGEDIR
)
/sysupgrade
(
cd
$(
GLUON_IMAGEDIR
)
/sysupgrade
&&
echo
'BRANCH=
$(
GLUON_BRANCH
)
'
&&
echo
&&
(
$(
foreach profile,
$(
PROFILES
)
,
\
$(
foreach model,
$(
GLUON_
$(
profile
)
_MODELS
)
,
\
for
file
in
gluon-
*
-
'
$(
GLUON_
$(
profile
)
_MODEL_
$(
model
))
-sysupgrade.bin'
;
do
\
[
-e
"
$$
file"
]
&&
echo
\
'
$(
GLUON_
$(
profile
)
_MODEL_
$(
model
))
'
\
"
$$(
echo "
$$
file
" | sed -n -r -e 's/^gluon-
$(
call regex-escape,
$(
GLUON_SITE_CODE
))
-(.*
)
-
$(
call regex-escape,
$(
GLUON_
$(
profile
)
_MODEL_
$(
model
)))
-sysupgrade
\.
bin
$$
/
\1
/p'
)
"
\
"
$$($(
SHA512SUM
)
"
$$
file
"
)
"
\
"
$$
file"
&&
break
;
\
done
;
\
)
\
)
:
))
>
$(
GLUON_IMAGEDIR
)
/sysupgrade/
$(
GLUON_BRANCH
)
.manifest
(
cd
$(
GLUON_IMAGEDIR
)
/sysupgrade
&&
\
echo
'BRANCH=
$(
GLUON_BRANCH
)
'
&&
\
echo
'DATE=
$(
shell
$(
STAGING_DIR_HOST
)
/bin/lua
$(
GLUONDIR
)
/scripts/rfc3339date.lua
)
'
&&
\
echo
'PRIORITY=
$(
GLUON_PRIORITY
)
'
&&
\
echo
&&
\
(
$(
foreach profile,
$(
PROFILES
)
,
\
$(
foreach model,
$(
GLUON_
$(
profile
)
_MODELS
)
,
\
for
file
in
gluon-
*
-
'
$(
GLUON_
$(
profile
)
_MODEL_
$(
model
))
-sysupgrade.bin'
;
do
\
[
-e
"
$$
file"
]
&&
echo
\
'
$(
GLUON_
$(
profile
)
_MODEL_
$(
model
))
'
\
"
$$(
echo "
$$
file
" | sed -n -r -e 's/^gluon-
$(
call regex-escape,
$(
GLUON_SITE_CODE
))
-(.*
)
-
$(
call regex-escape,
$(
GLUON_
$(
profile
)
_MODEL_
$(
model
)))
-sysupgrade
\.
bin
$$
/
\1
/p'
)
"
\
"
$$($(
SHA512SUM
)
"
$$
file
"
)
"
\
"
$$
file"
&&
break
;
\
done
;
\
)
\
)
:
)
\
)
>
$(
GLUON_IMAGEDIR
)
/sysupgrade/
$(
GLUON_BRANCH
)
.manifest
.PHONY
:
all images prepare clean gluon-tools
...
...
This diff is collapsed.
Click to expand it.
scripts/rfc3339date.lua
0 → 100644
+
5
−
0
View file @
c4109b34
local
time
=
os.time
()
local
timestamp
=
os.date
(
'%F %T'
,
time
)
local
timezone
=
os.date
(
'%z'
,
time
):
gsub
(
'^
(
[+-]%d%d
)(
%
d
%
d
)
$
', '
%
1
:
%
2
')
print(timestamp .. timezone)
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