# configuration written to /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/.config
#
make: Leaving directory '/home/seeing-am335x/linux/buildroot'
umask 0022 && make -C /home/seeing-am335x/linux/buildroot O=/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399
/usr/bin/make -j1 O=/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
GEN /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/Makefile
>>> deviceio Syncing from source dir /home/seeing-am335x/linux/buildroot/../external/deviceio
ERROR: /home/seeing-am335x/linux/buildroot/../external/deviceio does not exist
package/pkg-generic.mk:201: recipe for target '/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/.stamp_rsynced' failed
make[1]: *** [/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/.stamp_rsynced] Error 1
/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/Makefile:16: recipe for target '_all' failed
make: *** [_all] Error 2
Command exited with non-zero status 1
you take 0:54.20 to build builroot
====Build buildroot failed!====
查找工程仅有下面这个位置有相关的,但是拷过去还是编译失败
seeing-am335x@seeing:~/linux$ find ./ -name "deviceio"
./buildroot/package/rockchip/deviceio
拷贝过去后编译结果:
make: Leaving directory '/home/seeing-am335x/linux/buildroot'
umask 0022 && make -C /home/seeing-am335x/linux/buildroot O=/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399
/usr/bin/make -j1 O=/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
GEN /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/Makefile
>>> deviceio Syncing from source dir /home/seeing-am335x/linux/buildroot/../external/deviceio
rsync -au --chmod=u=rwX,go=rX --exclude .svn --exclude .git --exclude .hg --exclude .bzr --exclude CVS /home/seeing-am335x/linux/buildroot/../external/deviceio/ /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio
>>> deviceio Configuring
(mkdir -p /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/ && cd /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/ && rm -f CMakeCache.txt && PATH="/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/host/bin:/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/host/sbin:/home/seeing-am335x/tools/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:/home/seeing-am335x/bin:/home/seeing-am335x/.local/bin:/usr/local/cmake-3.8.2/bin:/usr/local/eclipse:/usr/local/jdk1.8.0_121/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /usr/local/cmake-3.8.2/bin/cmake /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/ -DCMAKE_TOOLCHAIN_FILE="/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/host/share/buildroot/toolchainfile.cmake" -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DBLUEZ5_UTILS=TRUE -DBLUEZ=TRUE -DCPU_ARCH="aarch64" -DBUILD_TYPE=arm64 -DCMAKE_INSTALL_STAGING=/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/host/aarch64-buildroot-linux-gnu/sysroot )
CMake Error: The source directory "/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
package/pkg-generic.mk:244: recipe for target '/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/.stamp_configured' failed
make[1]: *** [/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/.stamp_configured] Error 1
/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/Makefile:16: recipe for target '_all' failed
make: *** [_all] Error 2
Command exited with non-zero status 1
you take 0:36.47 to build builroot
====Build buildroot failed!====
作者: wx_风雨_KkHI1 时间: 2019-7-15 15:00
自己顶顶作者: wx_风雨_KkHI1 时间: 2019-7-16 16:42
原因找到了,在./build.sh 之前需要:
更改Buildroot配置
列出当前可用的配置
cd buildroot
make list-defconfigs
显示所下:
rockchip_rk3399_defconfig - Build for rockchip_rk3399
使用menuconfig更改配置
make rockchip_rk3399_defconfig
make menuconfig
make savedefconfig
diff .defconfig configs/rockchip_rk3399_defconfig
cp .defconfig configs/rockchip_rk3399_defconfig
重新编译
cd ../
./build.sh rootfs