From: celticballer <and...@ae...> - 2009-04-01 14:48:05
|
Thanks for the help. I was able to edit the make file to reflect the OE environment (much easier than looking for individual headers and libs =P). I've installed it and everything seems to check out ok, haven't actually tried to monitor a pin yet or anything, but I'm able to set pins to be monitored no problem. For anyone who's interested, the things I changed in the Makefile to work with OE are below BUILD_ROOT=/home/andy/gumstix/gumstix-oe/tmp KERNELDIR?= $(BUILD_ROOT)/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/linux-2.6.21/ CROSS_COMPILE=$(BUILD_ROOT)/cross/arm-angstrom-linux-gnueabi/bin/ Thanks again for the help Dave. I'm sure I'll be back here seeking guidance sometime soon. Dave Hylands wrote: > > Hi, > >> I'm trying to build the gpio-event code from the wiki page and get the >> following error >> >> /staging_dir/bin/arm-linux-gcc -O2 -Wall -Os -march=armv5te >> -mtune=xscale >> -Wa,-mcpu=xscale -c -o gpio-event.o gpio-event.c >> make: /staging_dir/bin/arm-linux-gcc: Command not found >> make: *** [gpio-event.o] Error 127 >> >> Looking through the make file, none of the directories listed there exist >> in >> my gumstix folder anywhere. >> >> GUMSTIX_BUILDROOT = $(PWD)/../cx-1575 >> BUILD_ARM = $(wildcard >> $(GUMSTIX_BUILDROOT)/build_arm*) >> KERNELDIR ?= $(wildcard $(BUILD_ARM)/linux-*) >> CROSS_COMPILE = $(BUILD_ARM)/staging_dir/bin/arm-linux- >> >> I tried to go through and find the directories within my directories, but >> I'm not quite sure what exactly needs to be included to compile properly. >> Are there some steps I'm missing that need to be done before trying to >> make >> this code? > > So this was designed for buildroot. I'm not sure what it should be for > OE, but fundamentally, you want CROSS_COMPILE to be the fully > qualified name to get to the cross compiler, minus the gcc portion at > the end. > > find . -name "*gcc" > > executed from the root of your OE tree will probably find the > compiler. Look for files that end in -ar -ld -objcopy -objdump in the > same directory. > > Similarly, you'll need KERNEDIR to point the root of the linux tree. > You should be able to do something like: > > find . -name "System.map" > > should find the directory containing the kernel (i.e. linux-xx.xx.xx) > or something similar. > > The GUMSTIX_BUILDROOT and BUILD_ARM variable can be removed, provided > the new KERNELDIR and CROSS_COMPILE don't refer to them. > > -- > Dave Hylands > Shuswap, BC, Canada > http://www.DaveHylands.com/ > > ------------------------------------------------------------------------------ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://www.nabble.com/Making-gpio-event-Errors-tp22804981p22828213.html Sent from the Gumstix mailing list archive at Nabble.com. |