Skip to content

Commit

Permalink
build_rpi_debian_packages.sh: Separate build directory by arch
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Dec 16, 2021
1 parent 50bdc3f commit 3a6d97b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build_rpi_debian_packages.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
#!/bin/bash

ARCH=$(dpkg --print-architecture)
REPO_DIR=${REPO_DIR:-$(pwd)}
KODI_BUILD_DIR=${KODI_BUILD_DIR:-"${REPO_DIR}/build"}
KODI_BUILD_DIR=${KODI_BUILD_DIR:-"${REPO_DIR}/build_${ARCH}"}
ADDONS_TO_BUILD=${ADDONS_TO_BUILD:-""}
ADDONS_BUILD_DIR=${ADDONS_BUILD_DIR:-"${KODI_BUILD_DIR}/build/addons_build/"}
ADDONS_BUILD_DIR=${ADDONS_BUILD_DIR:-"${KODI_BUILD_DIR}/addons_build/"}
ADDONS_BUILD_NUMBER=${ADDONS_BUILD_NUMBER:-"1"}
#CPU=${CPU:-"cortex-a7"}
BUILD_TYPE=${BUILD_TYPE:-"Release"}
DEB_ARCH=${DEB_ARCH:-"armhf"}
DEB_ARCH=${DEB_ARCH:-${ARCH}}
DEB_PACK_VERSION=${DEB_PACK_VERSION:-"1"}
DEBUILD_OPTS=${DEBUILD_OPTS:-""}
BUILD_THREADS=$(( $(nproc)+2))
BUILD_THREADS=$(( $(nproc)*3/2 ))

function usage {
echo "$0: This script builds a Kodi debian package from a git repository optimized for Raspberry Pi 4.
Expand Down

0 comments on commit 3a6d97b

Please sign in to comment.