mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
ccache: simplyfing package script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
30489006b7
commit
2806af3d78
@ -35,10 +35,7 @@ PKG_AUTORECONF="no"
|
|||||||
|
|
||||||
export CC=$LOCAL_CC
|
export CC=$LOCAL_CC
|
||||||
|
|
||||||
makeinstall_host() {
|
post_makeinstall_host() {
|
||||||
mkdir -p $ROOT/$TOOLCHAIN/bin
|
|
||||||
cp -f ccache $ROOT/$TOOLCHAIN/bin
|
|
||||||
|
|
||||||
# setup ccache
|
# setup ccache
|
||||||
$ROOT/$TOOLCHAIN/bin/ccache --max-size=$CCACHE_CACHE_SIZE
|
$ROOT/$TOOLCHAIN/bin/ccache --max-size=$CCACHE_CACHE_SIZE
|
||||||
|
|
||||||
@ -46,11 +43,13 @@ makeinstall_host() {
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
$ROOT/$TOOLCHAIN/bin/ccache $LOCAL_CC "\$@"
|
$ROOT/$TOOLCHAIN/bin/ccache $LOCAL_CC "\$@"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod +x $HOST_CC
|
chmod +x $HOST_CC
|
||||||
|
|
||||||
cat > $HOST_CXX <<EOF
|
cat > $HOST_CXX <<EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
$ROOT/$TOOLCHAIN/bin/ccache $LOCAL_CXX "\$@"
|
$ROOT/$TOOLCHAIN/bin/ccache $LOCAL_CXX "\$@"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod +x $HOST_CXX
|
chmod +x $HOST_CXX
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user