seperate downloading of the hardened malloc.

This commit is contained in:
2026-02-08 21:14:39 -07:00
parent 543de5bdce
commit 8ff4349ffb
3 changed files with 22 additions and 22 deletions

View File

@@ -3,13 +3,13 @@ set -e
dir=$(dirname "$0")
echo $dir
cd $dir
./install_dependencies.sh
./build_kernel.sh
./build_initramfs.sh
./bootstrap_filesystem.sh
./build_initramfs.sh
#./install_dependencies.sh
#./build_kernel.sh
#./build_initramfs.sh
#./bootstrap_filesystem.sh
#./build_initramfs.sh
./build_filesystem.sh
./build_image.sh
./boot_image.sh

View File

@@ -2,22 +2,6 @@
set -e
set -x
cd "$(dirname "$0")"
DIR="$(dirname "$0")"
cd ..
echo $PWD
#downloading graphene malloc
if [ ! -f ./dependencies/hardened_malloc/Makefile ]; then
cd ./dependencies/
git clone https://github.com/GrapheneOS/hardened_malloc.git
fi
cd "$(dirname "$0")"
DIR="$(dirname "$0")"
cd ..
echo $PWD
#switching to root to perform chroot
if [ "$(id -u)" -ne 0 ]; then
echo "switching from $(id -un) to root"

16
scripts/download_malloc.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -e
set -x
cd "$(dirname "$0")"
DIR="$(dirname "$0")"
cd ..
echo $PWD
#downloading graphene malloc
if [ ! -f ./dependencies/hardened_malloc/Makefile ]; then
cd ./dependencies/
git clone https://github.com/GrapheneOS/hardened_malloc.git
fi
echo 'graphene malloc downloaded.'