Skip to content

Commit

Permalink
build: Align to gpio-adapter for arm
Browse files Browse the repository at this point in the history
Change-Id: Idda967b76984a0c23072f6f5a6fb6a81cf89ce4e
Relate-to: kelly/node-i2c#17
Signed-off-by: Philippe Coval <[email protected]>
  • Loading branch information
rzr committed Jan 15, 2020
1 parent 7950a17 commit a7e90f9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ else
NODE_VERSION="$(node --version)"
TARFILE_SUFFIX="-${ADDON_ARCH}-${NODE_VERSION/\.*/}"
fi
if [ "${ADDON_ARCH}" == "linux-arm" ]; then
# For openwrt-linux-arm and linux-arm we need to cross compile.
if [[ "${ADDON_ARCH}" =~ "linux-arm" ]]; then
# We assume that CC and CXX are pointing to the cross compilers
npm install --only=prod
npm install --ignore-scripts --production
npm rebuild --arch=armv6l --target_arch=arm
else
npm install --only=prod
npm install --production
fi

rm -f SHA256SUMS
Expand Down

0 comments on commit a7e90f9

Please sign in to comment.