Selaa lähdekoodia

package/mtd: make fixtrx available on ar71xx as well

SVN-Revision: 24911
Gabor Juhos 15 vuotta sitten
vanhempi
sitoutus
9abe5cf110
3 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 1 1
      package/mtd/Makefile
  2. 1 0
      package/mtd/src/Makefile
  3. 2 2
      package/mtd/src/mtd.c

+ 1 - 1
package/mtd/Makefile

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=mtd
-PKG_RELEASE:=14
+PKG_RELEASE:=15
 
 PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
 STAMP_PREPARED := $(STAMP_PREPARED)_$(call confvar,CONFIG_MTD_REDBOOT_PARTS)

+ 1 - 0
package/mtd/src/Makefile

@@ -2,6 +2,7 @@ CC = gcc
 CFLAGS += -Wall
 
 obj = mtd.o jffs2.o crc32.o
+obj.ar71xx = trx.o
 obj.brcm = trx.o
 obj.brcm47xx = $(obj.brcm)
 obj.brcm63xx = imagetag.o

+ 2 - 2
package/mtd/src/mtd.c

@@ -597,8 +597,8 @@ int main (int argc, char **argv)
 				jffs2dir = optarg;
 				break;
 			case 'o':
-			    if (!mtd_fixtrx) {
-				    fprintf(stderr, "-o: Only for brcm47xx/brcm63xx\n");
+				if (!mtd_fixtrx) {
+					fprintf(stderr, "-o: is not available on this platform\n");
 					usage();
 				}
 				errno = 0;