From b2b2512cbc4196fa0f814be3677517dab30e5b52 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 4 Sep 2012 08:40:33 -0400 Subject: linux-yocto: fix unapplied patch error message When patches fail to apply, the status of all pending patches should be exported to the logs and to the user. Currently, a missing export of GUILT_BASE makes it look more like an internal error, than a 'normal' patch failure: | [ERROR] unable to complete push | pending patches are: | Patches directory doesn't exist, try guilt-init With this variable exported, we have this: | [INFO] validating against known patches (qemux86-standard-meta) | error: patch failed: Makefile:2 | error: Makefile: patch does not apply | To force apply this patch, use 'guilt push -f' | [ERROR] unable to complete push | pending patches are: | links/files/0002-makefile-patch.patch Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie --- meta/classes/kernel-yocto.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta/classes/kernel-yocto.bbclass') diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index 3dcc8b52dd..45918d65aa 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass @@ -97,7 +97,8 @@ do_patch() { # executes and modifies the source tree as required patchme ${KMACHINE} if [ $? -ne 0 ]; then - echo "ERROR. Could not apply updates for ${KMACHINE}" + echo "ERROR. Could not apply patches for ${KMACHINE}." + echo " Patch failures can be resolved in the devshell (bitbake -c devshell ${PN})" exit 1 fi -- cgit v1.2.3