The patch
command expects the Patch at stdin
. So either pipe the patch into the command:
patch -Np1 < ../efivar.patch
or specify the input file with the -i
argument.
patch -Np1 -i ../efivar.patch
As you can see, the first diff is from file a/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
. Let's assume the actual relativ-file path is efivar/0001-efivar-fix-for-cross-compile.patch
from your current working directory. Then you have to tell patch
to ignore the first 4 directory levels, so it can find the files to patch. You do this by saying p4
instead of p1
.