Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gluon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ffbs
gluon
Commits
6f14837b
Commit
6f14837b
authored
Nov 21, 2014
by
Matthias Schiffer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix image and manifest generation when multiple Gluon images correspond to a single OpenWrt image
parent
5b16b573
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Makefile
Makefile
+9
-9
No files found.
Makefile
View file @
6f14837b
...
...
@@ -131,8 +131,8 @@ GLUON_$(1)_MODELS :=
endef
define
GluonModel
GLUON_$(1)_MODELS
+=
$(
2
)
GLUON_$(1)_MODEL_$(
2)
:=
$(3
)
GLUON_$(1)_MODELS
+=
$(
3
)
GLUON_$(1)_MODEL_$(
3)
:=
$(2
)
endef
...
...
@@ -339,11 +339,11 @@ image: FORCE
PROFILE
=
"
$(PROFILE)
"
KDIR
=
"
$(PROFILE_KDIR)
"
TARGET_DIR
=
"
$(TARGET_DIR)
"
BIN_DIR
=
"
$(BIN_DIR)
"
TMP_DIR
=
"
$(TMP_DIR)
"
$(foreach
model,$(GLUON_$(PROFILE)_MODELS),
\
rm
-f
$(GLUON_IMAGEDIR)/factory/gluon-*-$(
GLUON_$(PROFILE)_MODEL_$(model)
).bin
&&
\
rm
-f
$(GLUON_IMAGEDIR)/sysupgrade/gluon-*-$(
GLUON_$(PROFILE)_MODEL_$(model)
)-sysupgrade.bin
&&
\
rm
-f
$(GLUON_IMAGEDIR)/factory/gluon-*-$(
model
).bin
&&
\
rm
-f
$(GLUON_IMAGEDIR)/sysupgrade/gluon-*-$(
model
)-sysupgrade.bin
&&
\
\
cp
$(BIN_DIR)/gluon-$(
model)-factory.bin
$(GLUON_IMAGEDIR)/factory/$(IMAGE_PREFIX)-$(GLUON_$(PROFILE)_MODEL_$(model)
).bin
&&
\
cp
$(BIN_DIR)/gluon-$(
model)-sysupgrade.bin
$(GLUON_IMAGEDIR)/sysupgrade/$(IMAGE_PREFIX)-$(GLUON_$(PROFILE)_MODEL_$(model)
)-sysupgrade.bin
&&
\
cp
$(BIN_DIR)/gluon-$(
GLUON_$(PROFILE)_MODEL_$(model))-factory.bin
$(GLUON_IMAGEDIR)/factory/$(IMAGE_PREFIX)-$(model
).bin
&&
\
cp
$(BIN_DIR)/gluon-$(
GLUON_$(PROFILE)_MODEL_$(model))-sysupgrade.bin
$(GLUON_IMAGEDIR)/sysupgrade/$(IMAGE_PREFIX)-$(model
)-sysupgrade.bin
&&
\
)
:
image/%
:
$(gluon_prepared_stamp)
...
...
@@ -363,10 +363,10 @@ manifest: FORCE
echo
&&
\
(
$(
foreach
profile,
$(PROFILES)
,
\
$(
foreach
model,
$
(
GLUON_
$(profile)
_MODELS
)
,
\
for
file
in
gluon-
*
-
'$(
GLUON_
$(profile)
_MODEL_
$(model)
)
-sysupgrade.bin'
;
do
\
for
file
in
gluon-
*
-
'
$(
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'
)
"
\
'
$(
model
)
'
\
"
$$
(echo "
$$
file
" | sed -n -r -e 's/^gluon-
$(
call
regex-escape,
$(GLUON_SITE_CODE)
)
-(.*
)
-
$(
call
regex-escape,
$(
model
)
)
-sysupgrade
\.
bin
$$
/
\1
/p'
)
"
\
"
$$
(
$(SHA512SUM)
"
$$
file
"
)
"
\
"
$$
file"
&&
break
;
\
done
;
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment