Skip to content
Snippets Groups Projects
Commit 223d88f8 authored by John Crispin's avatar John Crispin
Browse files

brcm2708: simplify gzip image generation


Signed-off-by: default avatarÁlvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 47558
parent 40ddc71c
No related branches found
No related tags found
No related merge requests found
...@@ -11,16 +11,6 @@ include $(INCLUDE_DIR)/host.mk ...@@ -11,16 +11,6 @@ include $(INCLUDE_DIR)/host.mk
FAT32_BLOCK_SIZE=1024 FAT32_BLOCK_SIZE=1024
FAT32_BLOCKS=$(shell echo $$(($(CONFIG_BRCM2708_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE)))) FAT32_BLOCKS=$(shell echo $$(($(CONFIG_BRCM2708_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE))))
ifneq ($(CONFIG_TARGET_IMAGES_GZIP),)
define Image/gzip
gzip -9n -c $(1) > $(1).gz
mv $(1).gz $(BIN_DIR)
endef
else
define Image/gzip
endef
endif
### Image scripts ### ### Image scripts ###
define Build/gen-cfg define Build/gen-cfg
cat config.txt > $@.config cat config.txt > $@.config
...@@ -49,7 +39,7 @@ endef ...@@ -49,7 +39,7 @@ endef
define Build/sdcard-img define Build/sdcard-img
./gen_rpi_sdcard_img.sh $@ $@.boot $(word 2,$^) \ ./gen_rpi_sdcard_img.sh $@ $@.boot $(word 2,$^) \
$(CONFIG_BRCM2708_SD_BOOT_PARTSIZE) $(CONFIG_TARGET_ROOTFS_PARTSIZE) $(CONFIG_BRCM2708_SD_BOOT_PARTSIZE) $(CONFIG_TARGET_ROOTFS_PARTSIZE)
$(call Image/gzip,$@) $(if $(CONFIG_TARGET_IMAGES_GZIP),gzip -9n -c $@ > $(BIN_DIR)/$(notdir $@).gz)
endef endef
### Device macros ### ### Device macros ###
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment