Skip to content

Commit

Permalink
Added check to Build_Tools to see if tools have already been built.
Browse files Browse the repository at this point in the history
  • Loading branch information
devttys0 committed Sep 27, 2013
1 parent 8fe7aef commit f073e18
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
26 changes: 15 additions & 11 deletions common.inc
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
Build_Tools ()
{
echo "Preparing tools ..."
cd src
if [ ! -f "./Makefile" ]; then
./configure 2>&1 >> /dev/null
fi
make -s
if [ $? -eq 0 ]; then
cd - 2>&1 >> /dev/null
else
echo "Tools build failed! Check pre-requisites. Quitting..."
exit 1
# Check to see if the tools have already been built first
if [ ! -e "./src/crcalc/crcalc" ]
then
echo "Preparing tools ..."
cd src
if [ ! -f "./Makefile" ]; then
./configure 2>&1 >> /dev/null
fi
make -s
if [ $? -eq 0 ]; then
cd - 2>&1 >> /dev/null
else
echo "Tools build failed! Check pre-requisites. Quitting..."
exit 1
fi
fi
}
2 changes: 1 addition & 1 deletion src/jffs2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CC=gcc

all:
sunjffs2:
$(CC) -Wall sunjffs2.c -o sunjffs2
chown root sunjffs2
chmod u+s sunjffs2
Expand Down

0 comments on commit f073e18

Please sign in to comment.