I've done fw_printenv compilation on Android 4.3 with U-Boot 2009.
But this is different on U-Boot 2015.04 on Android 5.1
fw_printenv compile error:
This is Makefile: I add "static" in flags.
What CROSS_COMPILE are you using?
Or could you show me your steps? so I can try it on my side.
Sorry to reply so late. Here we got android 5.1.1 bsp for developing, and the toolchain used here is prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-.
Retrieving data ...