-
bitbake virtual/bootloader -c devshell
-
Edit “include/configs/apalis-imx8.h”
-
Then “git diff” → Dump output and store it into separate file “0001-faster-baudrate.patch” iand edit .bbappend like the followings.
DEFCFG = “apalis-imx8-demo_defconfig”
SRC_URI_append = "
file://${DEFCFG}
file://0001-faster-baudrate.patch
" -
bitbake virtual/bootloader -c devshell
ERROR: u-boot-toradex-2020.04-r0 do_patch: Command Error: ‘quilt --quiltrc /home/infot/karma/yocto/toradex/oe-core/build/tmp/work/apalis_imx8_demo-tdx-linux/u-boot-toradex/2020.04-r0/recipe-sysroot-native/etc/quiltrc push’ exited with 0 Output:
Applying patch 0001-faster-baudrate.patch
patching file include/configs/apalis-imx8.h
Hunk #1 FAILED at 147.
1 out of 1 hunk FAILED – rejects in file include/configs/apalis-imx8.h
Patch 0001-faster-baudrate.patch does not apply (enforce with -f)
ERROR: Logfile of failure stored in: /home/infot/karma/yocto/toradex/oe-core/build/tmp/work/apalis_imx8_demo-tdx-linux/u-boot-toradex/2020.04-r0/temp/log.do_patch.3423198
ERROR: Task (/home/infot/karma/yocto/toradex/oe-core/build/…/layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex_2020.04.bb:do_patch) failed with exit code ‘1’
What’s wrong? “git diff” cannot be used with u-boot source code ?