diff options
author | Scott Rifenbark <srifenbark@gmail.com> | 2018-05-31 10:20:37 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-15 11:26:46 +0100 |
commit | 54609b038f175063bfafc7b0820f570a04c4e0c8 (patch) | |
tree | b51243768fc553dabc695818df9cf577a8335648 /documentation/sdk-manual | |
parent | 73c7e9d229942fca26faba7df90d014e60e0dc72 (diff) | |
download | poky-54609b038f175063bfafc7b0820f570a04c4e0c8.tar.gz |
sdk-manual: Edits to "Adding Makefile-Only Software"
Fixed some prose in various places.
(From yocto-docs rev: f754969eff4c314d9f4c489cca2b3c2f8fd87fff)
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/sdk-manual')
-rw-r--r-- | documentation/sdk-manual/sdk-extensible.xml | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/documentation/sdk-manual/sdk-extensible.xml b/documentation/sdk-manual/sdk-extensible.xml index c39951c181..08fdd355a0 100644 --- a/documentation/sdk-manual/sdk-extensible.xml +++ b/documentation/sdk-manual/sdk-extensible.xml | |||
@@ -1202,8 +1202,8 @@ | |||
1202 | <title>Adding Makefile-Only Software</title> | 1202 | <title>Adding Makefile-Only Software</title> |
1203 | 1203 | ||
1204 | <para> | 1204 | <para> |
1205 | The use of <filename>make</filename> by itself is very common | 1205 | The use of Make by itself is very common in both proprietary |
1206 | in both proprietary and open source software. | 1206 | and open-source software. |
1207 | Unfortunately, Makefiles are often not written with | 1207 | Unfortunately, Makefiles are often not written with |
1208 | cross-compilation in mind. | 1208 | cross-compilation in mind. |
1209 | Thus, <filename>devtool add</filename> often cannot do very | 1209 | Thus, <filename>devtool add</filename> often cannot do very |
@@ -1216,7 +1216,7 @@ | |||
1216 | <filename>gcc</filename> is the compiler for the build host | 1216 | <filename>gcc</filename> is the compiler for the build host |
1217 | and the cross-compiler is named something similar to | 1217 | and the cross-compiler is named something similar to |
1218 | <filename>arm-poky-linux-gnueabi-gcc</filename> and might | 1218 | <filename>arm-poky-linux-gnueabi-gcc</filename> and might |
1219 | require some arguments (e.g. to point to the associated sysroot | 1219 | require arguments (e.g. to point to the associated sysroot |
1220 | for the target machine). | 1220 | for the target machine). |
1221 | </para> | 1221 | </para> |
1222 | 1222 | ||
@@ -1231,18 +1231,17 @@ | |||
1231 | <filename>g++</filename>. | 1231 | <filename>g++</filename>. |
1232 | </para></listitem> | 1232 | </para></listitem> |
1233 | <listitem><para> | 1233 | <listitem><para> |
1234 | The environment in which <filename>make</filename> runs | 1234 | The environment in which Make runs is set up with |
1235 | is set up with various standard variables for | 1235 | various standard variables for compilation (e.g. |
1236 | compilation (e.g. <filename>CC</filename>, | 1236 | <filename>CC</filename>, <filename>CXX</filename>, and |
1237 | <filename>CXX</filename>, and so forth) in a similar | 1237 | so forth) in a similar manner to the environment set |
1238 | manner to the environment set up by the SDK's | 1238 | up by the SDK's environment setup script. |
1239 | environment setup script. | ||
1240 | One easy way to see these variables is to run the | 1239 | One easy way to see these variables is to run the |
1241 | <filename>devtool build</filename> command on the | 1240 | <filename>devtool build</filename> command on the |
1242 | recipe and then look in | 1241 | recipe and then look in |
1243 | <filename>oe-logs/run.do_compile</filename>. | 1242 | <filename>oe-logs/run.do_compile</filename>. |
1244 | Towards the top of this file you will see a list of | 1243 | Towards the top of this file, a list of environment |
1245 | environment variables that are being set. | 1244 | variables exists that are being set. |
1246 | You can take advantage of these variables within the | 1245 | You can take advantage of these variables within the |
1247 | Makefile. | 1246 | Makefile. |
1248 | </para></listitem> | 1247 | </para></listitem> |
@@ -1250,7 +1249,7 @@ | |||
1250 | If the Makefile sets a default for a variable using "=", | 1249 | If the Makefile sets a default for a variable using "=", |
1251 | that default overrides the value set in the environment, | 1250 | that default overrides the value set in the environment, |
1252 | which is usually not desirable. | 1251 | which is usually not desirable. |
1253 | In this situation, you can either patch the Makefile | 1252 | For this case, you can either patch the Makefile |
1254 | so it sets the default using the "?=" operator, or | 1253 | so it sets the default using the "?=" operator, or |
1255 | you can alternatively force the value on the | 1254 | you can alternatively force the value on the |
1256 | <filename>make</filename> command line. | 1255 | <filename>make</filename> command line. |
@@ -1275,16 +1274,17 @@ | |||
1275 | This is particularly true because those hardcoded paths | 1274 | This is particularly true because those hardcoded paths |
1276 | often point to locations on the build host and thus | 1275 | often point to locations on the build host and thus |
1277 | will either be read-only or will introduce | 1276 | will either be read-only or will introduce |
1278 | contamination into the cross-compilation by virtue of | 1277 | contamination into the cross-compilation because they |
1279 | being specific to the build host rather than the target. | 1278 | are specific to the build host rather than the target. |
1280 | Patching the Makefile to use prefix variables or other | 1279 | Patching the Makefile to use prefix variables or other |
1281 | path variables is usually the way to handle this. | 1280 | path variables is usually the way to handle this |
1281 | situation. | ||
1282 | </para></listitem> | 1282 | </para></listitem> |
1283 | <listitem><para> | 1283 | <listitem><para> |
1284 | Sometimes a Makefile runs target-specific commands such | 1284 | Sometimes a Makefile runs target-specific commands such |
1285 | as <filename>ldconfig</filename>. | 1285 | as <filename>ldconfig</filename>. |
1286 | For such cases, you might be able to simply apply | 1286 | For such cases, you might be able to apply patches that |
1287 | patches that remove these commands from the Makefile. | 1287 | remove these commands from the Makefile. |
1288 | </para></listitem> | 1288 | </para></listitem> |
1289 | </itemizedlist> | 1289 | </itemizedlist> |
1290 | </para> | 1290 | </para> |