Я создал собственный образ yocto linux для raspberry pi, а также для esdk.
Я пытаюсь развернуть простой проект make-файла helloworld на Raspberry Pi 3. Я протестировал исходный код, собрав его в исходном режиме и запустив.
Затем я настроил среду кросс-компиляции и использую devtool для добавления исходного кода. После этого я пытаюсь создать и развернуть мой рецепт.
devtool build
Команда успешно выполняется без ошибок.
Когда я пытаюсь devtool deploy-target ...
Я получаю следующую ошибку:
ERROR: No files to deploy - have you built the hello recipe? If so, the install step has not installed any files.
Исходный файл C ++ (helloworld.cpp):
#include <stdio.h>
#include <stdlib.h>
#include <gnu/stubs.h>
int main(void) {
puts("Hello World!!!");
return EXIT_SUCCESS;
}
Makefile
PROJECT_NAME := XYZ
OUTPUT_DIR := build
CXXFLAGS = -O2 -g -Wall -fmessage-length=0
SRCS = helloworld.cpp
OBJS =$(SRCS:.cpp=.o)
LIBS =
TARGET = helloworld
PREFIX = /usr/bin
$(TARGET): $(OBJS)
$(CXX) $(CXXFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
.cpp.o:
$(CXX) $(CXXFLAGS) -c $< -o $@
all: $(TARGET)
@echo Compiling project
clean:
rm -f $(OBJS) $(TARGET)
build_directory: $(OUT_DIR)
@echo Creating build directory
$(OUT_DIR):
mkdir -p $(OUTPUT_DIR)
install: $(TARGET)
install $(TARGET) $(PREFIX)
рецепт hello.bb
# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)
# Unable to find any files that looked like license statements. Check the accompanying
# documentation and source headers and set LICENSE and LIC_FILES_CHKSUM accordingly.
#
# NOTE: LICENSE is being set to "CLOSED" to allow you to at least start building - if
# this is not accurate with respect to the licensing of the software being built (it
# will not be in most cases) you must specify the correct value before using this
# recipe for anything other than initial testing/development!
LICENSE = "CLOSED"LIC_FILES_CHKSUM = ""
# No information for SRC_URI yet (only an external source tree was specified)
SRC_URI = ""
# NOTE: this is a Makefile-only piece of software, so we cannot generate much of the
# recipe automatically - you will need to examine the Makefile yourself and ensure
# that the appropriate arguments are passed in.
do_configure () {
# Specify any needed configure commands here
:
}
do_compile () {
# You will almost certainly need to add additional arguments
oe_runmake
}
do_install () {
# This is a guess; additional arguments may be required
oe_runmake install
}
FILES_${PN} = "${bindir}/*"
Задача ещё не решена.
Других решений пока нет …