Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I rebuild core utils for arm (Android)?

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.

like image 202
drZaius Avatar asked Aug 30 '25 17:08

drZaius


1 Answers

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.

like image 148
drZaius Avatar answered Sep 02 '25 07:09

drZaius