Browse Source

build: support macOS for "make update" purposes

tags/20.1.7
Franco Fichtner 4 months ago
parent
commit
e96cf8a95c
2 changed files with 6 additions and 2 deletions
  1. +4
    -2
      build/common.sh
  2. +2
    -0
      device/A10.conf

+ 4
- 2
build/common.sh View File

@@ -277,8 +277,10 @@ confirm|fingerprint|info|print)
;;
esac

PKGBIN=$(which pkg || true)

for WANT in git ${PRODUCT_WANTS}; do
if ! pkg info ${WANT} > /dev/null; then
if ! ${PKGBIN} info ${WANT} > /dev/null; then
echo ">>> Required build package '${WANT}' is not installed." >&2
exit 1
fi
@@ -298,7 +300,7 @@ git_fetch()
{
echo ">>> Fetching ${1}:"

git -C ${1} fetch --all --prune
git -C ${1} fetch --tags --prune
}

git_clone()


+ 2
- 0
device/A10.conf View File

@@ -4,6 +4,8 @@ serial_hook()
{
# We do not require any custom hooks for the A10, but for
# the sake of demonstration, we keep this little stub. :)

: # prevent syntax error
}

# unset this for generic device handling, i.e. no device suffix


Loading…
Cancel
Save