From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Tue, 5 May 2015 09:41:34 -0700 Subject: [U-Boot] [PATCH] powerpc/mpc85xx: Fix compiling error for common/cmd_gpio.c In-Reply-To: <1430243990-19391-1-git-send-email-oleks@arcturusnetworks.com> References: <1430243990-19391-1-git-send-email-oleks@arcturusnetworks.com> Message-ID: <5548F2BE.4060206@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/28/2015 10:59 AM, Oleksandr G Zhadan wrote: > To replicate: > 1. add to include/configs/p1_p2_rdb_pc.h "#define CONFIG_CMD_GPIO" > 2. run `make P1020RDB-PC_defconfig` > 3. run CROSS_COMPILE=powerpc-linux- make > > and you will get: > common/built-in.o: In function `do_gpio': > u-boot/common/cmd_gpio.c:186: undefined reference to `gpio_request' > u-boot/common/cmd_gpio.c:194: undefined reference to `gpio_direction_input' > u-boot/common/cmd_gpio.c:195: undefined reference to `gpio_get_value' > u-boot/common/cmd_gpio.c:200: undefined reference to `gpio_get_value' > u-boot/common/cmd_gpio.c:203: undefined reference to `gpio_direction_output' > u-boot/common/cmd_gpio.c:209: undefined reference to `gpio_free > > Signed-off-by: Michael Durrant > Signed-off-by: Oleksandr G Zhadan > --- > > arch/powerpc/include/asm/arch-mpc85xx/gpio.h | 2 ++ > arch/powerpc/include/asm/mpc85xx_gpio.h | 6 ++++-- > 2 files changed, 6 insertions(+), 2 deletions(-) > Applied to u-boot-mpc85xx master. Awaiting upstream. York