arm: fix typos in makefile for ARM m5 util and link statically
authorAnthony Gutierrez <atgutier@umich.edu>
Tue, 1 Apr 2014 16:35:31 +0000 (12:35 -0400)
committerAnthony Gutierrez <atgutier@umich.edu>
Tue, 1 Apr 2014 16:35:31 +0000 (12:35 -0400)
1) fixes a typo for clean target libgemOpJni.so -> libgem5OpJni.so
2) addes jni_gem5Op.h to clean since it is added during make
3) links the m5 utility statically since it won't work on some images otherwise

util/m5/Makefile.arm

index 99e95cc907d9c2a42b97f5c3f18f292257dac4ac..ca1bac5c230d6acc3da44c4848e4bf3e490a9b78 100644 (file)
@@ -55,7 +55,7 @@ JR=jar
 #JDK_PATH=/path/to/jdk/version_number
 
 CFLAGS=-O2 -I $(JDK_PATH)/include/ -I $(JDK_PATH)/include/linux -march=armv7-a
-LDFLAGS=-L. -lm5
+LDFLAGS=-L. -lm5 -static
 
 LIB_OBJS=m5op_arm.o
 OBJS=m5.o
@@ -84,4 +84,5 @@ gem5OpJni.jar:
        $(JR) cvf $@ jni/*.class
 
 clean:
-       rm -f *.o m5 libgemOpJni.so gem5OpJni.jar jni/*.class libm5.a
+       rm -f *.o m5 libgem5OpJni.so gem5OpJni.jar jni/*.class libm5.a \
+       jni_gem5Op.h