diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-04-29 23:17:39 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-04-29 23:17:39 +0000 |
commit | 98377020572b2999771e89b3368d5772492603cc (patch) | |
tree | 8236d755cdfd0bd8f20fa168a0b84910ddbdf8f9 /nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs | |
parent | abb501e6a313c7d79698b03a9ff9fd0a9da3bd2e (diff) | |
download | px4-nuttx-98377020572b2999771e89b3368d5772492603cc.tar.gz px4-nuttx-98377020572b2999771e89b3368d5772492603cc.tar.bz2 px4-nuttx-98377020572b2999771e89b3368d5772492603cc.zip |
Fix objcopy problem with newer toolchains
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1746 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs')
-rw-r--r-- | nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs b/nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs index 1ec3cfc19..224a7739c 100644 --- a/nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs +++ b/nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs @@ -44,9 +44,17 @@ NM = $(CROSSDEV)nm OBJCOPY = $(CROSSDEV)objcopy OBJDUMP = $(CROSSDEV)objdump +HOSTOS = ${shell uname -o} + ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} +ifeq ($(ARCHCCMAJOR),4) +ifneq ($(HOSTOS),Cygwin) +OBJCOPYARGS = -R .note -R .note.gnu.build-id -R .comment +endif +endif + ifeq ("${CONFIG_DEBUG}","y") ARCHOPTIMIZATION = -g else |