summaryrefslogtreecommitdiffstats
path: root/images/Makefile
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2015-03-06 21:22:01 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-03-09 11:52:58 +0100
commit2a2522eb8d5b1d358e78f40888d96f34a00898c6 (patch)
treec1aaade9b8cfff0f341d75d099f2ca486221a52f /images/Makefile
parent60a4277b3e1f6da921f0d84c262a22da02c50c58 (diff)
downloadbarebox-2a2522eb8d5b1d358e78f40888d96f34a00898c6.tar.gz
barebox-2a2522eb8d5b1d358e78f40888d96f34a00898c6.tar.xz
images: move board variable to parent makefile
A lot of the image makefiles define an equal board variable, which gives the impression that this variable is unique for this makefile. As those files aren't freestanding makefiles but get included into a parent makefile this is not actually true. Attempts to override this variable will not work reliable as make is picking up a random instance. Fix this confusion by moving this variable out of the individual makefiles. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images/Makefile')
-rw-r--r--images/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/images/Makefile b/images/Makefile
index f7e978cde1..f40de7bc23 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -97,6 +97,8 @@ $(obj)/%.img: $(obj)/$$(FILE_$$(@F))
$(Q)if [ -z $(FILE_$(@F)) ]; then echo "FILE_$(@F) empty!"; false; fi
$(call if_changed,shipped)
+board = $(srctree)/arch/$(ARCH)/boards
+
include $(srctree)/images/Makefile.am33xx
include $(srctree)/images/Makefile.imx
include $(srctree)/images/Makefile.mvebu