0

bb ファイルには、特定のパスに設定されたソース ディレクトリ変数があります。

S = ${THISDIR}/MySources

bb ファイルが存在するパスにソースが既に抽出されているため、bb ファイルに SRC_URI はありません。

問題は、do_configure が実行されるときに、その$WORKDIR場所から実行されることです。ただし、 からのソース ディレクトリから do_configure を実行する必要があります$S。これを設定する方法、do_configure 実行ログのログでさえ、ディレクトリの変更を示してからWORKDIR、次のような do configureを示します

...
...
cd [path to workdir]

do_configure

ソース ディレクトリから do_configure を実行する方法${S}。ソースは bitbake のレイヤーとして追加されます。

ありがとう。

4

1 に答える 1

0

Well, the best way would be to either package the source code, or ensure that all files are copied to workdir. (Preferably, a subdirectory).

However, if you insist on building your application in the recipe directory, it's quite likely that this will work of you add the line B = "${S}" after the line where you define S.

于 2015-12-02T18:14:58.143 に答える