解决rv1126 firefly sdk buildroot添加defconfig配置后,编译后依然提示找不到配置文件的问题

报错日志:

root@xl:/home/xl/files/test/rv1126_rv1109# ./build.sh rootfs
processing board option: rootfs
processing option: rootfs
==========Start building buildroot==========
TARGET_BUILDROOT_CONFIG=glr_rv1126_rv1109
=========================================
Top of tree: /home/xl/files/test/rv1126_rv1109
No available configs for: glr_rv1126_rv1109
Done in 0s  (error code: 2)
log saved on /home/xl/files/test/rv1126_rv1109/br.log
2023-08-15T14:23:05 checking sys/param.h usability... yes
2023-08-15T14:23:05 checking sys/param.h presence... yes
2023-08-15T14:23:05 checking for sys/param.h... yes
2023-08-15T14:23:05 checking sys/prctl.h usability... yes
2023-08-15T14:23:05 checking sys/prctl.h presence... yes
2023-08-15T14:23:05 checking for sys/prctl.h... yes
2023-08-15T14:23:05 checking sys/resource.h usability... yes
2023-08-15T14:23:05 checking sys/resource.h presence... yes
2023-08-15T14:23:05 checking for sys/resource.h... yes
2023-08-15T14:23:05 checking sys/signalfd.h usability... yes
2023-08-15T14:23:05 checking sys/signalfd.h presence... yes
2023-08-15T14:23:05 checking for sys/signalfd.h... yes
2023-08-15T14:23:05 checking sys/socket.h usability... yes
2023-08-15T14:23:05 checking sys/socket.h presence... yes
2023-08-15T14:23:05 checking for sys/socket.h... yes
2023-08-15T14:23:05 checking sys/sockio.h usability... no
2023-08-15T14:23:06 checking sys/sockio.h presence... no
2023-08-15T14:23:06 checking for sys/sockio.h... no
2023-08-15T14:23:06 checking for sys/stat.h... (cached) yes
2023-08-15T14:23:06 checking sys/sysmacros.h usability... yes
2023-08-15T14:23:06 checking sys/sysmacros.h presence... yes
2023-08-15T14:23:06 checking for sys/sysmacros.h... yes
2023-08-15T14:23:06 checking sys/swap.h usability... yes
2023-08-15T14:23:06 checking sys/swap.h presence... yes
2023-08-15T14:23:06 checking for sys/swap.h... yes
2023-08-15T14:23:06 checking sys/syscall.h usability... yes
2023-08-15T14:23:06 checking sys/syscall.h presence... yes
2023-08-15T14:23:06 checking for sys/syscall.h... yes
2023-08-15T14:23:06 checking sys/time.h usability... yes
2023-08-15T14:23:06 checking sys/time.h presence... yes
2023-08-15T14:23:06 checking for sys/time.h... yes
2023-08-15T14:23:06 checking sys/timex.h usability... yes
2023-08-15T14:23:06 checking sys/timex.h presence... yes
2023-08-15T14:23:06 checking for sys/timex.h... yes
2023-08-15T14:23:06 checking sys/ttydefaults.h usability... yes
2023-08-15T14:23:06 checking sys/ttydefaults.h presence... yes
2023-08-15T14:23:06 checking for sys/ttydefaults.h... yes
2023-08-15T14:23:06 checking for sys/types.h... (cached) yes
2023-08-15T14:23:06 checking sys/ucred.h usability... no
2023-08-15T14:23:06 checking sys/ucred.h presence... no
2023-08-15T14:23:06 checking for sys/ucred.h... no
2023-08-15T14:23:06 checking sys/un.h usability... yes
2023-08-15T14:23:06 checking sys/un.h presence... yes
2023-08-15T14:23:06 checking for sys/un.h... yes
2023-08-15T14:23:06 checking for unistd.h... (cached) yes
2023-08-15T14:23:06 checking shadow.h usability... yes
2023-08-15T14:23:06 checking shadow.h presence... yes
2023-08-15T14:23:06 checking for shadow.h... yes
2023-08-15T14:23:06 checking utmp.h usability... yes
2023-08-15T14:23:06 checking utmp.h presence... yes
2023-08-15T14:23:06 checking for utmp.h... yes
2023-08-15T14:23:06 checking utmpx.h usability... yes
2023-08-15T14:23:06 checking utmpx.h presence... yes
2023-08-15T14:23:06 checking for utmpx.h... yes
2023-08-15T14:23:06 checking for linux/gsmmux.h... yes
2023-08-15T14:23:06 checking for security/pam_misc.h... no
2023-08-15T14:23:06 checking linux/blkzoned.h usability... yes
2023-08-15T14:23:06 checking linux/blkzoned.h presence... yes
2023-08-15T14:23:06 checking for linux/blkzoned.h... yes
2023-08-15T14:23:06 checking for security/openpam.h... no
2023-08-15T14:23:06 checking langinfo.h usability... yes
2023-08-15T14:23:06 checking langinfo.h presence... yes
2023-08-15T14:23:06 checking for langinfo.h... yes
2023-08-15T14:23:06 checking for struct termios.c_line... yes
2023-08-15T14:23:06 checking for struct stat.st_mtim.tv_nsec... yes
2023-08-15T14:23:06 checking whether _NL_TIME_WEEK_1STDAY is declared... yes
2023-08-15T14:23:06 checking whether llseek is declared... no
2023-08-15T14:23:06 checking whether lseek64 is declared... yes
2023-08-15T14:23:06 checking whether environ is declared... yes
2023-08-15T14:23:06 checking whether strsignal is declared... yes
2023-08-15T14:23:06 checking whether TIOCGLCKTRMIOS is declared... yes
2023-08-15T14:23:06 checking whether SOCK_CLOEXEC is declared... yes
2023-08-15T14:23:06 checking whether SOCK_NONBLOCK is declared... yes
2023-08-15T14:23:06 checking whether SO_PASSCRED is declared... yes
2023-08-15T14:23:06 checking for __fpending... yes
2023-08-15T14:23:06 checking for secure_getenv... yes
2023-08-15T14:23:06 checking for __secure_getenv... no
2023-08-15T14:23:06 checking for err... yes
2023-08-15T14:23:07 checking for errx... yes
2023-08-15T14:23:07 checking for explicit_bzero... yes
2023-08-15T14:23:07 checking for fsync... yes
2023-08-15T14:23:07 checking for utimensat... yes
2023-08-15T14:23:07 checking for getdomainname... yes
2023-08-15T14:23:07 checking for getdtablesize... yes
2023-08-15T14:23:07 checking for getexecname... no
2023-08-15T14:23:07 checking for getmntinfo... no
2023-08-15T14:23:07 checking for getrandom... yes
2023-08-15T14:23:07 checking for getrlimit... yes
2023-08-15T14:23:07 checking for getsgnam... yes
2023-08-15T14:23:07 checking for inotify_init... yes
2023-08-15T14:23:07 checking for jrand48... yes
2023-08-15T14:23:07 checking for lchown... yes
2023-08-15T14:23:07 checking for llseek... yes
2023-08-15T14:23:07 checking for lseek64... yes
2023-08-15T14:23:07 checking for mempcpy... yes
2023-08-15T14:23:07 checking for mkostemp... yes
2023-08-15T14:23:32 Makefile:7: /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/Makefile: No such file or directory
2023-08-15T14:23:32 make: *** No rule to make target '/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/Makefile'.  Stop.
2023-08-15T14:23:41 Makefile:7: /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/Makefile: No such file or directory
2023-08-15T14:23:41 make: *** No rule to make target '/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/Makefile'.  Stop.
Command exited with non-zero status 1
you take 0:00.05 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 742:
    /usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $BOARD_CONFIG
root@xl:/home/xl/files/test/rv1126_rv1109# 

解决办法:

        在rv1126_rv1109/buildroot/build/envsetup.sh文件添加如下字段

	RK_DEFCONFIG_ARRAY=(
		$(cd ${BUILDROOT_DIR}/configs/; ls rockchip_* firefly_* glr_* | \
			sed "s/_defconfig$//" | grep "$1" | sort)
	)

添加完成后完美运行:

root@xl:/home/xl/files/test/rv1126_rv1109# ./build.sh rootfs
processing board option: rootfs
processing option: rootfs
==========Start building buildroot==========
TARGET_BUILDROOT_CONFIG=glr_rv1126_rv1109
=========================================
Top of tree: /home/xl/files/test/rv1126_rv1109
===========================================

#TARGET_BOARD=rv1126
#OUTPUT_DIR=output/glr_rv1126_rv1109
#CONFIG=glr_rv1126_rv1109_defconfig

===========================================
make: Entering directory '/home/xl/files/test/rv1126_rv1109/buildroot'
mkdir -p /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config/lxdialog
PKG_CONFIG_PATH="" make CC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc" \
    obj=/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config -C support/kconfig -f Makefile.br conf
make[1]: Entering directory '/home/xl/files/test/rv1126_rv1109/buildroot/support/kconfig'
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE   -DCURSES_LOC="<ncurses.h>" -DLOCALE  -I/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config -DCONFIG_=\"\"  -MM *.c > /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config/.depend 2>/dev/null || :
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE   -DCURSES_LOC="<ncurses.h>" -DLOCALE  -I/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config -DCONFIG_=\"\"   -c conf.c -o /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config/conf.o
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE   -DCURSES_LOC="<ncurses.h>" -DLOCALE  -I/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config -DCONFIG_=\"\"  -I. -c /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config/zconf.tab.c -o /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config/zconf.tab.o
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE   -DCURSES_LOC="<ncurses.h>" -DLOCALE  -I/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config -DCONFIG_=\"\"   /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config/conf.o /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config/zconf.tab.o  -o /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config/conf
rm /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config/zconf.tab.c
make[1]: Leaving directory '/home/xl/files/test/rv1126_rv1109/buildroot/support/kconfig'
  GEN     /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/Makefile
/home/xl/files/test/rv1126_rv1109/buildroot/build/defconfig_hook.py -m /home/xl/files/test/rv1126_rv1109/buildroot/configs/glr_rv1126_rv1109_defconfig /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.rockchipconfig
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config/tristate.config BR2_CONFIG=/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.config HOST_GCC_VERSION="7" BUILD_DIR=/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build SKIP_LEGACY= BR2_DEFCONFIG=/home/xl/files/test/rv1126_rv1109/buildroot/configs/glr_rv1126_rv1109_defconfig /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/build/buildroot-config/conf --defconfig=/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.rockchipconfig Config.in
/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.rockchipconfig:142:warning: override: reassigning to symbol BR2_PACKAGE_RKWIFIBT
/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.rockchipconfig:179:warning: override: reassigning to symbol BR2_PACKAGE_UPDATE
/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.rockchipconfig:185:warning: override: reassigning to symbol BR2_PACKAGE_RKSCRIPT
/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.rockchipconfig:203:warning: override: reassigning to symbol BR2_PACKAGE_MPP
/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.rockchipconfig:204:warning: override: reassigning to symbol BR2_PACKAGE_MPP_ALLOCATOR_DRM
/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.rockchipconfig:206:warning: override: reassigning to symbol BR2_PACKAGE_LINUX_RGA
/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.rockchipconfig:363:warning: override: reassigning to symbol BR2_PACKAGE_NTP
/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.rockchipconfig:364:warning: override: reassigning to symbol BR2_PACKAGE_RK_OEM_RESOURCE_DIR
/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.rockchipconfig:365:warning: override: reassigning to symbol BR2_PACKAGE_CAMERA_ENGINE_RKAIQ_IQFILE
/home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.rockchipconfig:382:warning: override: reassigning to symbol BR2_TARGET_GENERIC_ROOT_PASSWD
#
# configuration written to /home/xl/files/test/rv1126_rv1109/buildroot/output/glr_rv1126_rv1109/.config
#
make: Leaving directory '/home/xl/files/test/rv1126_rv1109/buildroot'
2023-08-15T14:27:47 >>> host-lzip 1.19 Extracting
2023-08-15T14:27:47 >>> host-lzip 1.19 Patching
2023-08-15T14:27:47 >>> host-lzip 1.19 Configuring
2023-08-15T14:27:47 >>> host-lzip 1.19 Building
2023-08-15T14:27:48 >>> host-lzip 1.19 Installing to host directory
2023-08-15T14:27:48 >>> skeleton-init-common  Extracting
2023-08-15T14:27:48 >>> skeleton-init-common  Patching
2023-08-15T14:27:48 >>> skeleton-init-common  Configuring
2023-08-15T14:27:48 >>> skeleton-init-common  Building
2023-08-15T14:27:48 >>> skeleton-init-common  Installing to staging directory
2023-08-15T14:27:48 >>> skeleton-init-common  Fixing libtool files
2023-08-15T14:27:48 >>> skeleton-init-common  Installing to target
2023-08-15T14:27:48 >>> skeleton-init-sysv  Extracting
2023-08-15T14:27:48 >>> skeleton-init-sysv  Patching
2023-08-15T14:27:48 >>> skeleton-init-sysv  Configuring
2023-08-15T14:27:48 >>> skeleton-init-sysv  Building
2023-08-15T14:27:48 >>> skeleton-init-sysv  Installing to target
2023-08-15T14:27:49 >>> skeleton  Extracting
2023-08-15T14:27:49 >>> skeleton  Patching
2023-08-15T14:27:49 >>> skeleton  Configuring
2023-08-15T14:27:49 >>> skeleton  Building
2023-08-15T14:27:49 >>> skeleton  Installing to target
2023-08-15T14:27:49 >>> toolchain-external-custom  Extracting
2023-08-15T14:27:49 >>> toolchain-external-custom  Patching
2023-08-15T14:27:49 >>> toolchain-external-custom  Configuring
2023-08-15T14:27:49 >>> toolchain-external-custom  Building
2023-08-15T14:27:49 >>> toolchain-external-custom  Installing to staging directory
2023-08-15T14:27:49 >>> toolchain-external-custom  Copying external toolchain sysroot to staging...
2023-08-15T14:27:50 >>> toolchain-external-custom  Installing gdbinit
2023-08-15T14:27:50 >>> toolchain-external-custom  Fixing libtool files
2023-08-15T14:27:50 >>> toolchain-external-custom  Installing to target
2023-08-15T14:27:50 >>> toolchain-external-custom  Copying external toolchain libraries to target...
2023-08-15T14:27:51 >>> toolchain-external  Extracting
2023-08-15T14:27:51 >>> toolchain-external  Patching
2023-08-15T14:27:51 >>> toolchain-external  Configuring
2023-08-15T14:27:51 >>> toolchain-external  Building
2023-08-15T14:27:51 >>> toolchain-external  Installing to target
2023-08-15T14:27:51 >>> toolchain  Extracting
2023-08-15T14:27:51 >>> toolchain  Patching
2023-08-15T14:27:51 >>> toolchain  Configuring
2023-08-15T14:27:51 >>> toolchain  Building
2023-08-15T14:27:51 >>> toolchain  Installing to target
2023-08-15T14:27:51 >>> host-m4 1.4.18 Extracting
2023-08-15T14:27:51 >>> host-m4 1.4.18 Patching
2023-08-15T14:27:51 >>> host-m4 1.4.18 Updating config.sub and config.guess
2023-08-15T14:27:51 >>> host-m4 1.4.18 Patching libtool
2023-08-15T14:27:51 >>> host-m4 1.4.18 Configuring

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值