All of lore.kernel.org
 help / color / mirror / Atom feed
* MTD UBI undefined reference failed to build OE gatesgarth branch
@ 2021-01-15  8:07 ` JH
  0 siblings, 0 replies; 17+ messages in thread
From: Jupiter @ 2021-01-15  8:07 UTC (permalink / raw)
  To: linux-mtd; +Cc: meta-freescale

Hello,

I was able to build MTD, UBI and u-boot on OE version Zeus branch, but
failed in gatesgarth branch. Here are errors, what could I be missing?

u-boot-imx/2020.04-r0/git/cmd/ubi.c:478: undefined reference to
`mtd_probe_devices'
u-boot-imx/2020.04-r0/git/cmd/ubi.c:484: undefined reference to `put_mtd_device'
u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161: undefined
reference to `put_mtd_device'
u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1229: undefined
reference to `get_mtd_device_nm'
u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:1407: undefined
reference to `mtd_read'
u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:279: undefined
reference to `mtd_write'

u-boot-imx/2020.04-r0/git/drivers/video/cfb_console.c:2025: undefined
reference to `video_hw_init'
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51: undefined
reference to `dm_spi_claim_bus'
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55: undefined
reference to `dm_spi_xfer'
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58: undefined
reference to `dm_spi_release_bus'
u-boot-imx/2020.04-r0/git/Makefile:1701: recipe for target 'u-boot' failed
make[1]: *** [u-boot] Error 1
WARNING: exit code 1 from a shell command.

There are a couple of warning messages I am not sure if they are
important or just nonsense, like CONFIG_DEFAULT_DEVICE_TREE has
already been defined but it complained:

Device Tree Source is not correctly specified.
Please define 'CONFIG_DEFAULT_DEVICE_TREE'
or build with 'DEVICE_TREE=<device_tree>' argument

u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51:8: warning:
implicit declaration of function 'dm_spi_claim_bus'; did you mean
'spi_claim_bus'? [-Wimplicit-function-declaration]
   51 |  ret = dm_spi_claim_bus(dev);
      |        ^~~~~~~~~~~~~~~~
      |        spi_claim_bus
@
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55:8: warning:
implicit declaration of function 'dm_spi_xfer'; did you mean
'spi_xfer'? [-Wimplicit-function-declaration]
   55 |  ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL,
      |        ^~~~~~~~~~~
      |        spi_xfer
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58:2: warning:
implicit declaration of function 'dm_spi_release_bus'; did you mean
'spi_release_bus'? [-Wimplicit-function-declaration]
   58 |  dm_spi_release_bus(dev);
      |  ^~~~~~~~~~~~~~~~~~
      |  spi_release_bus

Appreciate your advice.

Thank you very much.

Kind regards,

- jupiter

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-01-19 23:38 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-15  8:07 MTD UBI undefined reference failed to build OE gatesgarth branch Jupiter
2021-01-15  8:07 ` JH
2021-01-15 19:32 ` Jupiter
2021-01-15 19:32   ` JH
2021-01-15 19:32   ` Jupiter
2021-01-15 20:12   ` [meta-freescale] " Andrey Zhizhikin
2021-01-15 20:12     ` Andrey Zhizhikin
2021-01-15 20:12     ` Andrey Zhizhikin
2021-01-15 20:43     ` Jupiter
2021-01-15 20:43       ` JH
2021-01-15 20:43       ` Jupiter
2021-01-18  0:21     ` Jupiter
2021-01-18  0:21       ` JH
2021-01-19  0:16       ` Tom Hochstein
2021-01-19  8:56         ` JH
2021-01-19 16:13           ` Tom Hochstein
     [not found]           ` <165BAE2FBF9D93F6.23889@lists.yoctoproject.org>
2021-01-19 23:38             ` [meta-freescale] " Tom Hochstein

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.