mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
Make sure binutils ldscripts and binaries are packaged for toolchain
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
parent
5307722cc2
commit
8a2d91a181
3 changed files with 26 additions and 3 deletions
|
@ -23,10 +23,32 @@ build() {
|
|||
}
|
||||
|
||||
deploy() {
|
||||
local SOURCE="$1"
|
||||
local DEPLOY="$2"
|
||||
|
||||
make install
|
||||
|
||||
touch "$2/$PKGNAME.files"
|
||||
cat > "$2/$PKGNAME.desc" <<_EOF
|
||||
cat > "$DEPLOY/$PKGNAME.files" <<_EOF
|
||||
dir bin 0755 0 0
|
||||
dir lib 0755 0 0
|
||||
dir lib/ldscripts 0755 0 0
|
||||
file bin/ar 0755 0 0 $TCDIR/$TARGET/bin/ar
|
||||
file bin/as 0755 0 0 $TCDIR/$TARGET/bin/as
|
||||
file bin/ld 0755 0 0 $TCDIR/$TARGET/bin/ld
|
||||
file bin/ld.bfd 0755 0 0 $TCDIR/$TARGET/bin/ld.bfd
|
||||
file bin/nm 0755 0 0 $TCDIR/$TARGET/bin/nm
|
||||
file bin/objcopy 0755 0 0 $TCDIR/$TARGET/bin/objcopy
|
||||
file bin/objdump 0755 0 0 $TCDIR/$TARGET/bin/objdump
|
||||
file bin/ranlib 0755 0 0 $TCDIR/$TARGET/bin/ranlib
|
||||
file bin/readelf 0755 0 0 $TCDIR/$TARGET/bin/readelf
|
||||
file bin/strip 0755 0 0 $TCDIR/$TARGET/bin/strip
|
||||
_EOF
|
||||
|
||||
find -H "$TCDIR/$TARGET/lib/ldscripts" -type f \
|
||||
-printf "file lib/ldscripts/%f 0%m 0 0 %p\\n" \
|
||||
>> "$DEPLOY/$PKGNAME.files"
|
||||
|
||||
cat > "$DEPLOY/$PKGNAME.desc" <<_EOF
|
||||
name $PKGNAME
|
||||
_EOF
|
||||
}
|
||||
|
|
|
@ -64,6 +64,7 @@ deploy() {
|
|||
touch "$2/$PKGNAME.files"
|
||||
cat > "$2/$PKGNAME.desc" <<_EOF
|
||||
name $PKGNAME
|
||||
requires tc-binutils linux-dev fortify-headers
|
||||
_EOF
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
DEPENDS="crt-dev tc-pkg-config tc-file tc-pkgtool"
|
||||
DEPENDS="tc-binutils crt-dev tc-pkg-config tc-file tc-pkgtool"
|
||||
|
||||
build() {
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue