[Buildroot] [PATCH 7/9] Add last resort setting of $(LINUX26_BINLOC) for kernel image filename

Grant Likely grant.likely at secretlab.ca
Thu Oct 16 20:32:51 UTC 2008

From: Grant Likely <grant.likely at secretlab.ca>

When building a custom image type, LINUX26_BINLOC will not get set and
the image file will not get copied into the binaries directory.  This
patch adds a last resort setting of the LINUX26_BINLOC value so that
at the very least it will be the same name as the requested custom
kernel image format

 target/linux/Makefile.in.advanced |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/target/linux/Makefile.in.advanced b/target/linux/Makefile.in.advanced
index 3018ab3..42384f1 100644
--- a/target/linux/Makefile.in.advanced
+++ b/target/linux/Makefile.in.advanced
@@ -147,9 +147,6 @@ endif
 # --------------
 ifeq ($(LINUX26_FORMAT),zImage)
-ifeq ($(LINUX26_BINLOC),)
@@ -162,6 +159,11 @@ endif
+# --------------
+# Last resort; if BINLOC is not set, then use the target name
+ifeq ($(LINUX26_BINLOC),)
 # -----------------------------------------------------------------------------
 # File name for the Linux kernel binary

More information about the buildroot mailing list