After following the instructions for setting up my build environment found here:

http://www.gumstix.net/Setup-and-Programming/view/Overo-Setup-and-Programming/Setting-up-a-build-environment/111.html

and successfully compiling the 'omap3-console-image', I was unable to get the 'gpio-event' app to compile under bitbake found in 'org.openembedded.dev/recipes/gpio-event' checked out via the instructions above.

My development environment is running in Ubuntu 9.10 and I am trying to compile for the Overo Earth COM on the Chestnut43 expansion board running the image found at: http://www.sakoman.com/feeds/omap3/glibc/images/overo/200910121635/omap3-console-image-overo-200910121635.tar.bz2

Here is what I get when I run 'bitbake gpio-event':

WARNING: No matches in filesystem for /home/steve/overo-oe/user.collection in COLLECTIONS
NOTE: Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to increase performance.
NOTE: Handling BitBake files: | (7489/7489) [100 %]
NOTE: Parsing finished. 7196 cached, 0 parsed, 293 skipped, 2 masked.
NOTE: Cache is clean, not saving.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 465 of 652 (ID: 8, /home/steve/overo-oe/org.openembedded.dev/recipes/gpio-event/gpio-event.bb, do_compile)
ERROR: function do_compile failed
ERROR: log data follows (/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/temp/log.do_compile.3622)
| NOTE: make CROSS_COMPILE=arm-angstrom-linux-gnueabi- KERNELDIR=/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.30-r49/git CC=arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
| make -C /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.30-r49/git M=/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- modules
| make[1]: Entering directory `/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.30-r49/git'
| scripts/Makefile.build:49: *** CFLAGS was changed in "/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/Makefile". Fix it to use EXTRA_CFLAGS.  Stop.
| make[1]: *** [_module_/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event] Error 2
| make[1]: Leaving directory `/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.30-r49/git'
| make: *** [kernel-module] Error 2
| FATAL: oe_runmake failed
NOTE: Task failed: /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/temp/log.do_compile.3622
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/steve/overo-oe/org.openembedded.dev/recipes/gpio-event/gpio-event.bb do_compile failed
ERROR: Task 8 (/home/steve/overo-oe/org.openembedded.dev/recipes/gpio-event/gpio-event.bb, do_compile) failed
NOTE: Tasks Summary: Attempted 464 tasks of which 464 didn't need to be rerun and 1 failed.
ERROR: '/home/steve/overo-oe/org.openembedded.dev/recipes/gpio-event/gpio-event.bb' failed




Following the instructions in the error output I edited "/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/Makefile" and changed all instances of 'CFLAGS' to 'EXTRA_CFLAGS', and running 'bitbake gpio-event' again, I got this new set of errors:



WARNING: No matches in filesystem for /home/steve/overo-oe/user.collection in COLLECTIONS
NOTE: Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to increase performance.
NOTE: Handling BitBake files: | (7489/7489) [100 %]
NOTE: Parsing finished. 7196 cached, 0 parsed, 293 skipped, 2 masked.
NOTE: Cache is clean, not saving.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 465 of 652 (ID: 8, /home/steve/overo-oe/org.openembedded.dev/recipes/gpio-event/gpio-event.bb, do_compile)
ERROR: function do_compile failed
ERROR: log data follows (/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/temp/log.do_compile.3779)
| NOTE: make CROSS_COMPILE=arm-angstrom-linux-gnueabi- KERNELDIR=/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.30-r49/git CC=arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
| make -C /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.30-r49/git M=/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- modules
| make[1]: Entering directory `/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.30-r49/git'
|   CC [M]  /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/gpio-event-drv.o
| /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/gpio-event-drv.c:41:31: error: asm/arch/hardware.h: No such file or directory
| /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/gpio-event-drv.c:42:31: error: asm/arch/pxa-regs.h: No such file or directory
| /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/gpio-event-drv.c: In function 'gpio_event_irq':
| /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/gpio-event-drv.c:537: error: implicit declaration of function 'GPLR'
| /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/gpio-event-drv.c:537: error: implicit declaration of function 'GPIO_bit'
| /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/gpio-event-drv.c: In function 'gpio_event_timer':
| /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/gpio-event-drv.c:652: error: implicit declaration of function 'IRQ_GPIO'
| /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/gpio-event-drv.c: In function 'gpio_event_init':
| /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/gpio-event-drv.c:1149: error: implicit declaration of function 'class_device_create'
| /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/gpio-event-drv.c: In function 'gpio_event_exit':
| /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/gpio-event-drv.c:1187: error: implicit declaration of function 'class_device_destroy'
| make[2]: *** [/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event/gpio-event-drv.o] Error 1
| make[1]: *** [_module_/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/gpio-event] Error 2
| make[1]: Leaving directory `/home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.30-r49/git'
| make: *** [kernel-module] Error 2
| FATAL: oe_runmake failed
NOTE: Task failed: /home/steve/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/gpio-event-1.0-r49/temp/log.do_compile.3779
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/steve/overo-oe/org.openembedded.dev/recipes/gpio-event/gpio-event.bb do_compile failed
ERROR: Task 8 (/home/steve/overo-oe/org.openembedded.dev/recipes/gpio-event/gpio-event.bb, do_compile) failed
NOTE: Tasks Summary: Attempted 464 tasks of which 464 didn't need to be rerun and 1 failed.
ERROR: '/home/steve/overo-oe/org.openembedded.dev/recipes/gpio-event/gpio-event.bb' failed


If anyone has any information on how to fix this OR if anyone has information on how to configure/read/write the GPIO ports on the Overo Earth COM on the Chestnut43 expansion board running the console image, your help would be much appreciated.

Steven Kane