如何为arm(Android)重建核心工具?

时间:2016-01-12 09:14:00

标签: android dd gnu-coreutils

我正在开发一个项目,我需要为Android修改dd,但我无法弄清楚如何构建它。我使用arm-linux-gnueabi-gcc dd.c -o dd尝试了一种简单的方法,但当然这不起作用。我也找不到makefile。

是否可以构建dd或者是否需要构建toolbox或整个系统?无论如何,我该怎么做?

我找到了源代码here

编辑: 是否可以为arm构建GNU core utils?我尝试使用./configure --host=arm-linux --target=arm-linux && make,但file dd仍然返回executable, x86-64

1 个答案:

答案 0 :(得分:1)

经过大量的谷歌搜索后,我终于能够为[{ "studPersonalDetails": { "id": 0, "name": "Digvijay", "middleName": "", "lastName": "Singh", "fatherName": "abac", "motherName": "abc", "dob": "5/7/1990 12:00:00 AM" }, "clients": { "clientID": 1, "clientName": null, "clientDescriptions": null }, "studentAddress": { "address1": "12", "address2": "12", "city": "21", "state": "212", "pin": 2 }, "courseDetails": { "courseID": 12, "courseName": "12", "courseDetail": null }, "studentContacts": { "email": "12", "alternatePhone": "12", "phone": "qw" } }, { "studPersonalDetails": { "id": 0, "name": "Anil", "middleName": "kumar", "lastName": "Sharma", "fatherName": "bac", "motherName": "bac", "dob": "2/11/1989 12:00:00 AM" }, "clients": { "clientID": 1, "clientName": null, "clientDescriptions": null }, "studentAddress": { "address1": "21", "address2": "21", "city": "5456", "state": "8", "pin": 7 }, "courseDetails": { "courseID": 58, "courseName": "58", "courseDetail": null }, "studentContacts": { "email": "12", "alternatePhone": "12", "phone": "abc" } }] 构建GNU核心工具。

我首先必须将环境变量armCC设置为CXX,将arm-linux-gnueabi-gcc设置为LDFLAGS。然后我就跑了-static,那就是它。