Skip to content

Commit

Permalink
Respect v35 repos for offline builds ##build
Browse files Browse the repository at this point in the history
  • Loading branch information
trufae committed Nov 5, 2021
1 parent 020d2e0 commit 42e1493
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ clean:

distclean mrproper: clean
rm -f `find . -type f -iname '*.d'`
rm -rf libr/asm/arch/arm/v35arm64/arch-arm64
rm -rf libr/asm/arch/arm/v35arm64/arch-armv7

pkgcfg:
cd libr && ${MAKE} pkgcfg
Expand Down
14 changes: 10 additions & 4 deletions preconfigure
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@ gmake --version > /dev/null 2>&1
[ $? = 0 ] && MAKE=gmake
${MAKE} -C shlr capstone > /dev/null 2>&1 || exit 1
echo OK

V35WD=libr/asm/arch/arm/v35arm64
printf "[*] Checking out vector35-arm64... "
rm -rf libr/asm/arch/arm/v35arm64/arch-arm64
${MAKE} -C libr/asm/arch/arm/v35arm64 arch-arm64 > /dev/null || exit 1
if [ ! -d "${V35WD}/arch-arm64/.git" ]; then
rm -rf ${WD}/arch-arm64
${MAKE} -C ${V35WD} arch-arm64 > /dev/null || exit 1
fi
echo OK

printf "[*] Checking out vector35-armv7... "
rm -rf libr/asm/arch/arm/v35arm64/arch-armv7
${MAKE} -C libr/asm/arch/arm/v35arm64 arch-armv7 > /dev/null || exit 1
if [ ! -d "${V35WD}/arch-armv7/.git" ]; then
rm -rf ${WD}/arch-armv7
${MAKE} -C ${V35WD} arch-armv7 > /dev/null || exit 1
fi
echo OK
if [ `uname` = Linux ]; then
./configure --with-rpath
Expand Down

0 comments on commit 42e1493

Please sign in to comment.