Firefly开源社区

标题: buildroot编译出错 [打印本页]

作者: yubeer    时间: 2022-6-28 10:56
标题: buildroot编译出错
https://gitlab.com/TeeFirefly/rk3308-linux上Fork了整个目录,本机ubutun16.04 64bits,执行./build.sh 编译uboot\kernel\rootfs,发现uboot\kernel编译完成后,buildroot出现问题,日志如下:

==========Start build buildroot==========
TARGET_BUILDROOT_CONFIG=firefly_rk3308_release
=========================================
Top of tree: /home/xinhy/Desktop/work/wanZilian/rockchip/rk3308

You're building on Linux
Lunch menu...pick a combo:

1. firefly_rk3308_release
2. firefly_rk3308_recovery
3. firefly_rk3308_pcba
4. firefly_rk3308_qt_release

Which would you like? [1] firefly_rk3308_release
firefly_rk3308_release
===========================================

#TARGET_BOARD=rk3308
#BUILD_TYPE=64
#OUTPUT_DIR=output/firefly_rk3308_release
#CONFIG=firefly_rk3308_release_defconfig

===========================================
make: Entering directory '/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot'
/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/build/defconfig_hook.py -m /home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/configs/firefly_rk3308_release_defconfig /home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.rockchipconfig
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build/buildroot-config/tristate.config BR2_CONFIG=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.config HOST_GCC_VERSION="7" BUILD_DIR=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build SKIP_LEGACY= BR2_DEFCONFIG=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/configs/firefly_rk3308_release_defconfig /home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build/buildroot-config/conf --defconfig=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.rockchipconfig Config.in
/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.rockchipconfig:142:warning: override: reassigning to symbol BR2_PACKAGE_NTP
/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.rockchipconfig:143:warning: override: reassigning to symbol BR2_PACKAGE_NTP_NTPDATE
/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.rockchipconfig:158:warning: override: reassigning to symbol BR2_TARGET_ENABLE_ROOT_LOGIN
#
# configuration written to /home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.config
#
make: Leaving directory '/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot'
Makefile:1: *** missing separator.  Stop.
Command exited with non-zero status 1
you take 0:00.30 to build builroot
====Build buildroot failed!====

对buildroot目录中的makefile文件进行了查看,文件格式ascii,也没有找到明显的语法错误。



单独进入buildroot目录,进行编译,make后,出现如下错误:

>>> rkwifibt 1.0.0 Building
mkdir -p /home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/target/system/lib/modules/
/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/../build.sh modules
/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/../build.sh: line 1: device/rockchip/common/build.sh: No such file or directory
package/pkg-generic.mk:247: recipe for target '/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build/rkwifibt-1.0.0/.stamp_built' failed
make[1]: *** [/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build/rkwifibt-1.0.0/.stamp_built] Error 127
Makefile:83: recipe for target '_all' failed
make: *** [_all] Error 2


fork的整个目录均进行了核对,device/rochip/common/build.sh文件是存在的。

这个问题该怎么解决?



tchip_askquestions

log.txt

3.75 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1


作者: Firefly_Javier    时间: 2022-6-28 15:01
编译应该不会有问题的,你使用rk3308_linux_release_v1.5.0a试下
作者: yubeer    时间: 2022-6-28 20:46
找到问题了,是device/rockchip/rk3308目录下的mk-buildroot.sh文件中,make前没有进buildroot目录,在sh文件中make前增加cd buildroot就可以。




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1