summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-03 21:10:52 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-03 21:10:52 +0200
commit3a9a4a4d705c17c46dfeba2010ba285c2b5a9320 (patch)
tree33da9a887060c116fe16854706490879d7a1e3a8 /Makefile
parentcf6617c81c9f1ae3e2d8701b4f5effa192bc39df (diff)
parent37f77bf6f205d401b6e653b338ff598736b9e881 (diff)
downloadbarebox-3a9a4a4d705c17c46dfeba2010ba285c2b5a9320.tar.gz
barebox-3a9a4a4d705c17c46dfeba2010ba285c2b5a9320.tar.xz
Merge branch 'for-next/make'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1fdb6e71f6..001e6a1498 100644
--- a/Makefile
+++ b/Makefile
@@ -462,12 +462,18 @@ CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
# disable pointer signed / unsigned warnings in gcc 4.0
CFLAGS += $(call cc-option,-Wno-pointer-sign,)
-# Default kernel image to build when no specific target is given.
-# KBUILD_IMAGE may be overruled on the command line or
-# set in the environment
-# Also any assignments in arch/$(ARCH)/Makefile take precedence over
-# this default value
+# KBUILD_IMAGE: Default barebox image to build
+# Depending on the architecture, this can be either compressed or not.
+# It will also include any necessary headers to be bootable.
export KBUILD_IMAGE ?= barebox.bin
+# KBUILD_BINARY: Raw barebox binary
+# This variable is set in case the architecture prepends a header and
+# points to a binary that can be loaded directly into RAM and executed.
+export KBUILD_BINARY ?= barebox.bin
+# KBUILD_IMAGE and _BINARY may be overruled on the command line or
+# set in the environment.
+# Also any assignments in arch/$(ARCH)/Makefile take precedence over
+# the default value.
barebox-flash-image: $(KBUILD_IMAGE)
$(call if_changed,ln)