cd ~/chromiumos/src/third_party/kernel/v6.6 git remote add upstream https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch upstream git checkout v4.14 git branch -D fw-test git checkout -b fw-test v4.14 for p in ~1/files/*.patch; do patch -p1 < $p; git add . git commit -m "$p" done for p in ~1/files/v4l2/*.patch; do patch -p1 < $p; git add . git commit -m "$p" done
You can also see the result of applying patches with this (in the chroot):
cd ~/chromiumos/src/third_party/chromiumos-overlay/sys-kernel/linux-headers ebuild-${BOARD} linux-headers-9999.ebuild prepare
...though this won‘t give you a “git” tree and thus it’s harder to play with the result.