From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Date: Sat, 20 Aug 2011 13:24:11 +0200 Subject: [U-Boot] [PATCH] Fix compilation for OMAP3 EVM In-Reply-To: <4E4F40FC.5080707@googlemail.com> References: <1313793472-8785-1-git-send-email-vincent.stehle@laposte.net> <4E4F40FC.5080707@googlemail.com> Message-ID: <4E4F995B.9070301@bergerie> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > On which branch do you see this issue? u-boot master? Yes, on 'master'. I used commit fa82f871c8dbc9a15e8dc274b3f99dd5fa0da458. > 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 > 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, -- Vincent Stehl?