Changeset 589 for soft/giet_vm/applications/router
- Timestamp:
- Jul 8, 2015, 3:57:15 PM (9 years ago)
- Location:
- soft/giet_vm/applications/router
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/router/Makefile
r191 r589 1 APP_NAME=router2 1 3 USE+= stdio.o 4 USE+= mwmr_channel.o 5 6 USES=$(patsubst %,$(BUILD_PATH)/$(LIB_NAME)/%,$(USE)) 2 APP_NAME = router 7 3 8 4 OBJS= main.o 9 5 10 all: $(APP_NAME).elf 6 LIBS= -L../../build/libs -luser 11 7 12 BIN_NAME_PATH=$(BUILD_PATH)$(APP_NAME).elf 8 INCLUDES = -I. -I../.. -I../../giet_libs -I../../giet_xml 13 9 14 $(APP_NAME).elf: $(OBJS) $(APP_NAME).ld 15 $(LD) -o $(BIN_NAME_PATH) -T $(APP_NAME).ld $(OBJS) $(USES) 16 $(DU) -D $(BIN_NAME_PATH) > $@.txt 10 LIB_DEPS = ../../build/libs/libuser.a 11 12 appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) 13 $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS) 14 $(DU) -D $@ > $@.txt 17 15 18 16 %.o: %.c 19 $(CC) $(INCLUDE) $(CFLAGS) $($*.o_CFLAGS) -c -o $@ $< 20 $(DU) -D $@ > $@.txt 17 $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< 21 18 22 19 clean: 23 rm -f *.o *.elf *.txt core *~ 2>$(TRASH) 24 rm $(BIN_NAME_PATH) 2>$(TRASH) 20 rm -f *.o *.elf *.txt core *~ -
soft/giet_vm/applications/router/router.py
r457 r589 26 26 #################################################################################### 27 27 28 ###################### ###29 def router( mapping ):28 ###################### 29 def extend( mapping ): 30 30 31 31 x_size = mapping.x_size … … 54 54 mapping.addVseg( vspace, 'router_data_0', data_0_base , data_0_size, 55 55 'C_WU', vtype = 'ELF', x = 0, y = 0, pseg = 'RAM', 56 binpath = 'build/router/ router.elf',56 binpath = 'build/router/appli.elf', 57 57 local = False ) 58 58 … … 60 60 mapping.addVseg( vspace, 'router_data_1', data_1_base , data_1_size, 61 61 'C_WU', vtype = 'ELF', x = x_size - 1, y = y_size - 1, pseg = 'RAM', 62 binpath = 'build/router/ router.elf',62 binpath = 'build/router/appli.elf', 63 63 local = False ) 64 64 … … 108 108 if __name__ == '__main__': 109 109 110 vspace = router( Mapping( 'test', 2, 2, 4 ) )110 vspace = extend( Mapping( 'test', 2, 2, 4 ) ) 111 111 print vspace.xml() 112 112
Note: See TracChangeset
for help on using the changeset viewer.