From 9b47f198c652a1970b906340a398ce48b5586827 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sat, 5 Oct 2019 15:52:34 +0800 Subject: [PATCH] build: Add sysroot creator script --- .../sysroot_scripts/sysroot-creator-naive.sh | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100755 src/build/linux/sysroot_scripts/sysroot-creator-naive.sh diff --git a/src/build/linux/sysroot_scripts/sysroot-creator-naive.sh b/src/build/linux/sysroot_scripts/sysroot-creator-naive.sh new file mode 100755 index 0000000000..8060bcd4d9 --- /dev/null +++ b/src/build/linux/sysroot_scripts/sysroot-creator-naive.sh @@ -0,0 +1,72 @@ +#!/bin/bash + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +.() { :; } + +source "${SCRIPT_DIR}/sysroot-creator-bullseye.sh" + +unset -f . + +DEBIAN_PACKAGES=' + libc6 + libc6-dev + linux-libc-dev + libgcc-10-dev + libgcc-s1 + libgomp1 + libatomic1 + libstdc++-10-dev + libstdc++6 +' + +DEBIAN_PACKAGES_AMD64=' + liblsan0 + libtsan0 +' +DEBIAN_PACKAGES_X86=' + libasan6 + libitm1 + libquadmath0 + libubsan1 +' +DEBIAN_PACKAGES_ARM=' + libasan6 + libubsan1 +' +DEBIAN_PACKAGES_ARM64=' + libasan6 + libgmp10 + libitm1 + liblsan0 + libtsan0 + libubsan1 +' +DEBIAN_PACKAGES_MIPS64EL=' +' + +# Disables libdbus workarounds +ln -sf /bin/true strip +ln -sf /bin/true arm-linux-gnueabihf-strip +ln -sf /bin/true mipsel-linux-gnu-strip +ln -sf /bin/true mips64el-linux-gnuabi64-strip +export PATH="$PWD:$PATH" +cp() { + [ "${2##*/}" = symbols ] && return + /bin/cp "$@" +} +rm() { + [ "${1##*/}" = default.conf ] && return + /bin/rm "$@" +} +mv() { + [ "${2##*/}" = pkgconfig ] && return + /bin/mv "$@" +} +tar() { + echo tar "$@" +} + +trap "cd $PWD; rm strip *-strip" EXIT + +. "${SCRIPT_DIR}/sysroot-creator.sh"