You need to your definition in kernel's Makefile. You can search "kernel/Makefile".
On Aug 13, 5:07 pm, 이광도 <chungae...@gmail.com> wrote: > Thank you for your reply.But I tried to modify the linux-arm.mk file by > adding > $(combo_target)GLOBAL_CFLAGS += \ > -mach=arm5te > -mtune=xscale \ > -msoft-float -fpic \ > .....\ > -DMY_TEST_CODE > and I coded the kernel/init/main.c like > > ... start_kernel(void) > { > ... > #ifdef MY_TEST_CODE > printk("CFLAG OK\n"); > // my test code here > #else > printk("CFLAG FAIL\n"); > // original Android code here > #endif > > } > > but print message is CFLAG FAIL. so it doesnot seem to > work. > > can you please tell me what's wrong with my work? > > 2009/8/12 Christian Kuester <c.kues...@tarent.de> > > > > > > > chungae9ri wrote: > > > #ifdef MY_TEST_CODE > > > // my test code here > > > .... > > > #else > > > // original android source here > > > ... > > > #endif > > > and want to apply that definition to all files in Android source tree. > > > Have a look at > > $android/build/core/combo/linux-arm.mk (depending on your target > > arch). > > You may be able to set global CFLAGS in this file. > > > Chris > > -- > > tarent Gesellschaft für Softwareentwicklung und IT-Beratung mbH > > Geschäftsführer: Boris Esser, Elmar Geese > > HRB AG Bonn 5168 - Ust-ID: DE122264941 > >http://www.tarent.com/ > > > Heilsbachstr. 24, 53123 Bonn, fon +49 228 52675-0, fax +49 228 52675-25 > > Weigandufer 45, 12059 Berlin, fon +49 30 5682943-30, fax +49 228 52675-25 > > Schützenstr. 18, 10117 Berlin, fon +49 30 27594853, fax +49 30 78709617 --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---