многослойный патч bitbake - PullRequest
       10

многослойный патч bitbake

0 голосов
/ 06 ноября 2018

Наш проект имеет два слоя, каждый слой добавляет патч к одному и тому же файлу. Первый патч в слое с более низким приоритетом создает простой файл, слой с более высоким приоритетом, добавляет больше содержимого в файл. Эта операция всегда завершается неудачей в do_patch, потому что (несмотря на любой приоритет слоя), bitbake всегда сначала пробует второй патч, который завершается неудачей, поскольку файл еще не создан. Я показываю два журнала, в которых перевернут порядок .bbappend, но в обоих случаях второй патч ищется первым

Журнал 1:

DEBUG: Appending .bbappend file /home/bdawood/Desktop/projects/mm-chips-kernel/meta-morse-core/recipes-bsp/u-boot/u-boot-xlnx_2018.1.bbappend to /home/bdawood/Desktop/projects/mm-chips-kernel/meta-xilinx/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2018.1.bb
DEBUG: Appending .bbappend file /home/bdawood/Desktop/projects/mm-chips-kernel/meta-morse-devkit/recipes-bsp/u-boot/u-boot-xlnx_%.bbappend to /home/bdawood/Desktop/projects/mm-chips-kernel/meta-xilinx/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2018.1.bb
DEBUG: Executing task do_patch
NOTE: recipe u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0:     task do_patch: Started
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Executing python function extend_recipe_sysroot
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Python function extend_recipe_sysroot finished
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Executing python function do_patch
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Executing python function patch_do_patch
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Searching for 0002-Adding-sdhci1-through-mio.patch in paths:
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Searching for 0001-Add-u-boot-support-for-morse-m-series-board.patch in paths:
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Python function patch_do_patch finished
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Python function do_patch finished
NOTE: recipe u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0: task do_patch: Failed
DEBUG: Teardown for bitbake-worker
NOTE: Tasks Summary: Attempted 500 tasks of which 499 didn't need to be rerun and 1 failed.

Журнал 2:

DEBUG: Appending .bbappend file /home/bdawood/Desktop/projects/mm-chips-kernel/meta-morse-devkit/recipes-bsp/u-boot/u-boot-xlnx_%.bbappend to /home/bdawood/Desktop/projects/mm-chips-kernel/meta-xilinx/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2018.1.bb
DEBUG: Appending .bbappend file /home/bdawood/Desktop/projects/mm-chips-kernel/meta-morse-core/recipes-bsp/u-boot/u-boot-xlnx_2018.1.bbappend to     /home/bdawood/Desktop/projects/mm-chips-kernel/meta-xilinx/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2018.1.bb
DEBUG: Executing task do_patch
NOTE: recipe u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0: task do_patch: Started
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0     do_patch: Executing python function extend_recipe_sysroot
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Python function extend_recipe_sysroot finished
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Executing python function do_patch
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Executing python function patch_do_patch
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Searching for 0002-Adding-sdhci1-through-mio.patch in paths:...
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Searching for 0001-Add-u-boot-support-for-morse-m-series-board.patch in paths:
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Python function patch_do_patch finished
DEBUG: u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0 do_patch: Python function do_patch finished
NOTE: recipe u-boot-xlnx-v2018.01-xilinx-v2018.1+gitAUTOINC+949e5cb9a7-r0: task do_patch: Failed
DEBUG: Teardown for bitbake-worker
NOTE: Tasks Summary: Attempted 500 tasks of which 499 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/bdawood/Desktop/projects/mm-chips-kernel/meta-xilinx/meta-xilinx-        bsp/recipes-bsp/u-boot/u-boot-xlnx_2018.1.bb:do_patch
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit     code.
...