专栏首页hank【分享】在PetaLinux里为模块创建补丁

【分享】在PetaLinux里为模块创建补丁

PetaLinux(Yocto)里包含很多软件模块。大部分模块可以直接使用。如果有特殊需求,需要修改某些模块时,可以按下列办法先修改,测试成功后,再创建补丁,集成到PetaLinux(Yocto)工程里。

比如客户需要修改xorg.conf,可以采用下列方式完成。

选择工具devtool

缺省情况下,PetaLinux使用bitbake。请在“petalinux-config  → Yocto settings  → Build tool”里,选择devtool。

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ petalinux-config 
INFO: sourcing build tools
[INFO] menuconfig project
configuration written to /home/hankf/proj/zcu106/v201/vcu-trd-xv20/project-spec/configs/config

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

[INFO] sourcing build environment
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating plnxtool conf
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] successfully configured project

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ petalinux-build 
INFO: sourcing build tools
[INFO] building project
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] devtool build-image petalinux-image-minimal
NOTE: Starting bitbake server...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
NOTE: Reconnecting to bitbake server...
NOTE: Previous bitbake instance shutting down?, waiting to retry...
NOTE: Retrying server connection (#2)...
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Error, TMPDIR has changed location. You need to either move it back to /proj/hankf/zcu106/v201/vcu-trd-xv20/build/tmp or delete it and rebuild
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to start bitbake environment
ERROR: Failed to build project

选择devtool,编译报告TMPDIR的错误。之前的TMPDIR设置是工程目录下的“build/tmp”。在执行petalinux-config ,把TMPDIR设置为工程绝对目录,“/proj/hankf/zcu106/v201/vcu-trd-xv20/build/tmp”。

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ petalinux-config 

INFO: sourcing build tools
[INFO] menuconfig project
configuration written to /home/hankf/proj/zcu106/v201/vcu-trd-xv20/project-spec/configs/config

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

[INFO] sourcing build environment
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating plnxtool conf
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] successfully configured project

获取软件包源代码

执行命令“petalinux-build -c -x modify”,可以把源代码下载到workspace目录。执行完成后,目录“components/yocto/workspace/sources”会增加对应的目录和文件。

客户需要修改xorg.conf。以xorg为为软件包名,执行命令“petalinux-build -c xorg -x modify”,petalinux报告找不到软件包。

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ petalinux-build -c xorg -x modify
INFO: sourcing build tools
[INFO] building xorg
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] devtool modify xorg
NOTE: Starting bitbake server...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
NOTE: Reconnecting to bitbake server...
NOTE: Previous bitbake instance shutting down?, waiting to retry...
NOTE: Retrying server connection (#2)...
Loading cache: 100% |########################################################################################################################| Time: 0:00:00
Loaded 4234 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################| Time: 0:00:05
Parsing of 2967 .bb files complete (2965 cached, 2 parsed). 4236 targets, 168 skipped, 0 masked, 0 errors.
ERROR: Unable to find any recipe file matching "xorg"
ERROR: Failed to build xorg

搜索xorg.conf,可以看到,在目录xserver-xf86-config里有,因此执行命令“petalinux-build -c xserver-xf86-config -x modify”。

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ find -name "*org.conf"
./project-spec/meta-user/recipes-graphics/xorg-xserver/xserver-xf86-config/zynqmp/xorg.conf
./components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config/zynqmp/xorg.conf
./components/yocto/layers/core/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemumips64/xorg.conf
./components/yocto/layers/core/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemuppc/xorg.conf
./components/yocto/layers/core/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemumips/xorg.conf
./components/yocto/layers/core/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemuarm/xorg.conf
./components/yocto/layers/core/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf
./components/yocto/layers/core/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86-64/xorg.conf
./components/yocto/layers/core/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf
./components/yocto/layers/core/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemush4/xorg.conf

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ petalinux-build -c xserver-xf86-config -x modify
INFO: sourcing build tools
[INFO] building xserver-xf86-config
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] devtool modify xserver-xf86-config
NOTE: Starting bitbake server...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
NOTE: Reconnecting to bitbake server...
NOTE: Previous bitbake instance shutting down?, waiting to retry...
NOTE: Retrying server connection (#2)...
Loading cache: 100% |########################################################################################################################| Time: 0:00:00
Loaded 4234 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################| Time: 0:00:05
Parsing of 2967 .bb files complete (2965 cached, 2 parsed). 4236 targets, 168 skipped, 0 masked, 0 errors.
INFO: SRC_URI contains some conditional appends/prepends - will create branches to represent these
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###################################################################################################################| Time: 0:00:00
Sstate summary: Wanted 0 Found 0 Missed 0 Current 0 (0% match, 0% complete)
NOTE: No setscene tasks
NOTE: Executing Tasks
WARNING: No source unpacked to S - either the xserver-xf86-config recipe doesn't use any source or the correct source directory could not be determined
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.
INFO: Adding local source files to srctree...
INFO: Source tree extracted to /home/hankf/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/xserver-xf86-config
WARNING: SRC_URI is conditionally overridden in this recipe, thus several devtool-override-* branches have been created, one for each override that makes changes to SRC_URI. It is recommended that you make changes to the devtool branch first, then checkout and rebase each devtool-override-* branch and update any unique patches there (duplicates on those branches will be ignored by devtool finish/update-recipe)
INFO: Using source tree as build directory since that would be the default for this recipe
INFO: Recipe xserver-xf86-config now set up to build from /home/hankf/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/xserver-xf86-config
[INFO] successfully built xserver-xf86-config

执行完成后,在目录“components/yocto/workspace/sources”下增加了目录“xserver-xf86-config/“以及文件”xorg.conf“。

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ ls components/yocto/workspace/sources/xserver-xf86-config/
oe-local-files  xorg.conf

修改文件

修改相关的文件,比如”xorg.conf“。

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ ls components/yocto/workspace/sources/xserver-xf86-config/
oe-local-files  xorg.conf
hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ gedit components/yocto/workspace/sources/xserver-xf86-config/xorg.conf  &
[1] 3463

测试修改

修改相关的文件,执行命令“petalinux-build -c ”,比如“petalinux-build -c xserver-xf86-config ”, 执行编译测试,也可以在单板上测试。

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ petalinux-build -c xserver-xf86-config 

INFO: sourcing build tools
[INFO] building xserver-xf86-config
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] Specified component xserver-xf86-config already exists in workspace, Using the same...
[INFO] devtool build xserver-xf86-config
NOTE: Starting bitbake server...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
NOTE: Reconnecting to bitbake server...
NOTE: Previous bitbake instance shutting down?, waiting to retry...
NOTE: Retrying server connection (#2)...
Loading cache: 100% |########################################################################################################################| Time: 0:00:00
Loaded 4234 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################| Time: 0:00:05
Parsing of 2967 .bb files complete (2964 cached, 3 parsed). 4236 targets, 168 skipped, 0 masked, 0 errors.
Removing 1 recipes from the zcu106_zynqmp sysroot: 100% |####################################################################################| Time: 0:00:00
Loading cache: 100% |########################################################################################################################| Time: 0:00:03
Loaded 4234 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################| Time: 0:00:05
Parsing of 2967 .bb files complete (2964 cached, 3 parsed). 4236 targets, 168 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###################################################################################################################| Time: 0:00:00
Checking sstate mirror object availability: 100% |###########################################################################################| Time: 0:00:00
Sstate summary: Wanted 6 Found 2 Missed 4 Current 59 (33% match, 93% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
NOTE: xserver-xf86-config: compiling from external source tree /home/hankf/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/xserver-xf86-config
NOTE: Tasks Summary: Attempted 459 tasks of which 450 didn't need to be rerun and all succeeded.
INFO: copy to TFTP-boot directory is not enabled !!
[INFO] successfully built xserver-xf86-config
[1]+  Done                    gedit components/yocto/workspace/sources/xserver-xf86-config/xorg.conf

提交更改

测试通过后,进入对应软件的目录,比如“components/yocto/workspace/sources/xserver-xf86-config”,通过git命令提交更改。

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/xserver-xf86-config$ git add xorg.confhankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/xserver-xf86-config$ git commit -s
[devtool 23f4304] test
 1 file changed, 2 insertions(+)
 create mode 100644 test.txt

生成patch

命令“petalinux-build -c -x update-recipe”会生成patch。 命令“petalinux-build -c -x finish”会生成patch,并在目录workspace删除相关源代码和目录。 creates a patch for the committed changes in recipe sources directory and removes the source from workspace.

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ petalinux-build -c xserver-xf86-config -x update-recipe
INFO: sourcing build tools
[INFO] building xserver-xf86-config
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] Specified component xserver-xf86-config already exists in workspace, Using the same...
[INFO] devtool update-recipe xserver-xf86-config -a /home/hankf/proj/zcu106/v201/vcu-trd-xv20/project-spec/meta-user -w
NOTE: Starting bitbake server...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
NOTE: Reconnecting to bitbake server...
NOTE: Previous bitbake instance shutting down?, waiting to retry...
NOTE: Retrying server connection (#2)...
Loading cache: 100% |########################################################################################################################| Time: 0:00:00
Loaded 4234 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################| Time: 0:00:05
Parsing of 2967 .bb files complete (2964 cached, 3 parsed). 4236 targets, 168 skipped, 0 masked, 0 errors.
INFO: Handling main branch (devtool)...
INFO: No patches or local source files needed updating
INFO: Handling branch devtool-override-pn-arm-trusted-firmware...
INFO: No patches or local source files needed updating
INFO: Handling branch devtool-override-pn-device-tree...
INFO: No patches or local source files needed updating
INFO: copy to TFTP-boot directory is not enabled !!
[INFO] successfully built xserver-xf86-config

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ petalinux-build -c xserver-xf86-config -x finish
INFO: sourcing build tools
[INFO] building xserver-xf86-config
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] Specified component xserver-xf86-config already exists in workspace, Using the same...
[INFO] devtool finish xserver-xf86-config /home/hankf/proj/zcu106/v201/vcu-trd-xv20/project-spec/meta-user 
NOTE: Starting bitbake server...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
NOTE: Reconnecting to bitbake server...
NOTE: Previous bitbake instance shutting down?, waiting to retry...
NOTE: Retrying server connection (#2)...

Loading cache: 100% |########################################################################################################################| Time: 0:00:00
Loaded 4234 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################| Time: 0:00:05
Parsing of 2967 .bb files complete (2964 cached, 3 parsed). 4236 targets, 168 skipped, 0 masked, 0 errors.
INFO: Handling main branch (devtool)...
NOTE: Writing append file /home/hankf/proj/zcu106/v201/vcu-trd-xv20/project-spec/meta-user/recipes-graphics/xorg-xserver/xserver-xf86-config_%.bbappend
NOTE: Copying xorg.conf to /home/hankf/proj/zcu106/v201/vcu-trd-xv20/project-spec/meta-user/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf
INFO: Handling branch devtool-override-pn-arm-trusted-firmware...
INFO: No patches or local source files needed updating
INFO: Handling branch devtool-override-pn-device-tree...
INFO: No patches or local source files needed updating
INFO: Cleaning sysroot for recipe xserver-xf86-config...
INFO: Leaving source tree /home/hankf/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/xserver-xf86-config as-is; if you no longer need it then please delete it manually
[INFO] Removing source tree from workspace: /home/hankf/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/xserver-xf86-config
[INFO] successfully built xserver-xf86-config

执行完成后,目录“project-spec/meta-user/recipes-graphics/xorg-xserver/xserver-xf86-config”下增加了文件xorg.conf。

hankf@XSZGS4:/proj/hankf/zcu106/v201/vcu-trd-xv20/project-spec/meta-user/recipes-graphics/xorg-xserver/xserver-xf86-config$ ls -l
total 8
-rw-rw-r-- 1 hankf hankf  765 Nov 27 14:43 xorg.conf
drwxr-xr-x 2 hankf hankf 4096 Nov 27 15:10 zynqmp

删除软件包

如果测试正常,可以执行命令“petalinux-build -c xserver-xf86-config -x reset”,把软件包从目录workspace删除。ug1144建议使用“devtool reset ”。最好使用“petalinux-build -c xserver-xf86-config -x reset”

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ devtool reset  xserver-xf86-config 
devtool: command not found
hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ petalinux-build -c xserver-xf86-config -x reset

INFO: sourcing build tools
[INFO] building xserver-xf86-config
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] Specified component xserver-xf86-config already exists in workspace, Using the same...
[INFO] devtool reset xserver-xf86-config
NOTE: Starting bitbake server...
INFO: Cleaning sysroot for recipe xserver-xf86-config...
INFO: Leaving source tree /home/hankf/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/xserver-xf86-config as-is; if you no longer need it then please delete it manually
[INFO] Removing source tree from workspace: /home/hankf/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/xserver-xf86-config
[INFO] successfully built xserver-xf86-config

其它日志

对比下面命令“petalinux-build -c -x update-recipe”和命令“petalinux-build -c -x finish”的结果,命令“petalinux-build -c -x finish”删除了components/yocto/workspace/sources下的目录gstreamer-vcu-notebooks。

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/gstreamer-vcu-notebooks$ git add test.txt

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/gstreamer-vcu-notebooks$ git commit -s
[devtool 23f4304] test
 1 file changed, 2 insertions(+)
 create mode 100644 test.txt

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ petalinux-build -c gstreamer-vcu-notebooks  -x update-recipe

INFO: sourcing build tools
[INFO] building gstreamer-vcu-notebooks
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] Specified component gstreamer-vcu-notebooks already exists in workspace, Using the same...
[INFO] devtool update-recipe gstreamer-vcu-notebooks -a /home/hankf/proj/zcu106/v201/vcu-trd-xv20/project-spec/meta-user -w
NOTE: Starting bitbake server...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
NOTE: Reconnecting to bitbake server...
NOTE: Previous bitbake instance shutting down?, waiting to retry...
NOTE: Retrying server connection (#2)...
Loading cache: 100% |########################################################################################################################| Time: 0:00:00
Loaded 4234 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################| Time: 0:00:05
Parsing of 2967 .bb files complete (2964 cached, 3 parsed). 4236 targets, 168 skipped, 0 masked, 0 errors.
INFO: Handling main branch (devtool)...
NOTE: Writing append file /home/hankf/proj/zcu106/v201/vcu-trd-xv20/project-spec/meta-user/recipes-multimedia/gstreamer/gstreamer-vcu-notebooks_%.bbappend
NOTE: Copying 0001-test.patch to /home/hankf/proj/zcu106/v201/vcu-trd-xv20/project-spec/meta-user/recipes-multimedia/gstreamer/gstreamer-vcu-notebooks/0001-test.patch
INFO: Handling branch devtool-override-pn-arm-trusted-firmware...
INFO: No patches or local source files needed updating
INFO: Handling branch devtool-override-pn-device-tree...
INFO: No patches or local source files needed updating
INFO: copy to TFTP-boot directory is not enabled !!
[INFO] successfully built gstreamer-vcu-notebooks


hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ ls -l ./components/yocto/workspace/sources/gstreamer-vcu-notebooks/
total 20
lrwxrwxrwx 1 hankf hankf   24 Nov 27 16:49 common.py -> oe-local-files/common.py
lrwxrwxrwx 1 hankf hankf   22 Nov 27 16:49 LICENSE -> oe-local-files/LICENSE
drwxr-xr-x 3 hankf hankf 4096 Nov 27 16:30 oe-local-files
lrwxrwxrwx 1 hankf hankf  160 Nov 27 16:36 oe-logs -> /proj/hankf/zcu106/v201/vcu-trd-xv20/build/tmp/work/zynqmpev-xilinx-linux/gstreamer-vcu-notebooks/0.1-r0/temp
lrwxrwxrwx 1 hankf hankf  155 Nov 27 16:36 oe-workdir -> /proj/hankf/zcu106/v201/vcu-trd-xv20/build/tmp/work/zynqmpev-xilinx-linux/gstreamer-vcu-notebooks/0.1-r0
drwxrwxr-x 2 hankf hankf 4096 Nov 27 16:49 pictures
-rw-rw-r-- 1 hankf hankf   11 Nov 27 16:49 test.txt
lrwxrwxrwx 1 hankf hankf   51 Nov 27 16:49 vcu-demo-camera-decode-display.ipynb -> oe-local-files/vcu-demo-camera-decode-display.ipynb
lrwxrwxrwx 1 hankf hankf   58 Nov 27 16:49 vcu-demo-camera-encode-decode-display.ipynb -> oe-local-files/vcu-demo-camera-encode-decode-display.ipynb
lrwxrwxrwx 1 hankf hankf   48 Nov 27 16:49 vcu-demo-camera-encode-file.ipynb -> oe-local-files/vcu-demo-camera-encode-file.ipynb
lrwxrwxrwx 1 hankf hankf   53 Nov 27 16:49 vcu-demo-camera-encode-streamout.ipynb -> oe-local-files/vcu-demo-camera-encode-streamout.ipynb
lrwxrwxrwx 1 hankf hankf   44 Nov 27 16:49 vcu-demo-decode-display.ipynb -> oe-local-files/vcu-demo-decode-display.ipynb
lrwxrwxrwx 1 hankf hankf   53 Nov 27 16:49 vcu-demo-streamin-decode-display.ipynb -> oe-local-files/vcu-demo-streamin-decode-display.ipynb
lrwxrwxrwx 1 hankf hankf   47 Nov 27 16:49 vcu-demo-transcode-to-file.ipynb -> oe-local-files/vcu-demo-transcode-to-file.ipynb
lrwxrwxrwx 1 hankf hankf   52 Nov 27 16:49 vcu-demo-transcode-to-streamout.ipynb -> oe-local-files/vcu-demo-transcode-to-streamout.ipynb

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ petalinux-build -c gstreamer-vcu-notebooks  -x finish
INFO: sourcing build tools
[INFO] building gstreamer-vcu-notebooks
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] Specified component gstreamer-vcu-notebooks already exists in workspace, Using the same...
[INFO] devtool finish gstreamer-vcu-notebooks /home/hankf/proj/zcu106/v201/vcu-trd-xv20/project-spec/meta-user 
NOTE: Starting bitbake server...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
NOTE: Reconnecting to bitbake server...
NOTE: Previous bitbake instance shutting down?, waiting to retry...
NOTE: Retrying server connection (#2)...
Loading cache: 100% |########################################################################################################################| Time: 0:00:00
Loaded 4234 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################| Time: 0:00:05
Parsing of 2967 .bb files complete (2964 cached, 3 parsed). 4236 targets, 168 skipped, 0 masked, 0 errors.
INFO: Handling main branch (devtool)...
NOTE: Writing append file /home/hankf/proj/zcu106/v201/vcu-trd-xv20/project-spec/meta-user/recipes-multimedia/gstreamer/gstreamer-vcu-notebooks_%.bbappend
NOTE: Copying 0001-test.patch to /home/hankf/proj/zcu106/v201/vcu-trd-xv20/project-spec/meta-user/recipes-multimedia/gstreamer/gstreamer-vcu-notebooks/0001-test.patch
INFO: Handling branch devtool-override-pn-arm-trusted-firmware...
INFO: No patches or local source files needed updating
INFO: Handling branch devtool-override-pn-device-tree...
INFO: No patches or local source files needed updating
INFO: Cleaning sysroot for recipe gstreamer-vcu-notebooks...
INFO: Leaving source tree /home/hankf/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/gstreamer-vcu-notebooks as-is; if you no longer need it then please delete it manually
[INFO] Removing source tree from workspace: /home/hankf/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/gstreamer-vcu-notebooks
[INFO] successfully built gstreamer-vcu-notebooks

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ ls -l ./components/yocto/workspace/sources/gstreamer-vcu-notebooks/
ls: cannot access '/home/hankf/proj/zcu106/v201/vcu-trd-xv20/components/yocto/workspace/sources/gstreamer-vcu-notebooks/': No such file or directory

另外也可以发现,命令自动创建了文件project-spec/meta-user/recipes-multimedia/gstreamer/gstreamer-vcu-notebooks_%.bbappend,自动复制了文件0001-test.patch到目录project-spec/meta-user/recipes-multimedia/gstreamer/gstreamer-vcu-notebooks。

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ ls -l  project-spec/meta-user/recipes-multimedia/gstreamer/gstreamer-vcu-notebooks
total 4
-rw-rw-r-- 1 hankf hankf 440 Nov 27 16:53 0001-test.patch
hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ cat  project-spec/meta-user/recipes-multimedia/gstreamer/gstreamer-vcu-notebooks_%.bbappend 
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += "file://0001-test.patch"

hankf@XSZGS4:~/proj/zcu106/v201/vcu-trd-xv20$ cat  project-spec/meta-user/recipes-multimedia/gstreamer/gstreamer-vcu-notebooks/0001-test.patch 
From 23f430438ac6cb1e2e712916f0136fe8a0c8075e Mon Sep 17 00:00:00 2001
From: Hank Hanjie Fu <hankf@xilinx.com>
Date: Fri, 27 Nov 2020 16:47:50 +0800
Subject: [PATCH] test

Signed-off-by: Hank Hanjie Fu <hankf@xilinx.com>
---
 test.txt | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 test.txt

diff --git a/test.txt b/test.txt
new file mode 100644
index 0000000..a8a04d9
--- /dev/null
+++ b/test.txt
@@ -0,0 +1,2 @@
+

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • 【分享】 解决PetaLinux工程FSBL do_configureh错误

    更换PetaLinux工程的HDF/XSA文件后,PetaLinux工程编译出现FSBL do_configureh错误。使用命令“petalinux-buil...

    hankfu
  • 【分享】优化rootfs的大小

    Xilinx VCU TRD 集成了图像和视频编解码功能,生成的根文件系统比较大,2020.1的rootfs.cpio.gz大约有114MB。工程师可以根据自己...

    hankfu
  • 在Linux用户态使用MPSoC AES 加密加速器

    文档Using Cryptography in Zynq UltraScale MPSoC提供了在Linux用户态使用MPSoC AES 加速器的例子。 如果要...

    hankfu
  • Google Plus 文本提取与分析4

    特征词/关键词提取最简单最基础的就是TFIDF,记得5年前我同学让我帮做DI-TFIDF的论文,也就只多了个类内离散度(DI),今年阿里校招笔试题都有,用map...

    伏草惟存
  • S/4 HANA系统表对比Ⅱ

    此文承接第一篇《S/4 HANA系统表对比Ⅰ》,今天继续了解S/4 HANA中系统表的变化。(文末有福利,注意查收)

    matinal
  • Consul初探-在深交之前先认识

    首先,官方介绍是:Consul 是一种服务网格的解决方案,在 Consul 中,提供了服务发现、配置、分段等控制管理平台,Consul 中的每项功能都可以单独使...

    梁规晓
  • JTA规范

    JTA规范下载地址:http://download.oracle.com/otn-pub/jcp/jta-1.1-spec-oth-JSpec/jta-1_1-...

    Java帮帮
  • FFmpeg使用手册 - FFmpeg 的编译安装

    FFMpeg在官方网站中提供了已经编译好的可执行文件,用FFmpeg的人很多,因为FFmpeg是开源的,并且可以自己DIY,而且很强大,所以,FF...

    用户3765803
  • Consul 简介

    1、服务发现:一个客户端提供自己的服务,例如api服务,或者mysql服务,另一个客户端就可以利用Consul通过DNS或者http来发现这些服务的提供者。

    WindWant
  • Docker - 容器部署 Consul 集群

    本文主要介绍怎么使用 Docker 在 Linux 环境部署 Consul 集群,如果你对 Docker 不了解的同学,请先学习一下 Docker。推荐一本学习...

    心莱科技雪雁

扫码关注云+社区

领取腾讯云代金券