Skip to content

Commit

Permalink
Add missing folder
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasbakken committed Dec 29, 2023
1 parent 9c256ec commit 8611b61
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ VERSION=$1
cores=$2 # Allow define No cores

case $VERSION in
barebone|mainsail|fluidd|octoprint)
echo "🍰 Building $VERSION"
;;
*)
echo "Wrong argument '$1'"
echo "Usage: $0 <barebone|mainsail|fluidd|octoprint>"
exit 1
barebone | mainsail | fluidd | octoprint)
echo "🍰 Building $VERSION"
;;
*)
echo "Wrong argument '$1'"
echo "Usage: $0 <barebone|mainsail|fluidd|octoprint>"
exit 1
;;
esac

Expand All @@ -21,7 +21,7 @@ reported_cores=$(nproc --all)
if [ ! -z $cores ] && [ $cores -gt $reported_cores ]; then
echo "😿 Desired core count greater than reported available cores."
elif [ ! -z $cores ] && [ $cores -lt 1 ]; then
echo "🙀 Desired core count cannot be less than 1"
echo "🙀 Desired core count cannot be less than 1"
fi

if [ -z "$cores" ] || [ $cores -gt $reported_cores ] || [ $cores -lt 1 ]; then
Expand All @@ -33,7 +33,7 @@ else
fi

BUILD_DIR="../build-${VERSION}"
if ! test -d "$BUILD_DIR" ; then
if ! test -d "$BUILD_DIR"; then
echo "$BUILD_DIR missing"
git clone https://github.com/armbian/build $BUILD_DIR
fi
Expand Down Expand Up @@ -65,7 +65,8 @@ rm -f "${BUILD_DIR}/patch/u-boot/u-boot-sunxi/allwinner-boot-splash.patch"

cp armbian/watermark.png "${BUILD_DIR}"/packages/plymouth-theme-armbian/watermark.png

echo "${NAME}" > "${BUILD_DIR}"/userpatches/overlay/rebuild/rebuild-version
mkdir -p "${BUILD_DIR}"/userpatches/overlay/rebuild/
echo "${NAME}" >"${BUILD_DIR}"/userpatches/overlay/rebuild/rebuild-version

cd "$BUILD_DIR"
DOCKER_EXTRA_ARGS="--cpus=${cores}" ./compile.sh rebuild
Expand Down

0 comments on commit 8611b61

Please sign in to comment.