diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-04 13:31:34 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-04 13:31:34 -0600 |
commit | 23d6f51d4032133ed41ae5ccff887242d21a7609 (patch) | |
tree | 25fe79622978f206de14fa9559399c3925e64581 /nuttx/arch/mips | |
parent | b4ddd5c4d15cdb22e036721ff513e93c01b6f619 (diff) | |
download | nuttx-23d6f51d4032133ed41ae5ccff887242d21a7609.tar.gz nuttx-23d6f51d4032133ed41ae5ccff887242d21a7609.tar.bz2 nuttx-23d6f51d4032133ed41ae5ccff887242d21a7609.zip |
The 'make export' target needs to bundle up the user C startup file (crt0), not the kernel head object
Diffstat (limited to 'nuttx/arch/mips')
-rw-r--r-- | nuttx/arch/mips/src/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/arch/mips/src/Makefile b/nuttx/arch/mips/src/Makefile index 906bac59f..aeb3238a0 100644 --- a/nuttx/arch/mips/src/Makefile +++ b/nuttx/arch/mips/src/Makefile @@ -1,7 +1,7 @@ ############################################################################ # arch/mips/src/Makefile # -# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. +# Copyright (C) 2011-2012, 2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt <gnutt@nuttx.org> # # Redistribution and use in source and binary forms, with or without @@ -65,6 +65,7 @@ endif endif HEAD_OBJ = $(HEAD_ASRC:.S=$(OBJEXT)) +STARTUP_OBJS ?= $(HEAD_OBJ) ASRCS = $(CHIP_ASRCS) $(CMN_ASRCS) AOBJS = $(ASRCS:.S=$(OBJEXT)) @@ -140,9 +141,9 @@ endif # This is part of the top-level export target -export_head: board/libboard$(LIBEXT) $(HEAD_OBJ) +export_startup: board/libboard$(LIBEXT) $(STARTUP_OBJS) $(Q) if [ -d "$(EXPORT_DIR)/startup" ]; then \ - cp -f $(HEAD_OBJ) "$(EXPORT_DIR)/startup"; \ + cp -f $(STARTUP_OBJS) "$(EXPORT_DIR)/startup"; \ else \ echo "$(EXPORT_DIR)/startup does not exist"; \ exit 1; \ |