LPC2148 oots partially into NuttX
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@924 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
10e928c723
commit
5ee4e168f4
@ -83,6 +83,11 @@ nuttx: $(HEAD_AOBJ) board/libboard$(LIBEXT)
|
|||||||
@echo "LD: nuttx"
|
@echo "LD: nuttx"
|
||||||
@$(LD) --entry=__start $(LDFLAGS) $(LDPATHES) -L$(BOARDDIR) -o $(TOPDIR)/$@ $(HEAD_AOBJ) \
|
@$(LD) --entry=__start $(LDFLAGS) $(LDPATHES) -L$(BOARDDIR) -o $(TOPDIR)/$@ $(HEAD_AOBJ) \
|
||||||
--start-group $(LDLIBS) -lboard --end-group $(EXTRA_LIBS) $(LIBGCC)
|
--start-group $(LDLIBS) -lboard --end-group $(EXTRA_LIBS) $(LIBGCC)
|
||||||
|
ifeq ($(CONFIG_BOOT_FROM_FLASH),y)
|
||||||
|
@export flashloc=`$(OBJDUMP) --all-headers $(TOPDIR)/$@ | grep _eronly | cut -d' ' -f1`; \
|
||||||
|
$(OBJCOPY) --adjust-section-vma=.data=0x$$flashloc $(TOPDIR)/$@ $(TOPDIR)/$@.flashimage
|
||||||
|
@mv $(TOPDIR)/$@.flashimage $(TOPDIR)/$@
|
||||||
|
endif
|
||||||
@$(NM) $(TOPDIR)/$@ | \
|
@$(NM) $(TOPDIR)/$@ | \
|
||||||
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
||||||
sort > $(TOPDIR)/System.map
|
sort > $(TOPDIR)/System.map
|
||||||
|
@ -471,12 +471,9 @@ __start:
|
|||||||
mov fp, #0
|
mov fp, #0
|
||||||
bl up_earlyserialinit
|
bl up_earlyserialinit
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
showprogress 'C'
|
||||||
mov r0, #'C'
|
showprogress '\n'
|
||||||
bl up_putc
|
|
||||||
mov r0, #'\n'
|
|
||||||
bl up_putc
|
|
||||||
#endif
|
|
||||||
/* Initialize onboard LEDs */
|
/* Initialize onboard LEDs */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
|
Loading…
Reference in New Issue
Block a user