Re: [android-kernel] How can I reference functions in .S files

2011-11-01 Thread Zova
try this LOCAL_SRC_FILES += \ dirA/test.c\ dirB/tool.S Regards, Zova On Tue, Nov 1, 2011 at 10:38 AM, guoguo wrote: > Hello every one > > I have a tool.S like this > > .text > .align2 > .global asm_call > asm_call: > mov r0 , #0 > mov r1 , #1 > > > and I wrote

[android-kernel] How can I reference functions in .S files

2011-11-01 Thread guoguo
Hello every one I have a tool.S like this .text .align2 .global asm_call asm_call: mov r0 , #0 mov r1 , #1 and I wrote a test.c like this #include void asm_call(); int main(int argc , char **argv) { asm_call(); } My make file like this LOCAL_PATH :=$(call my-dir) include $(CLEAR_VAR