Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
build
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
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
CodeLinaro
lf
build
Commits
6f69d5fb
Commit
6f69d5fb
authored
12 years ago
by
Michael Vines
Browse files
Options
Downloads
Patches
Plain Diff
vendorsetup.sh: Consider all PATCH directories for md5sum
Change-Id: If8b2459d23d4fad5dcedb4beb0c18417d1b1a773
parent
9bb2f458
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vendorsetup.sh
+4
-4
4 additions, 4 deletions
vendorsetup.sh
with
4 additions
and
4 deletions
vendorsetup.sh
+
4
−
4
View file @
6f69d5fb
...
...
@@ -36,7 +36,7 @@
__tree_md5sum
()
{
(
FILELIST
=
"
$(
find
device/qcom/b2g_common/patch
-type
f
)
device/qcom/b2g_common/vendorsetup.sh device/qcom/b2g_common/treeid.sh"
FILELIST
=
"
$(
find
$@
-type
f
)
device/qcom/b2g_common/vendorsetup.sh device/qcom/b2g_common/treeid.sh"
if
[[
-n
"
${
B2G_USE_REPO
}
"
]]
;
then
repo manifest
-r
-o
- 2>/dev/null
fi
...
...
@@ -46,6 +46,7 @@ __tree_md5sum()
__abandon_tree
()
{
rm
-f
device/qcom/b2g_common/lastpatch.md5sum
if
[[
-d
.repo
]]
;
then
repo abandon b2g_autogen_ephemeral_branch
||
true
fi
...
...
@@ -65,11 +66,10 @@ __patch_tree()
local
MD5SUM
=
unknown
if
[[
-f
device/qcom/b2g_common/lastpatch.md5sum
]]
;
then
LASTMD5SUM
=
$(
cat
device/qcom/b2g_common/lastpatch.md5sum
)
MD5SUM
=
$(
__tree_md5sum
)
MD5SUM
=
$(
__tree_md5sum
${
PATCH_DIRS
}
)
fi
if
[[
"
$LASTMD5SUM
"
!=
"
$MD5SUM
"
]]
;
then
echo
"Change detected. Applying B2G patches"
.
rm
-f
device/qcom/b2g_common/lastpatch.md5sum
__abandon_tree
...
...
@@ -179,7 +179,7 @@ __patch_tree()
echo
echo
B2G patches applied.
echo
$(
__tree_md5sum
)
>
device/qcom/b2g_common/lastpatch.md5sum
echo
$(
__tree_md5sum
${
PATCH_DIRS
}
)
>
device/qcom/b2g_common/lastpatch.md5sum
else
echo
no changes detected.
fi
...
...
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