Skip to content
Snippets Groups Projects
Commit 96f50d50 authored by Moritz Eckert's avatar Moritz Eckert
Browse files

Update build stuff

parent 250158d6
Branches
No related tags found
No related merge requests found
.PHONY: all clean .PHONY: all clean
all: x86_64 all:
@echo "ARCH not specified!"
x86_64: x.c util.c x86_64: x.c util.c
./build-diet.sh x86_64 ./build-diet.sh x86_64
......
#!/bin/sh #!/bin/sh
set -v
if [ $# -lt 1 ]; then if [ $# -lt 1 ]; then
echo "Usage: $0 <ARCH> <CROSS>" echo "Usage: $0 <ARCH> <CROSS>"
exit 1 exit 1
...@@ -12,7 +10,7 @@ if [ ! -d ./dietlibc ]; then ...@@ -12,7 +10,7 @@ if [ ! -d ./dietlibc ]; then
fi fi
cd dietlibc cd dietlibc
make clean
if [ $1 = "arm" ]; then if [ $1 = "arm" ]; then
make ARCH="$1" CROSS=arm-linux-gnueabihf- make ARCH="$1" CROSS=arm-linux-gnueabihf-
elif [ $1 = "i386" ]; then elif [ $1 = "i386" ]; then
...@@ -20,4 +18,5 @@ elif [ $1 = "i386" ]; then ...@@ -20,4 +18,5 @@ elif [ $1 = "i386" ]; then
elif [ $1 = "x86_64" ]; then elif [ $1 = "x86_64" ]; then
make ARCH="$1" make ARCH="$1"
fi fi
cd .. cd ..
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment