Changeset ba3f8b9 in freewrt
- Timestamp:
- Jun 18, 2006, 8:57:56 PM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 3c7fa36
- Parents:
- fe35ba1
- Files:
-
- 6 added
- 3 edited
-
scripts/byteswap.h (added)
-
scripts/endian.h (added)
-
scripts/getline.c (added)
-
scripts/param.h (added)
-
target/linux/image/jffs2/Makefile (modified) (1 diff)
-
target/linux/image/jffs2/patches/000-only_mkfs_jffs2.patch (added)
-
target/linux/image/jffs2/patches/010-portability.patch (added)
-
toolchain/utils/Makefile (modified) (1 diff)
-
toolchain/utils/src/trx.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
target/linux/image/jffs2/Makefile
rfe35ba1 rba3f8b9 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 -
toolchain/utils/Makefile
rfe35ba1 rba3f8b9 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 -
toolchain/utils/src/trx.c
rfe35ba1 rba3f8b9 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
Note:
See TracChangeset
for help on using the changeset viewer.
