summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorclaudio <claudio@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-04-20 13:27:16 +0000
committerclaudio <claudio@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-04-20 13:27:16 +0000
commit4280ba74a9c4391ecff27136abd4475f0029dc93 (patch)
tree3ba4e195f2a050bc418a1f95ac22a55c6d47459e /target
parenta7429453a26e903974b7ca375cf899e3840a845b (diff)
[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')
-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