Thank you! I've managed to reconfigure original buildroot to build rootfs for luckfox, but i found a really weird problem, that also arises in your buildroot tarball:
When buildroot generates
host part of
output directory, it creates
toolchainfile.cmake for convenient cross-compilation process of user-space applications. In this
toolchainfile.cmake C and C++ compilers are set as symbolic links to binary called
toolchain-wrapper, that, according to buildroot documentation (
https://buildroot.org/downloads/manual/ ... _toolchain) transparently adds proper arguments to call original external toolchain compilers. However, using this
toolchainfile.cmake and
toolchain-wrapper as C++ comiler ruins linkage to libsample_comm.a with several errors:
Code: Select all
libsample_comm.a(sample_comm_isp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
Code: Select all
ibsample_comm.a(sample_comm_isp.o)(.text+0xc8): unresolvable R_ARM_CALL relocation against symbol `printf'
Code: Select all
final link failed: nonrepresentable section on output
Adding
-fPIC as linker option doesn't help there, but what helps is changing C++ compiler location from that
toolchain-wrapper symbolic link to original toolchain compiler path. To reproduce this bug you can use buildroot's
toolchainfile.cmake and build any application that is being linked to libsample_comm.a.
Calling these
toolchain-wrapper symbolic links (arm-rockchip830-linux-uclibcgnueabihf-gcc and arm-rockchip830-linux-uclibcgnueabihf-g++), that are located at buildroot/output/host/bin/ directory, in terminal causes these errors: