Switched to a new branch '20180809132258.21874-1-lersek@redhat.com' Applying: BaseTools/footer.makefile: expand BUILD_CFLAGS last for C files too error: patch failed: BaseTools/Source/C/Makefiles/footer.makefile:24 error: BaseTools/Source/C/Makefiles/footer.makefile: patch does not apply error: Did you hand edit your patch? It does not apply to blobs recorded in its index. Using index info to reconstruct a base tree... Patch failed at 0001 BaseTools/footer.makefile: expand BUILD_CFLAGS last for C files too The copy of the patch that failed is found in: .git/rebase-apply/patch When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". Failed to apply patch: [edk2] [PATCH v2 1/5] BaseTools/footer.makefile: expand BUILD_CFLAGS last for C files too