summaryrefslogtreecommitdiff
path: root/target/linux/at91/image/Makefile
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
commitf50231aeb3bd0d6a8c7dc04cc7130d8a64938e63 (patch)
tree22e25c858b0a694e8b32ec20e8518272ca2a9311 /target/linux/at91/image/Makefile
parent147646fc66ceaec1da163314bce531eb6400357f (diff)
downloadmtk-20170518-f50231aeb3bd0d6a8c7dc04cc7130d8a64938e63.zip
mtk-20170518-f50231aeb3bd0d6a8c7dc04cc7130d8a64938e63.tar.gz
mtk-20170518-f50231aeb3bd0d6a8c7dc04cc7130d8a64938e63.tar.bz2
Ensure that the bin directory exists before copy the files
Signed-off-by: Claudio Mignanti <c.mignanti@gmail.com> SVN-Revision: 31370
Diffstat (limited to 'target/linux/at91/image/Makefile')
-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 c50732c..97723bb 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