Modify

Opened 4 years ago

Last modified 4 years ago

#15447 new defect

make gzip'ed rootfs images for x86 fails if USE_GRUB is not set

Reported by: stefan@… Owned by: developers
Priority: low Milestone: Barrier Breaker 14.07
Component: toolchain Version: Attitude Adjustment 12.09
Keywords: Cc:

Description

If you de-select Build GRUB images and select GZip images in the "Target Images" menuconfig for x86 platforms, then make world fails with gzip not finding the "'combined image" file.

I have fixed this for me with this patch:

--- target/linux/x86/image/Makefile.O	2014-04-02 20:10:33.000000000 +0200
+++ target/linux/x86/image/Makefile	2014-04-02 20:35:00.000000000 +0200
@@ -207,10 +207,16 @@
   endef
 endif
 
-define Image/Build/gzip
+ifneq ($(CONFIG_X86_GRUB_IMAGES),)
+  define Image/Build/gzip
 	gzip -f9 $(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).img
 	gzip -f9 $(BIN_DIR)/$(IMG_PREFIX)-rootfs-$(1).img
-endef
+  endef
+else
+  define Image/Build/gzip
+	gzip -f9 $(BIN_DIR)/$(IMG_PREFIX)-rootfs-$(1).img
+  endef
+endif
 
 ifneq ($(CONFIG_TARGET_IMAGES_GZIP),)
   define Image/Build/gzip/ext4

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.