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
abuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
alpine
abuild
Commits
f459607d
Commit
f459607d
authored
Jul 25, 2016
by
Timo Teräs
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild: use proper strip for each subpkg according to it's arch
parent
b217bbb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
abuild.in
abuild.in
+12
-11
functions.sh.in
functions.sh.in
+1
-0
No files found.
abuild.in
View file @
f459607d
...
...
@@ -132,13 +132,6 @@ default_sanitycheck() {
esac
done
#
check
if
CARCH
,
CBUILD
,
CHOST
and
CTARGET
is
set
[
-
z
"$CHOST"
]
&&
die
"Please set CHOST in /etc/abuild.conf"
if
[
-
z
"$CARCH"
];
then
die
"Please fix CHOST, or set CARCH in abuild.conf"
fi
for
i
in
$
install
;
do
local
n
=${
i
%.*}
local
suff
=${
i
##*.}
...
...
@@ -1502,10 +1495,10 @@ default_dbg() {
mkdir
-
p
$
dstdir
fi
cd
$
srcdir
objcopy
--
only
-
keep
-
debug
$
srcfile
$
dstfile
objcopy
--
add
-
gnu
-
debuglink
=$
dstfile
$
srcdir
/$
srcfile
${
CROSS_COMPILE
}
objcopy
--
only
-
keep
-
debug
$
srcfile
$
dstfile
${
CROSS_COMPILE
}
objcopy
--
add
-
gnu
-
debuglink
=$
dstfile
$
srcdir
/$
srcfile
mv
$
dstfile
$
dstdir
strip
$
srcfile
${
CROSS_COMPILE
}
strip
$
srcfile
done
return
0
}
...
...
@@ -1934,12 +1927,20 @@ stripbin() {
return
0
fi
cd
"${subpkgdir:-$pkgdir}"
||
return
1
local
stripcmd
=
strip
case
"${subpkgarch:-$pkgarch}"
in
$
CBUILD_ARCH
)
stripcmd
=
"strip"
;;
$
CARCH
)
stripcmd
=
"${CHOST}-strip"
;;
$
CTARGET_ARCH
)
stripcmd
=
"${CTARGET}-strip"
;;
esac
msg
"Stripping binaries"
scanelf
--
recursive
--
nobanner
--
etype
"ET_DYN,ET_EXEC"
.
\
|
sed
-
e
's:^ET_DYN ::'
-
e
's:^ET_EXEC ::'
\
|
while
read
filename
;
do
XATTR
=$(
getfattr
--
match
=
""
--
dump
"${filename}"
)
${
CROSS_COMPILE
}
strip
"${filename}"
"${stripcmd}"
"${filename}"
[
-
n
"$XATTR"
]
&&
(
echo
"$XATTR"
|
setfattr
--
restore
=-)
done
}
...
...
functions.sh.in
View file @
f459607d
...
...
@@ -106,6 +106,7 @@ readconfig() {
[ -z "$CARCH" ] && CARCH="$(hostspec_to_arch $CHOST)"
[ -z "$CLIBC" ] && CLIBC="$(hostspec_to_libc $CHOST)"
[ -z "$CBUILD_ARCH" ] && CBUILD_ARCH="$(hostspec_to_arch $CBUILD)"
[ -z "$CTARGET_ARCH" ] && CTARGET_ARCH="$(hostspec_to_arch $CTARGET)"
[ -z "$CTARGET_LIBC" ] && CTARGET_LIBC="$(hostspec_to_libc $CTARGET)"
...
...
Natanael Copa
@ncopa
mentioned in issue
aports#11448 (closed)
·
Jun 03, 2020
mentioned in issue
aports#11448 (closed)
mentioned in issue aports#11448
Toggle commit list
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