aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/at91
diff options
context:
space:
mode:
authorClaudio Mignanti <c.mignanti@gmail.com>2012-04-20 13:27:16 +0000
committerClaudio Mignanti <c.mignanti@gmail.com>2012-04-20 13:27:16 +0000
commit6b6d6826b825d652d6c1212341e672f1df45025a (patch)
tree3ba4e195f2a050bc418a1f95ac22a55c6d47459e /target/linux/at91
parent29681c73264b4529b3ac300111ce990f33ebd9fa (diff)
downloadupstream-6b6d6826b825d652d6c1212341e672f1df45025a.tar.gz
upstream-6b6d6826b825d652d6c1212341e672f1df45025a.tar.bz2
upstream-6b6d6826b825d652d6c1212341e672f1df45025a.zip
[at91] Ensure that the bin directory exists before copy the files
Signed-off-by: Claudio Mignanti <c.mignanti@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31370 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/at91')
-rw-r--r--target/linux/at91/image/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/at91/image/Makefile b/target/linux/at91/image/Makefile
index c50732c0c4..97723bb828 100644
--- a/target/linux/at91/image/Makefile
+++ b/target/linux/at91/image/Makefile
@@ -21,6 +21,7 @@ define Image/Prepare
endef
define Image/BuildKernel
+ mkdir -p $(BIN_DIR)
mkimage -A arm -T kernel -C none -a 0x20008000 -e 0x20008000 -n linux-2.6 \
-d $(LINUX_DIR)/arch/arm/boot/Image $(BIN_DIR)/$(IMG_PREFIX)-uImage
if [ $(CONFIG_FLEXIBITY_ROOT) ]; then \
@@ -30,6 +31,7 @@ endef
define Image/Build
$(call Image/Build/$(1),$(1))
+ mkdir -p $(BIN_DIR)
cp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-root.$(1)
endef