mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-04-22 22:37:21 +02:00
Compress release images with xz for smaller image files.
Raspberrypy imager has support for it. Linux CLI users no how to deal with it.
This commit is contained in:
parent
b07b1c55f8
commit
41fc58ccfa
2
Makefile
2
Makefile
@ -24,6 +24,8 @@ $(TARGETS): %: $(RELEASE_DIR) %-config
|
|||||||
@echo "build $@"
|
@echo "build $@"
|
||||||
$(MAKE) -C $(BUILDROOT) BR2_EXTERNAL=../$(BUILDROOT_EXTERNAL) 2>&1 | tee logs/buildroot_$@_output.txt
|
$(MAKE) -C $(BUILDROOT) BR2_EXTERNAL=../$(BUILDROOT_EXTERNAL) 2>&1 | tee logs/buildroot_$@_output.txt
|
||||||
cp -f $(BUILDROOT)/output/images/sdcard.img $(RELEASE_DIR)/OpenVoiceOS_$@.img
|
cp -f $(BUILDROOT)/output/images/sdcard.img $(RELEASE_DIR)/OpenVoiceOS_$@.img
|
||||||
|
rm $(RELEASE_DIR)/OpenVoiceOS_$@.img.xz
|
||||||
|
xz -3 -T0 $(RELEASE_DIR)/OpenVoiceOS_$@.img
|
||||||
|
|
||||||
# Do not clean when building for one target
|
# Do not clean when building for one target
|
||||||
ifneq ($(words $(filter $(TARGETS),$(MAKECMDGOALS))), 1)
|
ifneq ($(words $(filter $(TARGETS),$(MAKECMDGOALS))), 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user