From: Sadoon Albader Date: Fri, 25 Aug 2023 15:43:09 +0000 (+0300) Subject: split scripts to make building glibc easier X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1553779731316865d4ce03e2febc1e2c5d8be759;p=dev-env-setup.git split scripts to make building glibc easier --- diff --git a/add-sffs-flags-debian b/add-sffs-flags-debian new file mode 100644 index 0000000..81875e7 --- /dev/null +++ b/add-sffs-flags-debian @@ -0,0 +1,13 @@ +#!/bin/bash + +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi + +SCHROOT_DIR=/srv/chroot/bookworm-ppc64el-sbuild + +tee $SCHROOT_DIR/etc/dpkg/buildflags.conf << EOF +APPEND CFLAGS -mcpu=power9 -mno-altivec -mno-vsx -mno-crypto -mno-htm -mlong-double-64 +APPEND CXXFLAGS -mcpu=power9 -mno-altivec -mno-vsx -mno-crypto -mno-htm -mlong-double-64 +EOF diff --git a/mk-schroot-bookworm b/mk-schroot-bookworm index 9633549..0bb825d 100755 --- a/mk-schroot-bookworm +++ b/mk-schroot-bookworm @@ -14,7 +14,3 @@ RELEASE=bookworm sbuild-createchroot --include=eatmydata,ccache $RELEASE $SCHROOT_DIR http://127.0.0.1:3142/$DEBMIRROR/debian -tee $SCHROOT_DIR/etc/dpkg/buildflags.conf << EOF -APPEND CFLAGS -mcpu=power9 -mno-altivec -mno-vsx -mno-crypto -mno-htm -mlong-double-64 -APPEND CXXFLAGS -mcpu=power9 -mno-altivec -mno-vsx -mno-crypto -mno-htm -mlong-double-64 -EOF