Changeset 110
- Timestamp:
- 06/18/06 20:57:56 (6 years ago)
- Files:
-
- trunk/freewrt/scripts/byteswap.h (added)
- trunk/freewrt/scripts/endian.h (added)
- trunk/freewrt/scripts/getline.c (added)
- trunk/freewrt/scripts/param.h (added)
- trunk/freewrt/target/linux/image/jffs2/Makefile (modified) (1 diff)
- trunk/freewrt/target/linux/image/jffs2/patches/000-only_mkfs_jffs2.patch (added)
- trunk/freewrt/target/linux/image/jffs2/patches/010-portability.patch (added)
- trunk/freewrt/toolchain/utils/Makefile (modified) (1 diff)
- trunk/freewrt/toolchain/utils/src/trx.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/freewrt/target/linux/image/jffs2/Makefile
r1 r110 13 13 zcat $(DL_DIR)/$(MTD_SOURCE) | tar -C $(BUILD_DIR) -xvf - 14 14 $(PATCH) $(MTD_DIR) ./patches 15 cd $(TOPDIR)/scripts && cp byteswap.h endian.h param.h \ 16 $(MTD_DIR)/include/ 17 cp $(TOPDIR)/scripts/getline.c $(MTD_DIR)/util/ 15 18 touch $(MTD_DIR)/.unpacked 16 19 trunk/freewrt/toolchain/utils/Makefile
r100 r110 21 21 22 22 $(UTILS_BUILD_DIR)/%: src/%.c 23 $(CC) -o $@ $(patsubst $(UTILS_BUILD_DIR)/%,src/%.c,$@) 23 $(HOSTCC) -I $(TOPDIR)/scripts $(HOSTCFLAGS) -o $@ \ 24 $(patsubst $(UTILS_BUILD_DIR)/%,src/%.c,$@) 24 25 chmod 755 $@ 25 trunk/freewrt/toolchain/utils/src/trx.c
r52 r110 18 18 */ 19 19 20 #include <param.h> 20 21 #include <stdio.h> 21 22 #include <stdlib.h> … … 25 26 #include <errno.h> 26 27 #include <unistd.h> 27 #if defined(__APPLE__) 28 #include <machine/endian.h> 29 #include <machine/byte_order.h> 30 #define __BYTE_ORDER BYTE_ORDER 31 #define __BIG_ENDIAN BIG_ENDIAN 32 #define bswap_16(x) NXSwapShort(x) 33 #define bswap_32(x) NXSwapInt(x) 34 #define bswap_64(x) NXSwapLongLong(x) 35 #elif defined(__OpenBSD__) 36 #include <machine/endian.h> 37 #define bswap_16(x) swap16(x) 38 #define bswap_32(x) swap32(x) 39 #define bswap_64(x) swap64(x) 40 #else 28 #include <byteswap.h> 41 29 #include <endian.h> 42 #include <byteswap.h>43 #endif44 30 45 31 #if __BYTE_ORDER == __BIG_ENDIAN


