Andes Workshop

It is currently Thu Dec 13, 2018 11:15 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Virtual hosting on FreeRTOS
PostPosted: Fri Aug 31, 2018 2:22 pm 
Offline

Joined: Mon Dec 12, 2016 5:07 pm
Posts: 18
In the makefile, I modified some of them so that you could just change the value of VH to support virtual hosting. The key ideas are
1) Add -mvh to LDFLAGS
2) Comment/Remove the code for do_printf.c annd printf.c
---------------------------
In the makefile, at around line 8, add
# VH --> virtual hosting feature, could be 0 or 1
VH := 0
----------------------------
At LD_FLAGS line, the name may be LD_FLAGS or LDFLAGS
ifeq ($(VH),1)
LD_FLAGS := $(OPTIM) -fno-builtin -nostartfiles -mvh -static $(CMODEL)
else
LD_FLAGS := $(OPTIM) -fno-builtin -nostartfiles -static $(CMODEL)
endif
---------------------------
take do_printf.c and printf.c off LIBC_SRC. Add another PRINTF_SRC below LIBC_SRC
ifneq ($(VH),1)
PRINTF_SRC := \
$(LIBC_PATH)/stdio/do_printf.c \
$(LIBC_PATH)/stdio/printf.c
endif
----------------
Add PRINTF_SRC to SRCS:=
SRCS := \
${NDS32_SRC} \
${RTOS_SRC} \
${LIBC_SRC} \
${${APP}_DRIVER_SRC} \
${${APP}_LIB_SRC} \
$(PRINTF_SRC)


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group