Skip to content

Trouble with line endings when patching NVIDIA.common.dsc.inc in edk2-firmware-tegra #1303

Answered by madisongh
bhagen55 asked this question in Q&A
Discussion options

You must be logged in to vote

The DOS-style line endings in the UEFI code base, the multiple repos involved, and the fact that ${S} is the top of the edk2 repo (with the other repos sitting beside, rather than below), all contribute to the patch-generation problem. git format-patch does work best, but you may have to massage the paths a bit. For consistency, regardless of which of the component repos has the patch, I'll use
$ git format-patch --src-prefix="edk2-tegra.a/edk2-nvidia/" --dst-prefix="edk2-tegra.b/edk2-nvidia/" ...
to generate the patches (with that example being for the edk2-nvidia repo), and then add ;patchdir=.. to the entry in SRC_URI, so that the patching is applied from the top-level directory above …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bhagen55
Comment options

@madisongh
Comment options

Answer selected by bhagen55
@bhagen55
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants