source:
freewrt/tools/jffs2/patches/010-portability.patch@
6bcf6ae
| Last change on this file since 6bcf6ae was a59bb75, checked in by , 19 years ago | |
|---|---|
|
|
| File size: 3.0 KB | |
-
mtd-20050122.orig/util/Makefile
$FreeWRT$ portability fixes
old new SYMLINKS = compr_lzari.c compr_lzo.c 23 19 $(CC) $(LDFLAGS) -g -o $@ $^ 24 20 25 21 %.o: %.c 26 $(CC) $(CFLAGS) -g -c -o $@ $< -g -Wp,-MD,.$<.dep22 $(CC) -include param.h $(CFLAGS) -g -c -o $@ $< -g -Wp,-MD,.$<.dep 27 23 28 24 .SUFFIXES: 29 25 … … clean: 38 34 $(SYMLINKS): 39 35 ln -sf ../fs/jffs2/$@ $@ 40 36 41 mkfs.jffs2: crc32.o compr_rtime.o mkfs.jffs2.o compr_zlib.o compr.o compr_lzari.o compr_lzo.o 37 mkfs.jffs2: crc32.o compr_rtime.o mkfs.jffs2.o compr_zlib.o compr.o compr_lzari.o compr_lzo.o getline.o 42 38 $(CC) $(LDFLAGS) -o $@ $^ -lz 43 39 44 40 flash_eraseall: crc32.o flash_eraseall.o -
mtd-20050122.orig/util/compr_zlib.c
old new 38 38 #include <stdint.h> 39 39 #include <zlib.h> 40 40 #include <stdio.h> 41 #ifdef __linux__ 41 42 #include <asm/types.h> 43 #endif 42 44 #include <linux/jffs2.h> 43 45 #include "compr.h" 44 46 -
mtd-20050122.orig/util/mkfs.jffs2.c
old new 68 68 #include <zlib.h> 69 69 #undef crc32 70 70 #include "crc32.h" 71 #include <endian.h> 71 72 72 73 /* Do not use the wierd XPG version of basename */ 73 74 #undef basename … … static void recursive_populate_directory 1032 1033 case S_IFDIR: 1033 1034 if (verbose) { 1034 1035 printf("\td %04o %9lu %5d:%-3d %s\n", 1035 e->sb.st_mode & ~S_IFMT, e->sb.st_size,1036 e->sb.st_mode & ~S_IFMT, (unsigned long)e->sb.st_size, 1036 1037 (int) (e->sb.st_uid), (int) (e->sb.st_gid), 1037 1038 e->name); 1038 1039 } … … static void recursive_populate_directory 1041 1042 case S_IFSOCK: 1042 1043 if (verbose) { 1043 1044 printf("\ts %04o %9lu %5d:%-3d %s\n", 1044 e->sb.st_mode & ~S_IFMT, e->sb.st_size,1045 e->sb.st_mode & ~S_IFMT, (unsigned long)e->sb.st_size, 1045 1046 (int) e->sb.st_uid, (int) e->sb.st_gid, e->name); 1046 1047 } 1047 1048 write_pipe(e); … … static void recursive_populate_directory 1049 1050 case S_IFIFO: 1050 1051 if (verbose) { 1051 1052 printf("\tp %04o %9lu %5d:%-3d %s\n", 1052 e->sb.st_mode & ~S_IFMT, e->sb.st_size,1053 e->sb.st_mode & ~S_IFMT, (unsigned long)e->sb.st_size, 1053 1054 (int) e->sb.st_uid, (int) e->sb.st_gid, e->name); 1054 1055 } 1055 1056 write_pipe(e); … … static void recursive_populate_directory 1075 1076 case S_IFLNK: 1076 1077 if (verbose) { 1077 1078 printf("\tl %04o %9lu %5d:%-3d %s -> %s\n", 1078 e->sb.st_mode & ~S_IFMT, e->sb.st_size,1079 e->sb.st_mode & ~S_IFMT, (unsigned long)e->sb.st_size, 1079 1080 (int) e->sb.st_uid, (int) e->sb.st_gid, e->name, 1080 1081 e->link); 1081 1082 } … … static void recursive_populate_directory 1084 1085 case S_IFREG: 1085 1086 if (verbose) { 1086 1087 printf("\tf %04o %9lu %5d:%-3d %s\n", 1087 e->sb.st_mode & ~S_IFMT, e->sb.st_size,1088 e->sb.st_mode & ~S_IFMT, (unsigned long)e->sb.st_size, 1088 1089 (int) e->sb.st_uid, (int) e->sb.st_gid, e->name); 1089 1090 } 1090 1091 write_regular_file(e);
Note:
See TracBrowser
for help on using the repository browser.
