Skip to contentSkip to conversation

Fix compilation for OMAP3 EVM

PATCH New Vincent 2 participants 3 messages Aug 19, 2011 – Aug 20, 2011

lore
Share & tools
lore

Vincent

author
#0 lore raw

PATCH 1/1 Fix compilation for OMAP3 EVM

---
 board/ti/evm/evm.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
board/ti/evm/evm.c +0 -1
index 30c1c57..d0604e9 100644
@@ -33,7 +33,6 @@
 #include <asm/arch/mem.h>
 #include <asm/arch/mux.h>
 #include <asm/arch/sys_proto.h>
-#include <asm/arch/gpio.h>
 #include <i2c.h>
 #include <asm/mach-types.h>
 #include "evm.h"
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/1 Fix compilation for OMAP3 EVM

Quoted 10 lines · Vincent
---
  board/ti/evm/evm.c |    1 -
  1 files changed, 0 insertions(+), 1 deletions(-)
board/ti/evm/evm.c +0 -0
index 30c1c57..d0604e9 100644

board/ti/evm/evm.c line 38

Quoted 7 lines
board/ti/evm/evm.c +0 -1
@@ -33,7 +33,6 @@
  #include<asm/arch/mem.h>
  #include<asm/arch/mux.h>
  #include<asm/arch/sys_proto.h>
-#include<asm/arch/gpio.h>
  #include<i2c.h>
  #include<asm/mach-types.h>
  #include "evm.h"

On which branch do you see this issue? u-boot master? Which error do you see? Does

http://patchwork.ozlabs.org/patch/107678/

fix the issue you see, too?

Thanks

Dirk

author
#2 lore raw

PATCH 1/1 Fix compilation for OMAP3 EVM

Quoted 1 line

On which branch do you see this issue? u-boot master?

Yes, on 'master'. I used commit fa82f871c8dbc9a15e8dc274b3f99dd5fa0da458.

Quoted 1 line

Which error do you see?

evm.c:36:27: error: asm/arch/gpio.h: No such file or directory

Here is the end of the build log:

...
make[1]: Entering directory `/home/vincent/divers/ubuntu/natty-omap3evm/u-boot/board/ti/evm'
ccache arm-linux-gnueabi-gcc -g -Os -fno-common -ffixed-r8
-msoft-float -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x80008000
-I/home/vincent/divers/ubuntu/natty-omap3evm/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.4.5/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral
-Wno-format-security -o evm.o evm.c -c
evm.c:36:27: error: asm/arch/gpio.h: No such file or directory evm.c: In function ?reset_net_chip?:
evm.c:198: warning: implicit declaration of function ?omap_request_gpio? evm.c:205: warning: implicit declaration of function ?omap_set_gpio_direction?
evm.c:208: warning: implicit declaration of function ?omap_set_gpio_dataout? make[1]: *** [evm.o] Error 1
make[1]: Leaving directory `/home/vincent/divers/ubuntu/natty-omap3evm/u-boot/board/ti/evm'
make: *** [board/ti/evm/libevm.o] Error 2

Quoted 3 lines

Does
http://patchwork.ozlabs.org/patch/107678/
fix the issue you see, too?

Hmm. The error is different but 'master' won't build either with this patch applied.

Build log:

ccache arm-linux-gnueabi-gcc -g -Os -fno-common -ffixed-r8
-msoft-float -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x80008000
-I/home/vincent/divers/ubuntu/natty-omap3evm/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.4.5/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral
-Wno-format-security -o gpio.o gpio.c -c
gpio.c:39:27: error: asm/arch/gpio.h: No such file or directory gpio.c: In function ?get_gpio_bank?:
gpio.c:45: error: ?omap_gpio_bank? undeclared (first use in this function) gpio.c:45: error: (Each undeclared identifier is reported only once gpio.c:45: error: for each function it appears in.)
gpio.c: In function ?_set_gpio_direction?:
gpio.c:74: error: dereferencing pointer to incomplete type
gpio.c:77: error: dereferencing pointer to incomplete type
gpio.c:78: error: ?METHOD_GPIO_24XX? undeclared (first use in this function) gpio.c: In function ?_set_gpio_dataout?:
gpio.c:105: error: dereferencing pointer to incomplete type gpio.c:108: error: dereferencing pointer to incomplete type gpio.c:109: error: ?METHOD_GPIO_24XX? undeclared (first use in this function)
gpio.c: In function ?omap_get_gpio_datain?:
gpio.c:142: error: dereferencing pointer to incomplete type gpio.c:143: error: dereferencing pointer to incomplete type gpio.c:144: error: ?METHOD_GPIO_24XX? undeclared (first use in this function)
make[1]: *** [gpio.o] Error 1
make[1]: Leaving directory `/home/vincent/divers/ubuntu/natty-omap3evm/u-boot/arch/arm/cpu/armv7/omap-common'
make: *** [arch/arm/cpu/armv7/omap-common/libomap-common.o] Error 2

Best regards,

Signature · 1 line
Vincent Stehl?