嗨,这是我的图层树
??? conf
? ??? layer.conf
??? COPYING.MIT
??? README
??? recipes-hello
??? helloworld
? ??? helloworld-0.1
? ? ??? helloworld.c
? ? ??? helloworld.patch
? ? ??? newhelloworld.c
? ??? helloworld_0.1.bb
??? message
? ??? message-0.1
? ? ??? message.txt
? ??? message_0.1.bb
??? service
??? service-0.1
? ??? test_systemd.service
? ??? test_systemd.sh
??? service_0.1.bb
Run Code Online (Sandbox Code Playgroud)
这里test_systemd.service是必须调用test_systemd.sh的服务文件,我试图使用service_0.1.bb来实现
# This recipe performs the following tasks
# 1) Install .sh file in /home/root/ and .sh script creates a random text file
# …Run Code Online (Sandbox Code Playgroud) 我正在使用BBB来了解yocto项目。我不确定修补的工作方式。这是我的项目目录
??? meta-testlayer
??? poky
Run Code Online (Sandbox Code Playgroud)
元测试层包含一个helloworld示例
??? conf
? ??? layer.conf
??? COPYING.MIT
??? README
??? recipes-hello
??? helloworld
??? helloworld-0.1
? ??? helloworld.c
? ??? helloworld.patch
? ??? newhelloworld.c
??? helloworld_0.1.bb
Run Code Online (Sandbox Code Playgroud)
helloworld.c和newhelloworld.c的区别仅在于一个printf语句。这是helloworld.c的内容
#include <stdio.h>
int main(int argc, char **argv)
{
printf("Hi, this is my first custom recipe. Have a good day\n");
return 0;
}
Run Code Online (Sandbox Code Playgroud)
newhelloworld.c #include
int main(int argc, char **argv)
{
printf("Let see if patch works\n");
printf("Hi, this patch is from the test-layer\n");
return 0;
}
Run Code Online (Sandbox Code Playgroud)
这是我使用diff …