Changeset c2a4686 in network-demos
- Timestamp:
- 06/22/07 19:54:58 (15 years ago)
- Branches:
- 4.11, 57a009d5b89e72f488ab655184e6a33bb0fe6b7f, network-demos-4-10-branch, network-demos-4-8-branch, network-demos-4-9-branch
- Children:
- 07e6684
- Parents:
- 5e49d0d
- Location:
- http
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
http/ChangeLog
r5e49d0d rc2a4686 1 2007-06-22 Joel Sherrill <joel.sherrill@OARcorp.com> 2 3 * Makefile, init.c: Clean up. Make name of TARFILE related symbols 4 conditional based upon architecture. Change way desired object format 5 is determined so all BSPs compile this test. 6 1 7 2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com> 2 8 -
http/Makefile
r5e49d0d rc2a4686 43 43 LD_LIBS += -lhttpd 44 44 LD_LIBS += -lftpd 45 NATIVE_OBJ = $(shell $(OBJCOPY) 2>&1 | grep copy: | cut -d':' -f3 | cut -d' ' -f2) 45 #NATIVE_OBJ = $(shell $(OBJCOPY) 2>&1 | grep copy: | cut -d':' -f3 | cut -d' ' -f2) 46 OBJDUMP=$(OBJCOPY:copy=dump) 46 47 47 48 # … … 52 53 # 53 54 54 CLEAN_ADDITIONS += tarfile 55 CLEAN_ADDITIONS += tarfile obj_format 55 56 CLOBBER_ADDITIONS += 56 57 57 58 all: ${ARCH} $(SRCS) $(PGM) 58 59 59 ${PGM}: $(OBJS) $(LINK_FILES) 60 obj_format: 61 $(OBJDUMP) -f $(ARCH)/init.o | grep .o: | \ 62 sed -e 's/^.*format //' >obj_format 63 64 ${PGM}: $(OBJS) obj_format $(LINK_FILES) 60 65 cd rootfs ; tar cf ../$(ARCH)/tarfile web etc 61 66 cp $(ARCH)/tarfile . 62 $(OBJCOPY) -I binary -O $(NATIVE_OBJ) tarfile $(ARCH)/tarfile.o 63 $(LD) -r -o $(ARCH)/temp.o $(ARCH)/init.o $(ARCH)/tarfile.o 67 $(OBJCOPY) -I binary -O `cat obj_format` tarfile $(ARCH)/tarfile.o 68 $(LD) $(CPU_CFLAGS) -r -o $(ARCH)/temp.o \ 69 $(ARCH)/init.o $(ARCH)/tarfile.o 64 70 $(MV) $(ARCH)/temp.o $(ARCH)/init.o 65 71 $(RM) $(ARCH)/temp.o -
http/init.c
r5e49d0d rc2a4686 57 57 58 58 /* 59 * The tarfile is built in $(ARCH) so includes whether we were60 * built optimized or debug.59 * The tarfile is built automatically externally so we need to account 60 * for the leading symbol on the names. 61 61 */ 62 #if defined(__sh__) 63 #define SYM(_x) _x 64 #else 65 #define SYM(_x) _ ## _x 66 #endif 62 67 63 #if defined(USE_FTPD) 64 /* 65 #if defined(RTEMS_DEBUG) 66 extern int _binary_o_debug_tarfile_start; 67 extern int _binary_o_debug_tarfile_size; 68 #define TARFILE_START _binary_o_debug_tarfile_start 69 #define TARFILE_SIZE _binary_o_debug_tarfile_size 70 #else 71 extern int _binary_o_optimize_tarfile_start; 72 extern int _binary_o_optimize_tarfile_size; 73 #define TARFILE_START _binary_o_optimize_tarfile_start 74 #define TARFILE_SIZE _binary_o_optimize_tarfile_size 75 #endif 76 */ 77 extern int _binary_tarfile_start; 78 extern int _binary_tarfile_size; 79 #define TARFILE_START _binary_tarfile_start 80 #define TARFILE_SIZE _binary_tarfile_size 81 #endif 68 extern int SYM(binary_tarfile_start); 69 extern int SYM(binary_tarfile_size); 70 #define TARFILE_START SYM(binary_tarfile_start) 71 #define TARFILE_SIZE SYM(binary_tarfile_size) 82 72 83 73 #if defined(USE_FTPD) … … 97 87 printf("\n\n*** HTTP TEST ***\n\r" ); 98 88 99 /* init_paging(); */100 89 status = Untar_FromMemory((void *)(&TARFILE_START), (size_t)&TARFILE_SIZE); 90 101 91 rtems_bsdnet_initialize_network (); 102 92 #if defined(USE_FTPD) 103 93 rtems_initialize_ftpd(); 94 #endif 104 95 105 status = Untar_FromMemory((void *)(&TARFILE_START), (size_t)&TARFILE_SIZE);106 #endif107 108 96 #if defined(USE_HTTPD) 109 97 rtems_initialize_webserver();
Note: See TracChangeset
for help on using the changeset viewer.