
错误日志:
DEBUG: SITE files ['endian-little','bit-32','arm-common','common-linux','common-glibc','arm-linux','arm-linux-gnueabi','common']DEBUG: Executing shell function do_installNOTE: make -j 4 DESTDIR=/home/pis1kor/workspace/poky-am335x/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/helloworld-1.0-r0/image installmake: *** No rule to make target `install'. Stop.ERROR: oe_runmake FailedERROR: Function Failed: do_install (see /home/pis1kor/workspace/poky-am335x/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/helloworld-1.0-r0/temp/log.do_install.29583 for further information)
Bitbake文件:
DESCRIPTION = "Simple helloworld application"SECTION = "examples"liCENSE = "MIT"liC_fileS_CHKSUM = "file://${COMMON_liCENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"PR = "r0"SRC_URI = "file://helloworld.tar"do_compile () { make -C ${workdir}/helloworld all}do_install() { oe_runmake install DESTDIR=${D}}#do_install() {# oe_runmake install DESTDIR=${D}# make -C ${workdir}/helloworld/ install# oe_runmake 'DESTDIR=${D}' install# cp -f ${workdir}/helloworld/helloworld ${workdir}/image# oe_runmake install ${workdir}/helloworld# make -C ${workdir}/helloworld install# install -d ${D}${bindir}/ ZZ#}inherit autotools gettext Makefile:
IDIR = ./includeCC = arm-arago-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 --sysroot=/home/pis1kor/workspace/poky-am335x/build/tmp/sysroots/am335x-evmCFLAGS = -I$(IDIR)liBS = -lmfileS = ./src/helloworld.cOUT_EXE = helloworldINSTALL = /usr/bin/install -cINSTALL_DATA = ${INSTALL} -m 644all: $(fileS) $(CC) -o $(OUT_EXE) $(fileS) $(CFLAGS) $(liBS)install: $(INSTALL_DATA) -C helloworld ../image# sudo cp ./helloworld ../image/clean: rm -f *.o helloworld 评论的行保持这样,因为只是为了维护我尝试过的所有路径.
解决方法 基本差异如下.S = "${workdir}/helloworld/"EXTRA_OEMAKE = 'all -C ${S}' “EXTRA_OEMAKE”是我以前没用过的关键宏.
我已经改变了bitbake文件helloworld.bb文件,如下所示.
DESCRIPTION = "Simple helloworld application"SECTION = "examples"liCENSE = "MIT"liC_fileS_CHKSUM = "file://${COMMON_liCENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"PR = "r0"S = "${workdir}/helloworld/"EXTRA_OEMAKE = 'all -C ${S}'SRC_URI = "file://helloworld.tar"inherit autotools gettext 总结 以上是内存溢出为你收集整理的linux – 在poky build中运行自定义bitbake时出现do_install错误全部内容,希望文章能够帮你解决linux – 在poky build中运行自定义bitbake时出现do_install错误所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)