From 270dd293200b216545ea594937a79a88bc1e0bb0 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 19 Apr 2016 11:40:57 +0300 Subject: [PATCH] unix: Make sure build dir exists before accessing it for freezing upip. --- unix/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/unix/Makefile b/unix/Makefile index dbb88b7147..e534ccff5b 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -248,6 +248,7 @@ UPIP_TARBALL := $(shell ls -1 -v ../tools/micropython-upip-*.tar.gz | tail -n1) $(BUILD)/frozen_upip/upip.py: $(UPIP_TARBALL) $(ECHO) "MISC Preparing upip as frozen module" + $(Q)mkdir -p $(BUILD) $(Q)rm -rf $(BUILD)/micropython-upip-* $(Q)tar -C $(BUILD) -xz -f $^ $(Q)rm -rf $(dir $@)