I'm working on a project, where I need to modify dd for Android, but I can't figure out how to build it. I've tried a simple way using arm-linux-gnueabi-gcc dd.c -o dd, but of course that wouldn't work. And I also can't find a makefile.
Is it possible to just build dd or do I need to build toolbox or the whole system? In any case, how do I do that?
I found the source code here.
EDIT:
Is it possible to build the GNU core utils for arm? I tried using ./configure --host=arm-linux --target=arm-linux && make, but file dd still returns executable, x86-64.
After lots of googling I was finally able to build the GNU core utils for arm.
I first had to set the environment variables CC and CXX to arm-linux-gnueabi-gcc and LDFLAGS to -static. Then I just ran ./configure --target=arm-linux --host=arm-linux && make and that's it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With