Hello All,
I'm trying to create a profile for Android.
First, I changed Makefile, and then executed make command.
but, make command was failed.
So, Could someone check the Makefile ?
error message
---
ubuntu:~/volatility-2.2/tools/linux$ make
make ARCH=arm
CROSS_COMPILE=~/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-
EXTRA_CFLAGS=-fno-pic -C ~/goldfish CONFIG_DEBUG_INFO=y
M=/home/td/volatility-2.2/tools/linux modules
make[1]: Entering directory `/home/td/goldfish'
CC [M] /home/td/volatility-2.2/tools/linux/module.o
/home/td/volatility-2.2/tools/linux/module.c:212:5: warning: "STATS" is not
defined
/home/td/volatility-2.2/tools/linux/module.c:228:5: warning: "DEBUG" is not
defined
CC [M] /home/td/volatility-2.2/tools/linux/pmem.o
In file included from /home/td/volatility-2.2/tools/linux/pmem.c:51:
/home/td/goldfish/arch/arm/include/asm/mmzone.h:21:1: warning: "NODE_DATA"
redefined
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
<snip>
/home/td/volatility-2.2/tools/linux/pmem.c: In function 'pmem_read_partial':
/home/td/volatility-2.2/tools/linux/pmem.c:142: warning: comparison of distinct pointer
types lacks a cast
make[2]: *** [/home/td/volatility-2.2/tools/linux/pmem.o] Error 1
make[1]: *** [_module_/home/td/volatility-2.2/tools/linux] Error 2
make[1]: Leaving directory `/home/td/goldfish'
make: *** [dwarf] Error 2
---
Makefile
---
obj-m += module.o
obj-m += pmem.o
KDIR := ~/goldfish
CCPATH := ~/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin
-include version.mk
all: dwarf pmem
pmem: pmem.c
$(MAKE) ARCH=arm CROSS_COMPILE=$(CCPATH)/arm-linux-androideabi-
EXTRA_CFLAGS=-fno-pic -C $(KDIR) M=$(PWD) modules
dwarf: module.c
$(MAKE) ARCH=arm CROSS_COMPILE=$(CCPATH)/arm-linux-androideabi-
EXTRA_CFLAGS=-fno-pic -C $(KDIR) CONFIG_DEBUG_INFO=y M=$(PWD) modules
dwarfdump -di module.ko > module.dwarf
$(MAKE) ARCH=arm CROSS_COMPILE=$(CCPATH)/arm-linux-androideabi-
EXTRA_CFLAGS=-fno-pic -C $(KDIR) M=$(PWD) clean
clean:
$(MAKE) ARCH=arm CROSS_COMPILE=$(CCPATH)/arm-linux-androideabi-
EXTRA_CFLAGS=-fno-pic -C $(KDIR) M=$(PWD) clean
rm module.dwarf
---
Thanks,
Tad