Browse Source

really fix tgz images

SVN-Revision: 8065
Felix Fietkau 18 years ago
parent
commit
793b09b854
2 changed files with 5 additions and 3 deletions
  1. 0 1
      include/image.mk
  2. 5 2
      target/linux/adm5120-2.6/image/Makefile

+ 0 - 1
include/image.mk

@@ -57,7 +57,6 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
   ifeq ($(CONFIG_TARGET_ROOTFS_TGZ),y)
     define Image/mkfs/tgz
 		$(TAR) -zcf $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tgz --owner=root --group=root -C $(BUILD_DIR)/root/ .
-		$(call Image/Build,tgz)
     endef
   endif
 else

+ 5 - 2
target/linux/adm5120-2.6/image/Makefile

@@ -121,10 +121,13 @@ endif
 endif
 endif
 endif
-ifeq ($(1),tgz)
+endef
+
+ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
+  define Image/BuildKernel
 	$(call Image/Build/RouterBoard)
+  endef
 endif
-endef
 
 define Image/Build/LZMAKernel
 	$(LOADER_MAKE) TARGET_DIR=$(BIN_DIR) \