* [U-Boot] sunxi configs break with CONFIG_API in v2015.10-rc4
@ 2015-10-04 16:27 Andreas Färber
2015-10-04 17:28 ` Hans de Goede
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Färber @ 2015-10-04 16:27 UTC (permalink / raw)
To: u-boot
Hi,
For at least Bananapi, Cubieboard, Cubieboard2, Cubietruck, Mele_A1000,
A10-OLinuXino-Lime, A13-OLinuXino, A20-OLinuXino-Lime2 and probably
other sunxi boards, enabling CONFIG_API in the distro defaults header
leads to build failures like this one:
[ 105s] CC api/api_net.o
[ 105s] api/api_net.c: In function 'dev_enum_net':
[ 105s] api/api_net.c:61:35: warning: initialization from incompatible
pointer type [-Wincompatible-pointer-types]
[ 105s] struct eth_device *eth_current = eth_get_dev();
[ 105s] ^
[ 105s] api/api_net.c:68:39: error: dereferencing pointer to incomplete
type 'struct eth_device'
[ 105s] memcpy(di->di_net.hwaddr, eth_current->enetaddr, 6);
[ 105s] ^
[ 105s] scripts/Makefile.build:277: recipe for target 'api/api_net.o'
failed
[ 105s] make[1]: *** [api/api_net.o] Error 1
[ 105s] Makefile:1191: recipe for target 'api' failed
[ 105s] make: *** [api] Error 2
Could you please check on why that is?
By comparison, this is working fine for jetson-tk1; arndale, snow and
possibly others are lacking a define for the maximum number of MMCs
(preparing a patch).
Thanks,
Andreas
--
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton; HRB 21284 (AG N?rnberg)
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] sunxi configs break with CONFIG_API in v2015.10-rc4
2015-10-04 16:27 [U-Boot] sunxi configs break with CONFIG_API in v2015.10-rc4 Andreas Färber
@ 2015-10-04 17:28 ` Hans de Goede
0 siblings, 0 replies; 2+ messages in thread
From: Hans de Goede @ 2015-10-04 17:28 UTC (permalink / raw)
To: u-boot
Hi,
On 10/04/2015 06:27 PM, Andreas F?rber wrote:
> Hi,
>
> For at least Bananapi, Cubieboard, Cubieboard2, Cubietruck, Mele_A1000,
> A10-OLinuXino-Lime, A13-OLinuXino, A20-OLinuXino-Lime2 and probably
> other sunxi boards, enabling CONFIG_API in the distro defaults header
> leads to build failures like this one:
>
> [ 105s] CC api/api_net.o
> [ 105s] api/api_net.c: In function 'dev_enum_net':
> [ 105s] api/api_net.c:61:35: warning: initialization from incompatible
> pointer type [-Wincompatible-pointer-types]
> [ 105s] struct eth_device *eth_current = eth_get_dev();
> [ 105s] ^
> [ 105s] api/api_net.c:68:39: error: dereferencing pointer to incomplete
> type 'struct eth_device'
> [ 105s] memcpy(di->di_net.hwaddr, eth_current->enetaddr, 6);
> [ 105s] ^
> [ 105s] scripts/Makefile.build:277: recipe for target 'api/api_net.o'
> failed
> [ 105s] make[1]: *** [api/api_net.o] Error 1
> [ 105s] Makefile:1191: recipe for target 'api' failed
> [ 105s] make: *** [api] Error 2
It looks like this is caused by the api code not supporting the
driver-model for ethernet, whereas sunxi uses that.
Regards,
Hans
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-04 17:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-04 16:27 [U-Boot] sunxi configs break with CONFIG_API in v2015.10-rc4 Andreas Färber
2015-10-04 17:28 ` Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox