Skip to contentSkip to conversation

Manualimprovements part 3

PATCH New Thomas De Schampheleire 2 participants 5 messages Aug 20, 2014 – Aug 21, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Manualimprovements part 3

This is a third series of manual improvements, to be applied on top of the second series (currently not yet applied).

Additional changes I'm planning but may not be ready in time for the release:
- Rework the 'General Buildroot usage' chapter
- Rework the 'Project-specific customization' chapter.
- Revive the 'Beyond Buildroot' rework patch that has been sent to the list a long while back. This will certainly not be ready before the release.

---
Thomas De Schampheleire (3)
manual/user guide: rework 'Configuration of other components' chapter
manual: file organization: avoid unnecessary indirection
manual: file organization: rename files to match new section title

 docs/manual/configure-other-components.txt |  52 ++++++++++++++++++++++
 docs/manual/configure.txt                  |   9 ---
 docs/manual/customize-busybox-config.txt   |  26 -----------
 docs/manual/customize-kernel-config.txt    |  15 ------
 docs/manual/customize-uclibc-config.txt    |  33 -------------
 docs/manual/developer-guide.txt            |  12 -----
 docs/manual/manual.txt                     |  26 +++++++++-
 docs/manual/using.txt                      |   0 
 docs/manual/get-involved.txt               |   0 
 docs/manual/starting-up.txt                |   9 ---
 docs/manual/working-with.txt               |  11 ----
 11 files changed, 74 insertions(+), 119 deletions(-)
#1 lore raw

PATCH 1/1 manual/user guide: rework 'Configuration of other components' chapter

This patch reworks the chapter 'Configuration of other components' as follows:
- remove separate customize-xxx-config.txt files in favor of one shared file configure-other-componenents.txt
- use labeled list instead of separate sections, as the information in each section is limited.
- simplify instructions for busybox/uclibc thanks to the kconfig-package infrastructure
- rewrite instructions for Linux
- add instructions for Barebox

---
 docs/manual/configure-other-components.txt |  52 ++++++++++++++++++++++
 docs/manual/configure.txt                  |   9 ---
 docs/manual/customize-busybox-config.txt   |  26 -----------
 docs/manual/customize-kernel-config.txt    |  15 ------
 docs/manual/customize-uclibc-config.txt    |  33 -------------
 docs/manual/working-with.txt               |   2 +
 6 files changed, 54 insertions(+), 83 deletions(-)
docs/manual/configure-other-components.txt new file +52 -0
new file mode 100644
@@ -0,0 +1,52 @@
+// -*- mode:doc; -*-
+// vim: set syntax=asciidoc:
+
+== Configuration of other components
+
+Before attempting to modify any of the components below, make sure you
+have already configured Buildroot itself, and have enabled the
+corresponding package.
+
+BusyBox::
++
+If you already have a BusyBox configuration file, you can directly
+specify this file in the Buildroot configuration, using
++BR2_PACKAGE_BUSYBOX_CONFIG+. Otherwise, Buildroot will start from a
+default BusyBox configuration file.
++
+To make subsequent changes to the configuration, use +make
+busybox-menuconfig+ to open the BusyBox configuration editor.
++
+It is also possible to specify a BusyBox configuration file through an
+environment variable, although this is not recommended. Refer to
+xref:env-vars[] for more details.
+
+uClibc::
++
+Configuration of uClibc is done in the same way as for BusyBox.  The
+configuration variable to specify an existing configuration file is
++BR2_UCLIBC_CONFIG+. The command to make subsequent changes is +make
+uclibc-menuconfig+.
+
+Linux kernel::
++
+If you already have a kernel configuration file, you can directly
+specify this file in the Buildroot configuration, using
++BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG+.
++
+If you do not yet have a kernel configuration file, you can either start
+by specifying a defconfig in the Buildroot configuration, using
++BR2_LINUX_KERNEL_USE_DEFCONFIG+, or start by creating an empty file and
+specifying it as custom configuration file, using
++BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG+.
++
+To make subsequent changes to the configuration, use +make
+linux-menuconfig+ to open the Linux configuration editor.
+
+Barebox::
++
+Configuration of Barebox is done in the same way as for the Linux
+kernel. The corresponding configuration variables are
++BR2_TARGET_BAREBOX_USE_CUSTOM_CONFIG+ and
++BR2_TARGET_BAREBOX_USE_DEFCONFIG+. To open the configuration editor,
+use +make barebox-menuconfig+.
docs/manual/configure.txt +0 -9
@@ -384,12 +384,3 @@
 The solution recommended by Buildroot developers is to use the
 *BusyBox init* as it is sufficient for most embedded
 systems. *systemd* can be used for more complex situations.
-
-== Configuration of other components
-
-include::customize-busybox-config.txt[]
-
-include::customize-uclibc-config.txt[]
-
-include::customize-kernel-config.txt[]
-
docs/manual/customize-busybox-config.txt deleted +0 -26
deleted file mode 100644
@@ -1,26 +0,0 @@
-// -*- mode:doc; -*-
-// vim: set syntax=asciidoc:
-
-[[busybox-custom]]
-=== Customizing the BusyBox configuration
-
-http://www.busybox.net/[BusyBox] is very configurable, and you may
-want to customize it. You can follow these simple steps to do so. This
-method isn't optimal, but it's simple, and it works:
-
-* Do an initial compilation of Buildroot, with busybox, without
-  trying to customize it.
-
-* Invoke +make busybox-menuconfig+.
-  The nice configuration tool appears, and you can
-  customize everything.
-
-* Run the compilation of Buildroot again.
-
-Otherwise, you can simply change the
-+package/busybox/busybox-<version>.config+ file, if you know the
-options you want to change, without using the configuration tool.
-
-If you want to use an existing config file for busybox, then see
-xref:env-vars[].
-
docs/manual/customize-kernel-config.txt deleted +0 -15
deleted file mode 100644
@@ -1,15 +0,0 @@
-// -*- mode:doc; -*-
-// vim: set syntax=asciidoc:
-
-[[kernel-custom]]
-=== Customizing the Linux kernel configuration
-
-The Linux kernel configuration can be customized just like
-xref:busybox-custom[BusyBox] and xref:uclibc-custom[uClibc] using
-+make linux-menuconfig+. Make sure you have enabled the kernel build
-in +make menuconfig+ first. Once done, run +make+ to (re)build
-everything.
-
-If you want to use an existing config file for Linux, then see
-xref:env-vars[].
-
docs/manual/customize-uclibc-config.txt deleted +0 -33
deleted file mode 100644
@@ -1,33 +0,0 @@
-// -*- mode:doc; -*-
-// vim: set syntax=asciidoc:
-
-[[uclibc-custom]]
-=== Customizing the uClibc configuration
-
-Just like xref:busybox-custom[BusyBox], http://www.uclibc.org/[uClibc]
-offers a lot of configuration options. They allow you to select
-various functionalities depending on your needs and limitations.
-
-The easiest way to modify the configuration of uClibc is to
-follow these steps:
-
-* Do an initial compilation of Buildroot without trying to customize
-  uClibc.
-
-* Invoke +make uclibc-menuconfig+. The nice configuration assistant,
-  similar to the one used in the Linux kernel or Buildroot,
-  appears. Make your configuration changes as appropriate.
-
-* Copy the +$(O)/build/uClibc-VERSION/.config+ file to a different
-  place (e.g. +board/MANUFACTURER/BOARDNAME/uClibc.config+) and adjust
-  the uClibc configuration file option +BR2_UCLIBC_CONFIG+ to refer to this
-  configuration instead of the default one.
-
-* Run the compilation of Buildroot again.
-
-Otherwise, you can simply change +package/uclibc/uClibc-VERSION.config+,
-without running the configuration assistant.
-
-If you want to use an existing config file for uClibc, then see
-xref:env-vars[].
-
docs/manual/working-with.txt +2 -0
@@ -6,6 +6,8 @@
 
 include::configure.txt[]
 
+include::configure-other-components.txt[]
+
 include::common-usage.txt[]
 
 include::customize.txt[]
#2 lore raw

PATCH 1/1 manual: file organization: avoid unnecessary indirection

In reply to Thomas De Schampheleire

Some source files of the manual merely contain inclusion of other files. Especially at top-level this is unnecessary, and one could just as well add these includes in manual.txt.

---
 docs/manual/developer-guide.txt |  12 ------------
 docs/manual/manual.txt          |  24 +++++++++++++++++++++---
 docs/manual/starting-up.txt     |   9 ---------
 docs/manual/working-with.txt    |  13 -------------
 4 files changed, 21 insertions(+), 37 deletions(-)
docs/manual/developer-guide.txt deleted +0 -12
deleted file mode 100644
@@ -1,12 +0,0 @@
-// -*- mode:doc; -*-
-// vim: set syntax=asciidoc:
-
-include::writing-rules.txt[]
-
-include::adding-packages.txt[]
-
-include::patch-policy.txt[]
-
-include::download-infra.txt[]
-
-include::debugging-buildroot.txt[]
docs/manual/manual.txt +21 -3
@@ -20,13 +20,23 @@
 
 include::introduction.txt[]
 
-include::starting-up.txt[]
+include::prerequisite.txt[]
+
+include::getting.txt[]
+
+include::using.txt[]
 
 include::get-involved.txt[]
 
 = User guide
 
-include::working-with.txt[]
+include::configure.txt[]
+
+include::configure-other-components.txt[]
+
+include::common-usage.txt[]
+
+include::customize.txt[]
 
 include::faq-troubleshooting.txt[]
 
@@ -40,7 +50,15 @@
 
 include::how-buildroot-works.txt[]
 
-include::developer-guide.txt[]
+include::writing-rules.txt[]
+
+include::adding-packages.txt[]
+
+include::patch-policy.txt[]
+
+include::download-infra.txt[]
+
+include::debugging-buildroot.txt[]
 
 include::contribute.txt[]
 
docs/manual/starting-up.txt deleted +0 -9
deleted file mode 100644
@@ -1,9 +0,0 @@
-// -*- mode:doc; -*-
-// vim: set syntax=asciidoc:
-
-include::prerequisite.txt[]
-
-include::getting.txt[]
-
-include::using.txt[]
-
docs/manual/working-with.txt deleted +0 -13
deleted file mode 100644
@@ -1,13 +0,0 @@
-// -*- mode:doc; -*-
-// vim: set syntax=asciidoc:
-
-This section explains how you can customize Buildroot to fit your
-needs.
-
-include::configure.txt[]
-
-include::configure-other-components.txt[]
-
-include::common-usage.txt[]
-
-include::customize.txt[]
#3 lore raw

PATCH 1/1 manual: file organization: rename files to match new section title

In reply to Thomas De Schampheleire

After the renaming of some sections, rename the corresponding files for clarity.

---

docs/manual/manual.txt +2 -2
@@ -24,9 +24,9 @@
 
 include::getting.txt[]
 
-include::using.txt[]
+include::quickstart.txt[]
 
-include::get-involved.txt[]
+include::resources.txt[]
 
 = User guide
 
docs/manual/quickstart.txt renamed from docs/manual/using.txt +0 -0
rename from docs/manual/using.txt
rename to docs/manual/quickstart.txt
docs/manual/resources.txt renamed from docs/manual/get-involved.txt +0 -0
rename from docs/manual/get-involved.txt
rename to docs/manual/resources.txt
#4 lore raw

PATCH 1/1 Manualimprovements part 3

In reply to Thomas De Schampheleire

Dear Thomas De Schampheleire,

Quoted 11 lines · Thomas De Schampheleire

This is a third series of manual improvements, to be applied on top of the second series (currently not yet applied).

Additional changes I'm planning but may not be ready in time for the release:
- Rework the 'General Buildroot usage' chapter
- Rework the 'Project-specific customization' chapter.
- Revive the 'Beyond Buildroot' rework patch that has been sent to the list a long while back. This will certainly not be ready before the release.

Series applied, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com