Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
581eef04
Commit
581eef04
authored
20 years ago
by
jacob
Browse files
Options
Downloads
Patches
Plain Diff
Merge in external patches support
parent
f74d12ae
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/lmake
+22
-13
22 additions, 13 deletions
build/lmake
with
22 additions
and
13 deletions
build/lmake
+
22
−
13
View file @
581eef04
...
...
@@ -182,7 +182,11 @@ check_options()
get_lustre_version
()
{
lustre_patch
=
$(
grep
lustre_version
"
$SERIES_FILE
"
2>/dev/null
)
for
series
in
$SERIES
;
do
SERIES_FILE
=
"
$TOPDIR
/lustre/kernel_patches/series/
$series
"
lustre_patch
=
$(
grep
lustre_version
"
$SERIES_FILE
"
2>/dev/null
)
[
"
$lustre_patch
"
]
&&
break
done
[
"
$lustre_patch
"
]
||
\
fatal 1
"Could not determine Lustre version from
$SERIES
series."
...
...
@@ -208,10 +212,12 @@ load_target()
fatal 1
"Target
$TARGET
's kernel file
$KERNEL
not found in kernel directory
$KERNELDIR
."
fi
if
[
"
$SERIES
"
]
;
then
SERIES_FILE
=
"
$TOPDIR
/lustre/kernel_patches/series/
$SERIES
"
[
-r
"
$SERIES_FILE
"
]
||
\
fatal 1
"Target
$TARGET
's series
$SERIES
missing from
$TOPDIR
/lustre/kernel_patches/series."
if
[
"
$SERIES
"
]
;
then
for
series
in
$SERIES
;
do
SERIES_FILE
=
"
$TOPDIR
/lustre/kernel_patches/series/
$series
"
[
-r
"
$SERIES_FILE
"
]
||
\
fatal 1
"Target
$TARGET
's series
$SERIES
missing from
$TOPDIR
/lustre/kernel_patches/series."
done
fi
TARGET_ARCH
=
${
TARGET_ARCH
:-
$BASE_ARCHS
}
...
...
@@ -270,15 +276,18 @@ patch_kernel()
((
$UNPACK_KERNEL
))
||
return
0
[
"
$SERIES
"
]
||
return
0
pushd
"
$TOPDIR
/linux"
>
/dev/null
echo
-n
"Applying patch"
for
patch
in
$(
<
"
$SERIES_FILE
"
)
;
do
PATCH_FILE
=
"
$TOPDIR
/lustre/kernel_patches/patches/
$patch
"
[
-r
"
$PATCH_FILE
"
]
||
\
fatal 1
"Patch file not found:
$patch
"
echo
-n
"
$patch
"
patch
-s
-p1
<
"
$PATCH_FILE
"
||
fatal 1
"Error applying patch
$patch
."
for
series
in
$SERIES
;
do
echo
-n
"Applying series
$series
:"
SERIES_FILE
=
"
$TOPDIR
/lustre/kernel_patches/series/
$series
"
for
patch
in
$(
<
"
$SERIES_FILE
"
)
;
do
PATCH_FILE
=
"
$TOPDIR
/lustre/kernel_patches/patches/
$patch
"
[
-r
"
$PATCH_FILE
"
]
||
\
fatal 1
"Patch file not found:
$patch
"
echo
-n
"
$patch
"
patch
-s
-p1
<
"
$PATCH_FILE
"
||
fatal 1
"Error applying patch
$patch
."
done
echo
done
echo
popd
>
/dev/null
}
...
...
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