Differences

This shows you the differences between two versions of the page.

doc:howto:build [2013/03/24 16:13]
mforkel
doc:howto:build [2014/03/05 22:21] (current)
guraltsev swapped position of two paragraphs that were in the wrong order
Line 3: Line 3:
===== Prerequisites ===== ===== Prerequisites =====
 +to generate an [[doc:howto:generic.flashing|installable]] OpenWrt firmware image file with a size of e.g. 8MB:
  - **[[buildroot.exigence|Install OpenWrt Buildroot and its prerequisites]]** on your OS.   - **[[buildroot.exigence|Install OpenWrt Buildroot and its prerequisites]]** on your OS.
 +  - ca. 3-4 GB of available hard disk space
 +  - environment variables:
 +    * ''SED'' should not be set.  If it is, run ''`unset SED`'' before compiling. (See [[https://dev.openwrt.org/ticket/10612|Ticket 10612]].)
 +    * ''GREP_OPTIONS'' should not have ''--initial-tab'' or other options affecting its output
===== Procedure ===== ===== Procedure =====
| {{:meta:icons:tango:48px-emblem-important.svg.png?nolink}} | 1. Do everything as //non//-root user\\ 2. Issue all commands in the ''<buildroot dir>'' directory, e.g. ''~/openwrt/trunk/'' | | {{:meta:icons:tango:48px-emblem-important.svg.png?nolink}} | 1. Do everything as //non//-root user\\ 2. Issue all commands in the ''<buildroot dir>'' directory, e.g. ''~/openwrt/trunk/'' |
-    - Update OpenWrt sources. +  - Update OpenWrt sources. 
-   - Update and install package feeds. + - Update and install package feeds. 
-   - Configure the build+ - Configure the firmware image you want to obtain
-   - Start the build. This will automatically compile toolchain, cross-compile sources, package packages, and finally generate an image ready to be flashed. + - Start the build. This will automatically compile toolchain, cross-compile sources, package packages, and finally generate an image ready to be flashed. 
-   - Proceed to [[generic.flashing|Installing OpenWrt]]+ - Proceed to [[generic.flashing|Installing OpenWrt]] 
 + 
==== Updating Sources ==== ==== Updating Sources ====
 +You can check the currently installed revision with
 +<WRAP prewrap 1000px><code>
 +svn info
 +</code></WRAP>
 +
 +
Update sources: Update sources:
-<code>+<WRAP prewrap 1000px><code>
svn update svn update
-</code>+</code></WRAP>
//OpenWrt sources change frequently. It is recommended that you work with the latest sources.// //OpenWrt sources change frequently. It is recommended that you work with the latest sources.//
==== Updating Feeds ==== ==== Updating Feeds ====
-Please cf. [[doc/devel/feeds|What are feeds?]]. +  - Update feeds: <WRAP prewrap 1000px><code>./scripts/feeds update -a</code></WRAP>
- +
-  - Update feeds: <code>./scripts/feeds update -a</code>+
  - Make downloaded package/packages available in ''make menuconfig'':   - Make downloaded package/packages available in ''make menuconfig'':
-    * single package:<code>./scripts/feeds install <PACKAGENAME></code> +    * single package:<WRAP prewrap 1000px><code>./scripts/feeds install <PACKAGENAME></code></WRAP
-    * all packages:<code>./scripts/feeds install -a</code>+    * all packages:<WRAP prewrap 1000px><code>./scripts/feeds install -a</code></WRAP>
Please note that //installing// in context of ''./scripts/feeds'' script means "making package available in ''make menuconfig''" rather than really installing or compiling package. Please note that //installing// in context of ''./scripts/feeds'' script means "making package available in ''make menuconfig''" rather than really installing or compiling package.
===== Image Configuration ===== ===== Image Configuration =====
-The **OpenWrt Buildroot configuration interface** allows you to select the target platform, which version of the toolchain you want to use to build, which packages you want included in the firmware image file and which ones compiled. Start the OpenWrt Buildroot configuration interface by entering:\\ +==== Make menuconfig ==== 
-<code>+The **OpenWrt Buildroot configuration interface** handles the selection of the target platform, packages to be compiled, packages to be included in the firmware file, some kernel options, etc. \\ Start the OpenWrt Buildroot configuration interface by issuing the following command:\\ 
 +<WRAP prewrap 1000px><code>
make menuconfig make menuconfig
-</code>+</code></WRAP> 
 + 
 +This will update the dependencies of your existing configuration automatically, and you can now proceed to build your updated images.
{{ OpenWrt Buildroot TUI.gif}} {{ OpenWrt Buildroot TUI.gif}}
-Similar to the configuration interface of the Linux kernel, almost every option has three choices, **y**, **m**, **n** which are represented as follows: +You have three options: 
-  * pressing <html><strong><kbd>y</kbd></strong></html> yields to ''**<*>**'' label \\ This package will be compiled and included in the firmware image file. +''y'', ''m'', ''n'' which are represented as follows: 
-  * pressing <html><strong><kbd>m</kbd></strong></html> yields to ''**<M>**'' label \\ This package will be compiled, but **not** included in the firmware image file. (To be installed with ''[[doc:techref:opkg]]'' after [[doc:howto:generic.flashing|flashing]] the firmware image file.) +  * pressing ''**y**'' sets the ''**<*>**'' built-in label\\ This package will be compiled and included in the firmware image file. 
-  * pressing <html><strong><kbd>n</kbd></strong></html> yields to ''**< >**'' label \\ This package will not be compiled. +  * pressing ''**m**'' sets the ''**<M>**'' package label\\ This package will be compiled, but **not** included in the firmware image file. (E.g. to be installed with ''[[doc:techref:opkg]]'' after [[doc:howto:generic.flashing|flashing]] the firmware image file to the device.) 
 +  * pressing ''**n**'' sets the ''**< >**'' excluded label\\ The source code will not be processed.
When you save your configuration, the file **''<buildroot dir>/.config''** will be created according to your configuration. When you save your configuration, the file **''<buildroot dir>/.config''** will be created according to your configuration.
- +=== Explanations === 
-==== Manual editing of files ==== +It has been the intention from the beginning, with the development of ''menuconfig'', to create a simple, yet powerful, environment for the configuration of individual OpenWrt builds. ''menuconfig'' is more or less self-explanatory, and even the most specialized configuration requirements can be met by using it. Depending on the the particular target platform, package requirements and kernel module needs, the standard configuration process will include modifying:
-In case you want to manually alter certain files, you can do that as well: e.g. +
-  * to alter the vanilla Kernel-Settings, edit the file ''<buildroot dir>**/package/base-files/files/etc/sysctl.conf**'' on your build machine. +
-  * to alter the [[doc/howto/wireless.hotspot.wifidog|WifiDog]]-configuration file, edit ''<buildroot dir>**/feeds/packages/net/wifidog/files/wifidog.conf**'' on your build machine. +
-  * etc. +
- +
-As you can learn in [[doc/techref/flash.layout]], all the files you edit now, will be located on the  <color magenta>''/rom''</color>-partition, which is formated with the  [[doc:techref:filesystems#SquashFS]] read-only file system. But because OpenWrt utilizes [[doc:techref:filesystems#overlayfs|overlayfs]], you will of course still be able to alter the files again once the image has been flashed to the router. However: +
- +
-| {{:meta:icons:tango:48px-dialog-warning.svg.png?nolink}} | <color red>**Warning! Be carefull!**</color> [[doc/howto/generic.failsafe|OpenWrt failsafe]] relies on 100%-working base files on the <color magenta>''/rom''</color>-partition, so in case you misconfigure or misspell something, you will end up with a non-working failsafe and be forced to used more rudimentary methods to [[doc/howto/generic.debrick|debrick]] your device again! | +
- +
-| {{:meta:icons:tango:48px-emblem-important.svg.png?nolink}} | To edit source-files,  OpenWrt Buildroot integrates quilt, cf. [[doc/devel/patches]]! | +
- +
- +
- +
- +
- +
- +
- +
-==== Defconfig ==== +
-[[https://forum.openwrt.org/viewtopic.php?pid=140470#p140470|select your target before issuing defconfig]] +
-<code> +
-make defconfig +
-</code> +
-will produce a general purpose configuration of the build system including a check of dependencies and prerequisites for the build environment etc +
- +
-will check for dependencies. Install missing and run again. +
-  +
- +
-==== Overall configuration ==== +
-''Menuconfig'' has a TUI, which handles the selection of the target, packages to be compiled, packages to be included in the firmware file, some kernel options etc. +
- +
-<code> +
-make menuconfig +
-</code> +
- +
-This will update the dependencies of your existing configuration automatically and you can now proceed to build your updated images.  +
- +
-It has from the beginning on been the intention, with the development of 'menuconfig', to create a simple yet powerful environment for the configuration of individual OpenWrt images. Menuconfig is more or less self-explanatory, and even the most specialized configuration needs can be solved with its help. Depending on the the particular target platform, package requirements and kernel module needs, the standard process of configuration will include modifying:+
  - Target system   - Target system
Line 94: Line 72:
Target system is selected from the extensive list of supported platforms, with the numerous target profiles – ranging from specific devices to generic profiles, all depending on the particular device at hand. Package selection has the option of either 'selecting all package', which might be un-practical in certain situation, or relying on the default set of packages will be adequate or make an individual selection. It is here needed to mention that some package combinations might break the build process, so it can take some experimentation before the expected result is reached. Added to this, the OpenWrt developers are themselves only maintaining a smaller set of packages – which includes all default packages – but, the feeds-script makes it very simple to handle a locally maintained set of packages and integrate them in the build-process. Target system is selected from the extensive list of supported platforms, with the numerous target profiles – ranging from specific devices to generic profiles, all depending on the particular device at hand. Package selection has the option of either 'selecting all package', which might be un-practical in certain situation, or relying on the default set of packages will be adequate or make an individual selection. It is here needed to mention that some package combinations might break the build process, so it can take some experimentation before the expected result is reached. Added to this, the OpenWrt developers are themselves only maintaining a smaller set of packages – which includes all default packages – but, the feeds-script makes it very simple to handle a locally maintained set of packages and integrate them in the build-process.
-You have three option at most: +The final step before the process of compiling the intended image(s) is to exit ''menuconfig'' – this also includes the option to save a specific configuration or load an already existing, and pre-configured, version.
-  * < > the source code will not be processed +
-  * <M> the source code of the package will be crosscompiled into binaries and a opkg package will be built and placed in ''/buildsystem/bla/bla/bla'', but the ImageGenerator will not put it onto the Firmware-Image! +
-  * <*> that the package will built into the firmware (on the SqashFS partition) +
- +
-The final step before the process of compiling the intended image(s) is to exit 'menuconfig' – this also includes the option to save a specific configuration or load an already existing, and pre-configured, version.+
Exit the TUI, and choose to ''save'' your settings. Exit the TUI, and choose to ''save'' your settings.
=== Kernel configuration === === Kernel configuration ===
 +Note that ''make kernel_menuconfig'' modifies the Kernel configuration templates of the build tree and clearing the build_dir will not revert them:
 +
While you won't typically need to do this, you can do it: While you won't typically need to do this, you can do it:
- +<WRAP prewrap 1000px><code>
-<code>+
make kernel_menuconfig make kernel_menuconfig
-</code>+</code></WRAP> 
 +The changes can be reviewed with 
 +<WRAP prewrap 1000px><code> 
 +svn diff target/linux/ 
 +</code></WRAP> 
 +and reverted with  
 +<WRAP prewrap 1000px><code> 
 +svn revert -R target/linux/ 
 +</code></WRAP>
-Note that ''make kernel_menuconfig'' modifies the Kernel configuration templates of the build tree, clearing the build_dir will not revert them. 
-The changes can be reviewed with ''svn diff target/linux/'' and reverted with ''svn revert -R target/linux/''. 
- 
-See: [[doc:techref:buildroot#Customizing the kernel options]] 
=== Source Mirrors === === Source Mirrors ===
Line 121: Line 99:
  - Download folder   - Download folder
-In the case of the first option, you simply enter a full URL to the web or ftp server on which the package sources are hosted. Download folder would in the same way be the path to a local folder on the build system (or network). If you have a web/ftp-server hosting the tarballs, the OpenWrt build system will try this one before trying to download from the location(s) mentioned in the Makefiles . Similar if a local 'download folder', residing on the build system, has been specified. +In the case of the first option, you simply enter a full URL to the HTTP or FTP server on which the package sources are hosted. Download folder would in the same way be the path to a local folder on the build system (or network). If you have a web/ftp-server hosting the tarballs, the OpenWrt build system will try this one before trying to download from the location(s) mentioned in the Makefiles . Similar if a local 'download folder', residing on the build system, has been specified.
The 'Kernel modules' option is required if you need specific (non-standard) drivers and so forth – this would typically be things like modules for USB or particular network interface drivers etc. The 'Kernel modules' option is required if you need specific (non-standard) drivers and so forth – this would typically be things like modules for USB or particular network interface drivers etc.
 +
 +
 +==== Patches ====
 +OpenWrt Buildroot integrates //[[wp>Quilt (software)|quilt]]// for easy patch management:\\
 +->[[doc/devel/patches]]
==== Custom files ==== ==== Custom files ====
-In many cases, you may want to have a custom image that has been pre-configured. If so, place your custom files in  +| {{:meta:icons:tango:48px-dialog-warning.svg.png?nolink}} | <color red>**Warning! Be carefull!**</color> [[doc/howto/generic.failsafe|OpenWrt failsafe]] relies on 100%-working base files on the [[doc/techref/flash.layout#partitioning.of.squashfs-images|SquashFS-partition]] (i.e. the <color magenta>''/rom''</color>-directory), so in case you mis-configure or misspell something, you will end up with a non-working OpenWrt failsafe and be forced to used more rudimentary methods to [[doc/howto/generic.debrick|debrick]] your device again! | 
-<code><buildroot dir>/files/</code>+ 
 +In case you want to include some custom configuration files, the correct place to put them is: 
 + * **''<buildroot dir>/files/''** 
 + 
 +For example, let's say that you want an image with a custom **''/etc/config/firewall''** or a custom **''etc/sysctl.conf''**, then create this files as: 
 +  * ''**<buildroot dir>/files/**etc/config/firewall'' 
 +  * ''**<buildroot dir>/files/**etc/sysctl.conf''
-For example, let's say that you want an image with a pre-configured ''/etc/config/firewall'', then place your modified firewall config in here: 
-<code><buildroot dir>/files/etc/config/</code> 
E.g. if your <buildroot dir> is /openwrt/trunk and you want some files to be copied into firmware image's /etc/config directory, the correct place to put them is /openwrt/trunk/files/etc/config. E.g. if your <buildroot dir> is /openwrt/trunk and you want some files to be copied into firmware image's /etc/config directory, the correct place to put them is /openwrt/trunk/files/etc/config.
 +==== Defconfig ====
 +[[https://forum.openwrt.org/viewtopic.php?pid=140470#p140470|select your target before issuing defconfig]]
 +<WRAP prewrap 1000px><code>
 +make defconfig
 +</code></WRAP>
 +will produce a general purpose configuration of the build system including a check of dependencies and prerequisites for the build environment etc
 +will check for dependencies. Install missing and run again.
 +
===== Building Images ===== ===== Building Images =====
Everything is now ready for building the image(s), which is done with one single command: Everything is now ready for building the image(s), which is done with one single command:
-<code>+<WRAP prewrap 1000px><code>
make make
-</code>+</code></WRAP>
This simple command will trigger a cascade of activity. As already stated, it will This simple command will trigger a cascade of activity. As already stated, it will
Line 145: Line 140:
  - then crosscompile the sources with this toolchain   - then crosscompile the sources with this toolchain
  - create opkg-packages   - create opkg-packages
-  - create a firmware image file ready to be [[generic.flashing|flashed]].+  - generate a firmware image file ready to be [[generic.flashing|flashed]].
==== Make options ==== ==== Make options ====
Line 152: Line 147:
The build process can be accelerated by running multiple concurrent job processes using the ''-j''-option: The build process can be accelerated by running multiple concurrent job processes using the ''-j''-option:
-<code>+<WRAP prewrap 1000px><code>
make -j 3 make -j 3
-</code>+</code></WRAP>
  * Use the standard formula ''<your number of CPU cores + 1>''   * Use the standard formula ''<your number of CPU cores + 1>''
  * If this produces random build errors try compiling again without the ''-j''-option   * If this produces random build errors try compiling again without the ''-j''-option
Line 161: Line 156:
If you intend to use your system while building, you can have the build process use only idle I/O and CPU capacity like this (dualcore CPU): If you intend to use your system while building, you can have the build process use only idle I/O and CPU capacity like this (dualcore CPU):
-<code>+<WRAP prewrap 1000px><code>
ionice -c 3 nice -n19 make -j 2 ionice -c 3 nice -n19 make -j 2
-</code>+</code></WRAP>
=== Building single Packages === === Building single Packages ===
When developing or packaging software for OpenWrt, it is convenient to be able to build only the package in question (e.g. with package ''cups''): When developing or packaging software for OpenWrt, it is convenient to be able to build only the package in question (e.g. with package ''cups''):
-<code>+<WRAP prewrap 1000px><code>
make package/cups/compile V=s make package/cups/compile V=s
-</code>+</code></WRAP>
For the package ''mc (midnight commander)'', which is contained the feed //packages// it looks like this: For the package ''mc (midnight commander)'', which is contained the feed //packages// it looks like this:
-<code>+<WRAP prewrap 1000px><code>
make package/feeds/packages/mc/compile V=s make package/feeds/packages/mc/compile V=s
-</code>+</code></WRAP>
//Note that the path start in ''package'' directory and ''package/feeds'' may not have exactly the same structure as ''feeds''. For example package in ''~/openwrt/trunk/feeds/packages/**net**/snort'' will be compiled using ''make ~/openwrt/trunk/**package**/feeds/packages/snort/**compile** V=s''.// //Note that the path start in ''package'' directory and ''package/feeds'' may not have exactly the same structure as ''feeds''. For example package in ''~/openwrt/trunk/feeds/packages/**net**/snort'' will be compiled using ''make ~/openwrt/trunk/**package**/feeds/packages/snort/**compile** V=s''.//
Line 184: Line 179:
If for some reason the build fails, the easiest way to spot the error is to do: If for some reason the build fails, the easiest way to spot the error is to do:
-<code>+<WRAP prewrap 1000px><code>
make V=s 2>&1 | tee build.log | grep -i error make V=s 2>&1 | tee build.log | grep -i error
-</code>+</code></WRAP>
The above saves a full verbose copy of the build output (with stdout piped to stderr) in ''/openwrt/trunk/build.log'' and only shows errors on the screen. The above saves a full verbose copy of the build output (with stdout piped to stderr) in ''/openwrt/trunk/build.log'' and only shows errors on the screen.
Line 192: Line 187:
Another example: Another example:
-<code>+<WRAP prewrap 1000px><code>
ionice -c 3 nice -n 20 make -j 2 V=s CONFIG_DEBUG_SECTION_MISMATCH=y 2>&1 | tee build.log | egrep -i '(warn|error)' ionice -c 3 nice -n 20 make -j 2 V=s CONFIG_DEBUG_SECTION_MISMATCH=y 2>&1 | tee build.log | egrep -i '(warn|error)'
-</code>+</code></WRAP>
The above saves a full verbose copy of the build output (with stdout piped to stderr) in build.log and outputs only warnings and errors while building using only background resources on a dual core CPU. The above saves a full verbose copy of the build output (with stdout piped to stderr) in build.log and outputs only warnings and errors while building using only background resources on a dual core CPU.
 +
 +Yet another way to focus on the problem without having to wade through tons of output from Make as described above is to check the corresponding log in 'logs' folder.
 +IE: if the build fails at "make[3] -C package/kernel/mac80211 compile", then you can go to <buildroot>/logs/package/kernel/mac80211 and view the compile.txt found there.
=== Getting beep notification === === Getting beep notification ===
Depending on your CPU, the process will take a while, or while longer. If you want an acoustic notification, you could use ''echo -e '\a''': Depending on your CPU, the process will take a while, or while longer. If you want an acoustic notification, you could use ''echo -e '\a''':
-<code>+<WRAP prewrap 1000px><code>
make V=s ; echo -e '\a' make V=s ; echo -e '\a'
-</code>+</code></WRAP>
===== Locating Images ===== ===== Locating Images =====
-After a successful build, the freshly built image(s) can be found in the newly created ''<buildroot dir>/bin'' directory. The compiled files are additionally classfied by the target platform, so e.g. a firmware built for an ar71xx device will be located in ''<buildroot dir>/bin/ar71xx'' directory.+After a successful build, the freshly built image(s) can be found in the newly created ''<buildroot_dir>/bin'' directory. The compiled files are additionally classified by the target platform, so e.g. a firmware built for an ar71xx device will be located in ''<buildroot_dir>/bin/ar71xx'' directory.
-E.g. if your <buildroot dir> is /openwrt/trunk, the binaries are in /openwrt/trunk/bin/ar71xx.+E.g. if your <buildroot_dir> is ''~/openwrt/trunk'', the binaries are in ''~/openwrt/trunk/bin/ar71xx''.
===== Cleaning Up ===== ===== Cleaning Up =====
Line 214: Line 212:
==== Clean ==== ==== Clean ====
-<code>+<WRAP prewrap 1000px><code>
make clean make clean
-</code>+</code></WRAP>
-deletes contents of ''bin'' and ''build_dir'' directories.+deletes contents of the directories ''/bin'' and ''/build_dir''.
==== Dirclean ==== ==== Dirclean ====
-<code>+<WRAP prewrap 1000px><code>
make dirclean make dirclean
-</code>+</code></WRAP>
-deletes contents of ''/bin'' and ''/build_dir'' directories and additionally ''/staging_dir'' and ''/toolchain'' (=the cross-compile tools) plus ''/logs''. 'Dirclean' is your basic "Full clean" operation. +deletes contents of the directories ''/bin'' and ''/build_dir'' and additionally ''/staging_dir'' and ''/toolchain'' (=the cross-compile tools) and ''/logs''. 'Dirclean' is your basic "Full clean" operation.
==== Distclean ==== ==== Distclean ====
-<code>+<WRAP prewrap 1000px><code>
make distclean make distclean
-</code>+</code></WRAP>
nukes everything you have compiled or configured and also deletes all downloaded feeds contents and package sources. nukes everything you have compiled or configured and also deletes all downloaded feeds contents and package sources.
-**CAUTION**: In addition to all else, this will **erase your build configuration (.config)**, your toolchain and all other sources. Use with care!+**CAUTION**: In addition to all else, this will **erase your build configuration (''<buildroot_dir>/.config'')**, your toolchain and all other sources. Use with care!
There are numerous other functionalities in the OpenWrt build system, but the above should have covered some of the fundamentals. There are numerous other functionalities in the OpenWrt build system, but the above should have covered some of the fundamentals.
 +==== Clean small part ====
 +In more time, you may not want to clean so many objects, then you can use some of the commands below to do it.
 +
 +Clean linux objects.
 +<WRAP prewrap 1000px><code>
 +make target/linux/clean
 +</code></WRAP>
 +
 +Clean package base-files objects.
 +<WRAP prewrap 1000px><code>
 +make package/base-files/clean
 +</code></WRAP>
 +
 +Clean luci.
 +<WRAP prewrap 1000px><code>
 +make package/feeds/luci/luci/clean
 +</code></WRAP>
===== Examples ===== ===== Examples =====
Line 248: Line 263:
===== Troubleshooting ===== ===== Troubleshooting =====
-First get more information on the problem using the make option "make V=s".+First get more information on the problem using the make option ''"make V=s"''.
==== Missing source code file, due to download problems ==== ==== Missing source code file, due to download problems ====
- First check if the URL path in the make file contains a trailing slash, then try with it removed (helped several times). +First check if the URL path in the make file contains a trailing slash, then try with it removed (helped several times). 
- Otherwise try to download the source code manually and put it into "dl" directory+Otherwise try to download the source code manually and put it into "dl" directory.
==== Compilation errors ==== ==== Compilation errors ====
- Try to update the main source and all the feeds (Warning! May result in other problems). +Try to update the main source and all the feeds (Warning! May result in other problems). 
- Check for a related bug in ([[https://dev.openwrt.org/query|TRAC]]), use the filters to find it. +Check for a related bug in ([[https://dev.openwrt.org/query|TRAC]]), use the filters to find it. 
- Otherwise report the problem there, by mentioning the package, the target data (CPU, image, etc.) and the code revisions (main & package). +Otherwise report the problem there, by mentioning the package, the target data (CPU, image, etc.) and the code revisions (main & package). 
- Compiling with make -j ... sometimes gives random errors. Try compiling without -j first before reporting the problem.+Compiling with make -j ... sometimes gives random errors. Try compiling without -j first before reporting the problem.
====  Bad environment variables ==== ====  Bad environment variables ====
-    * ''GREP_OPTIONS'' should not have ''--initial-tab'' or other options affecting its output +  * ''GREP_OPTIONS'' should not have ''--initial-tab'' or other options affecting its output 
-     * **''SED'' should not be set.  If it is, run `unset SED` before compiling.** (See [[https://dev.openwrt.org/ticket/10612|Ticket 10612]].)+ * **''SED'' should not be set.  If it is, run `unset SED` before compiling.** (See [[https://dev.openwrt.org/ticket/10612|Ticket 10612]].) 
 +  * others?
==== I can't find my <package> in menuconfig ==== ==== I can't find my <package> in menuconfig ====
-  - Have you run this command? [[doc:howto:build#updating.feeds|See this.]] <code>./scripts/feeds install <package></code> +  - Have you run this command? [[doc:howto:build#updating.feeds|See this.]] <WRAP prewrap 1000px><code>./scripts/feeds install <package></code></WRAP
-  - Maybe you are not looking for it in the right submenu. See ''Makefile'' of the package to find out. <code>cat package/feeds/packages/<package>/Makefile</code> You are looking for this: \\ ''define Package/<package>/Default+  - Maybe you are not looking for it in the right submenu. See the ''Makefile'' of the package to find out. <WRAP prewrap 1000px><code>cat package/feeds/packages/<package>/Makefile</code></WRAP> You are looking for this: \\ ''define Package/<package>/Default
  SUBMENU:=**Firewall**   SUBMENU:=**Firewall**
  SECTION:=net   SECTION:=net
  CATEGORY:=**Network**''   CATEGORY:=**Network**''
-  - Menuconfig appears to cache package lists and (especially) profiles. Try deleting the ''trunk/tmp'' directory (in trunk, not your machine's ''/tmp'' directory!) and then running ''make menuconfig'' again. <code>cd trunk+  - Menuconfig appears to cache package lists and (especially) profiles. Try deleting the ''<buildroot_dir>/tmp'' directory and then running ''make menuconfig'' again. <WRAP prewrap 1000px><code> 
 +cd ~/openwrt/trunk
rm -rf tmp rm -rf tmp
-make menuconfig</code> Also try refreshing your package indexes: <code>./scripts/feeds update -i</code> The ''-i'' is important if you're not using the latest revisions of any packages, as this flag prevents updates from the feed sources.+make menuconfig</code></WRAP> Also try refreshing your package indexes: <WRAP prewrap 1000px><code>./scripts/feeds update -i</code></WRAP> The ''-i'' is important if you're not using the latest revisions of any packages, as this flag prevents updates from the feed sources.
====  Error: No rule to make target... ==== ====  Error: No rule to make target... ====
Line 280: Line 297:
==== WARNING: skipping <package> -- package not selected ==== ==== WARNING: skipping <package> -- package not selected ====
-Run ''make menuconfig'' and enable compilation for your package. It should be labeled with ''<*>'' or ''<M>'' to work correctly. [[doc:howto:build#image.configuration|See this.]]+Run ''make menuconfig'' and enable compilation for your package. It should be labeled with ''<*>'' or ''<M>'' to work correctly. Read [[doc:howto:build#image.configuration]] further up in this article.

Back to top

doc/howto/build.1364137984.txt.bz2 · Last modified: 2013/03/24 16:13 by mforkel