Author: blogic
Date: 2015-11-21 22:24:44 +0100 (Sat, 21 Nov 2015)
New Revision: 47558

Modified:
   trunk/target/linux/brcm2708/image/Makefile
Log:
brcm2708: simplify gzip image generation

Signed-off-by: ?\195?\129lvaro Fern?\195?\161ndez Rojas <[email protected]>

Modified: trunk/target/linux/brcm2708/image/Makefile
===================================================================
--- trunk/target/linux/brcm2708/image/Makefile  2015-11-21 21:24:38 UTC (rev 
47557)
+++ trunk/target/linux/brcm2708/image/Makefile  2015-11-21 21:24:44 UTC (rev 
47558)
@@ -11,16 +11,6 @@
 FAT32_BLOCK_SIZE=1024
 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 ###
 define Build/gen-cfg
        cat config.txt > [email protected]
@@ -49,7 +39,7 @@
 define Build/sdcard-img
        ./gen_rpi_sdcard_img.sh $@ [email protected] $(word 2,$^) \
                $(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
 
 ### Device macros ###
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to