unix: Make sure build dir exists before accessing it for freezing upip.

This commit is contained in:
Paul Sokolovsky 2016-04-19 11:40:57 +03:00
parent c618f91e22
commit 270dd29320

View File

@ -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 $@)