Commit c36635c1 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix: Prepare upip frozen modules under build/.

parent f8a39e3b
......@@ -161,16 +161,16 @@ coverage_test: coverage
gcov -o build-coverage/py ../py/*.c
gcov -o build-coverage/extmod ../extmod/*.c
$(BUILD)/_frozen_upip.c: frozen_upip/
../tools/ frozen_upip > $@
$(BUILD)/_frozen_upip.c: $(BUILD)/frozen_upip/
../tools/ $(dir $^) > $@
# Select latest upip version available
UPIP_TARBALL := $(shell ls -1 -v ../tools/micropython-upip-*.tar.gz | tail -n1)
frozen_upip/ $(UPIP_TARBALL)
$(Q)rm -rf micropython-upip-*
$(BUILD)/frozen_upip/ $(UPIP_TARBALL)
$(ECHO) "MISC Preparing upip as frozen module"
$(Q)rm -rf $(BUILD)/micropython-upip-*
$(Q)tar -C $(BUILD) -xz -f $^
$(Q)rm -rf frozen_upip
$(Q)mkdir -p frozen_upip
$(Q)cp $(BUILD)/micropython-upip-*/upip*.py frozen_upip/
$(Q)rm -rf $(dir $@)
$(Q)mkdir -p $(dir $@)
$(Q)cp $(BUILD)/micropython-upip-*/upip*.py $(dir $@)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment