Received: from [209.85.221.105] (helo=mail-qy0-f105.google.com) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1M6ftC-00072H-Nd for openembedded-devel@lists.openembedded.org; Wed, 20 May 2009 09:07:00 +0200 Received: by qyk3 with SMTP id 3so398945qyk.24 for ; Tue, 19 May 2009 23:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=4+SOnqdyqFocxfGmV3YVixJpWahconAnrlvwX/Jc22Y=; b=t4dG8k42ncYc1C5Hq7mz003CpgXL8Oj0dtTErW+3M5Lm8EJ+eSOXSvBn7ZuQqX8MtT mtk2XCIXpxdcVaNTrj23oeVnu8LaMH6gCQnW6vvDH9/qmAlADRtxpAHVF5LBO1UV/9SU GzWxi4ZAqgTsr8HrsenyunD1G5AXRdiAHjSlY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=frWM6OolaWTPaMJj+nVLLTdYFCrrGKCEN4ID8j5u1Jrxn5Y/pSZI3B/jke6i4JTyC+ H97R8khrkUqpwtdH95FvX4JbemVWMTJFOb2ZPI1uHIvwsJxjnxcHpZBxYEz+0yP+lNZH 2IC2q8aYdT5FzQ21uAzXlJ9/zJj79SKZUCkpo= MIME-Version: 1.0 Received: by 10.229.100.134 with SMTP id y6mr289077qcn.27.1242802769097; Tue, 19 May 2009 23:59:29 -0700 (PDT) Date: Wed, 20 May 2009 14:59:29 +0800 Message-ID: <8f4584b50905192359w46f238b0x85fcd709d5e30c5b@mail.gmail.com> From: =?GB2312?B?tPq2+9DA?= To: openembedded-devel@lists.openembedded.org X-Content-Filtered-By: Mailman/MimeDel 2.1.11 Subject: How to use the native package? X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2009 07:07:06 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all, Is it the right place to ask? I have a question about the OE compile. Hope I can tell you the case clearly. I have a package. Let's say it "mypackage". The compile process is: When make "mypackage", it will generate a intermedia tool. Let's call it mytools.bin through Makefile. %.c: %.tmp ./mytools.bin $< > $@ Then it will use mytools.bin generate some c files. Using those generated c files compile out the final bin file. "./mytools.bin" is reasonable. Because mytools.bin is generated by the source codes locally. But in OE, a target version compiled, and can't run on host machine. From above process, mypackage depends on mypackage-native. I can write a mypackage-native.bb and generate the mytools.bin and place it into staging folder. mytools.bin can run on my host machine but how can I use it when compile mypackage.bb? Note the Makefile is using "./mytools.bin", it always look for the current folder one. I can hack to use native mytools.bin. I want to know the normal way in OE treat this case. Thanks!