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

pull/1994/head
Paul Sokolovsky 2016-04-19 11:40:57 +03:00
rodzic c618f91e22
commit 270dd29320
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

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