From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9251 invoked by alias); 20 Dec 2012 07:44:10 -0000 Received: (qmail 9242 invoked by uid 22791); 20 Dec 2012 07:44:09 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from p02c12o145.mxlogic.net (HELO p02c12o145.mxlogic.net) (208.65.145.78) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 Dec 2012 07:44:02 +0000 Received: from unknown [12.218.215.72] (EHLO smtpauth1.linear.com) by p02c12o145.mxlogic.net(mxl_mta-6.16.0-0) with ESMTP id 1c1c2d05.0.123693.00-343.265276.p02c12o145.mxlogic.net (envelope-from ); Thu, 20 Dec 2012 00:44:02 -0700 (MST) X-MXL-Hash: 50d2c1c27d4220e5-1ef8151ad692f4ca30b86f93beca33a45d978275 Received: from smtpauth1.linear.com (localhost [127.0.0.1]) by smtpauth1.linear.com (Postfix) with ESMTP id C4AB6740A9 for ; Wed, 19 Dec 2012 23:44:00 -0800 (PST) Received: from [192.168.0.119] (174-24-17-30.clsp.qwest.net [174.24.17.30]) by smtpauth1.linear.com (Postfix) with ESMTPSA id 91097740A6 for ; Wed, 19 Dec 2012 23:44:00 -0800 (PST) From: Michael Jones Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: Date: Thu, 20 Dec 2012 07:44:00 -0000 To: ecos-discuss@ecos.sourceware.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-AnalysisOut: [v=2.0 cv=BKYEWisG c=1 sm=1 a=glloKNylpeYNumXQcclYyA==:17 a] X-AnalysisOut: [=wnLy1atwovkA:10 a=D2_GN2MmYMYA:10 a=BLceEmwcHowA:10 a=kj9] X-AnalysisOut: [zAlcOel0A:10 a=MqDINYqSAAAA:8 a=uSssN97AA_QA:10 a=ul1Mnlb2] X-AnalysisOut: [JlTQ-SJRS_8A:9 a=CjuIK1q_8ugA:10] X-MAIL-FROM: X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Eclipse / CDT without Makefile Project X-SW-Source: 2012-12/txt/msg00040.txt.bz2 I have been trying to make an Eclipse/CDT (Juno) project for eCos, but not = a Makefile project. Mainly so that it can navigate to h files, and try to s= ee if it will drive GDB. Eclipse seems to ignore linker options and do its own thing. For example, f= or the linker I have: -mcpu=3Dcortex-m3 -mthumb -Wl,--gc-sections -Wl,-static -Wl,-n -g -v -nostd= lib -T../../ecos/TWR-K60D100M_install/lib/target.ld But, it appears that some options, like -T are ignored. And the linker trie= s to link in crt0.o, even if I set the compile options to not include start= up files. What is surprising is Eclipse make a makefile that seemed correct= . Although, I am not a gcc/make expert. I did notice it puts all the option= s on one line, rather than splitting the build into compile and link. Perha= ps that is part of the problem. See the makefile below. Is there a way to make Eclipse strictly obey all my options and build prope= rly? Does anyone have a simple project I can look at to see how to set this up? Is this a complete waste of my time? Mike Generated Makefile ###########################################################################= ##### # Automatically-generated file. Do not edit! ###########################################################################= ##### -include ../makefile.init RM :=3D rm -rf # All of the sources participating in the build are defined here -include sources.mk -include Sources/subdir.mk -include subdir.mk -include objects.mk ifneq ($(MAKECMDGOALS),clean) ifneq ($(strip $(C_DEPS)),) -include $(C_DEPS) endif endif -include ../makefile.defs # Add inputs and outputs from these tool invocations to the build variables= =20 # All Target all: hello_world # Tool invocations hello_world: $(OBJS) $(USER_OBJS) @echo 'Building target: $@' @echo 'Invoking: Cross GCC Linker' arm-eabi-gcc -nostartfiles -nodefaultlibs -nostdlib -static -mcpu=3Dcortex= -m3 -mthumb -Wl,--gc-sections -Wl,-static -Wl,-n -g -v -nostdlib -T../../ec= os/TWR-K60D100M_install/lib/target.ld -o "hello_world" $(OBJS) $(USER_OBJS)= $(LIBS) @echo 'Finished building target: $@' @echo ' ' # Other Targets clean: -$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) hello_world -@echo ' ' .PHONY: all clean dependents .SECONDARY: -include ../makefile.targets -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss