Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
build-system
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
build-system
Commits
1e58bab1
Commit
1e58bab1
authored
Apr 11, 2020
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented 'strip' file for packages - may contain FIND and STRIP variables controlling stripping
parent
c083249d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Makefile.common
Makefile.common
+6
-1
No files found.
Makefile.common
View file @
1e58bab1
...
@@ -70,7 +70,12 @@ $(PACKAGES):
...
@@ -70,7 +70,12 @@ $(PACKAGES):
rm
-rf
work
rm
-rf
work
rm
-rf
mnt
rm
-rf
mnt
mkdir
-p
/usr/share/packages
mkdir
-p
/usr/share/packages
find root
-type
f
!
-name
vmlinu
*
-exec
strip
--strip-unneeded
-K
grub_mod_init
-K
grub_mod_fini
'{}'
';'
2> /dev/null
if
[
-f
/build/packages/
$(
firstword
$(
subst
., ,
$@
))
/strip
]
;
then
\
source
/build/packages/
$(
firstword
$(
subst
., ,
$@
))
/strip
;
\
find root
-type
f
$$
FIND
-exec
strip
--strip-unneeded
$$
STRIP
'{}'
';'
2> /dev/null
;
\
else
\
find root
-type
f
-exec
strip
--strip-unneeded
'{}'
';'
2> /dev/null
;
\
fi
find root
-type
c
-exec
bash
-c
"FILE=
\$
$
(ls -l '{}' | awk '/0, 0/ {print
\$
$NF
}'); if [ ! -z
\$
$FILE
]; then MAIN=
\$
$
(echo
\$
$FILE
| sed -e 's/root//'); rm -rf
\$
$MAIN
\$
$FILE
; fi"
';'
find root
-type
c
-exec
bash
-c
"FILE=
\$
$
(ls -l '{}' | awk '/0, 0/ {print
\$
$NF
}'); if [ ! -z
\$
$FILE
]; then MAIN=
\$
$
(echo
\$
$FILE
| sed -e 's/root//'); rm -rf
\$
$MAIN
\$
$FILE
; fi"
';'
find root
-type
f
-exec
md5sum
'{}'
';'
|
sed
-e
's/ root/ /'
>>
/usr/share/packages/
$@
.md5
find root
-type
f
-exec
md5sum
'{}'
';'
|
sed
-e
's/ root/ /'
>>
/usr/share/packages/
$@
.md5
if
[
-s
/usr/share/packages/
$@
.md5
]
;
then
\
if
[
-s
/usr/share/packages/
$@
.md5
]
;
then
\
...
...
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