split scripts to make building glibc easier
authorSadoon Albader <sadoon@soulserv.xyz>
Fri, 25 Aug 2023 15:43:09 +0000 (18:43 +0300)
committerSadoon Albader <sadoon@soulserv.xyz>
Fri, 25 Aug 2023 15:43:09 +0000 (18:43 +0300)
add-sffs-flags-debian [new file with mode: 0644]
mk-schroot-bookworm

diff --git a/add-sffs-flags-debian b/add-sffs-flags-debian
new file mode 100644 (file)
index 0000000..81875e7
--- /dev/null
@@ -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
index 963354922066700e3c71995c59402ec69ca49f8d..0bb825d820658704f04a95d2dde21f51245244fb 100755 (executable)
@@ -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