|
@@ -24,7 +24,7 @@ file will contain the option descriptions related to our +libfoo+ software
|
|
|
that will be used and displayed in the configuration tool. It should basically
|
|
|
contain:
|
|
|
|
|
|
----------------------------
|
|
|
+----
|
|
|
config BR2_PACKAGE_LIBFOO
|
|
|
bool "libfoo"
|
|
|
help
|
|
@@ -32,7 +32,7 @@ config BR2_PACKAGE_LIBFOO
|
|
|
should be wrapped.
|
|
|
|
|
|
http://foosoftware.org/libfoo/
|
|
|
----------------------------
|
|
|
+----
|
|
|
|
|
|
The +bool+ line, +help+ line and other metadata information about the
|
|
|
configuration option must be indented with one tab. The help text
|
|
@@ -64,9 +64,9 @@ put your package in one of the existing categories). The files
|
|
|
included there are 'sorted alphabetically' per category and are 'NOT'
|
|
|
supposed to contain anything but the 'bare' name of the package.
|
|
|
|
|
|
---------------------------
|
|
|
+----
|
|
|
source "package/libfoo/Config.in"
|
|
|
---------------------------
|
|
|
+----
|
|
|
|
|
|
|
|
|
==== +Config.in.host+ file
|
|
@@ -83,14 +83,14 @@ options here:
|
|
|
the configuration menu. In this case, create a +Config.in.host+ file
|
|
|
for that host package:
|
|
|
+
|
|
|
----------------------------
|
|
|
+----
|
|
|
config BR2_PACKAGE_HOST_FOO
|
|
|
bool "host foo"
|
|
|
help
|
|
|
This is a comment that explains what foo for the host is.
|
|
|
|
|
|
http://foosoftware.org/foo/
|
|
|
----------------------------
|
|
|
+----
|
|
|
+
|
|
|
The same coding style and options as for the +Config.in+ file are valid.
|
|
|
+
|
|
@@ -98,9 +98,9 @@ Finally you have to add your new +libfoo/Config.in.host+ to
|
|
|
+package/Config.in.host+. The files included there are 'sorted alphabetically'
|
|
|
and are 'NOT' supposed to contain anything but the 'bare' name of the package.
|
|
|
+
|
|
|
---------------------------
|
|
|
+----
|
|
|
source "package/foo/Config.in.host"
|
|
|
---------------------------
|
|
|
+----
|
|
|
+
|
|
|
The host package will then be available from the +Host utilities+ menu.
|
|
|
|
|
@@ -136,7 +136,7 @@ is not met.
|
|
|
|
|
|
An example illustrates both the usage of +select+ and +depends on+.
|
|
|
|
|
|
---------------------------
|
|
|
+----
|
|
|
config BR2_PACKAGE_RRDTOOL
|
|
|
bool "rrdtool"
|
|
|
depends on BR2_USE_WCHAR
|
|
@@ -152,7 +152,7 @@ config BR2_PACKAGE_RRDTOOL
|
|
|
|
|
|
comment "rrdtool needs a toolchain w/ wchar"
|
|
|
depends on !BR2_USE_WCHAR
|
|
|
---------------------------
|
|
|
+----
|
|
|
|
|
|
|
|
|
Note that these two dependency types are only transitive with the
|
|
@@ -160,7 +160,7 @@ dependencies of the same kind.
|
|
|
|
|
|
This means, in the following example:
|
|
|
|
|
|
---------------------------
|
|
|
+----
|
|
|
config BR2_PACKAGE_A
|
|
|
bool "Package A"
|
|
|
|
|
@@ -179,7 +179,7 @@ config BR2_PACKAGE_D
|
|
|
config BR2_PACKAGE_E
|
|
|
bool "Package E"
|
|
|
select BR2_PACKAGE_D
|
|
|
---------------------------
|
|
|
+----
|
|
|
|
|
|
* Selecting +Package C+ will be visible if +Package B+ has been
|
|
|
selected, which in turn is only visible if +Package A+ has been
|
|
@@ -193,7 +193,7 @@ config BR2_PACKAGE_E
|
|
|
the dependency of +Package B+ on +Package A+. Therefore, in such a
|
|
|
situation, the transitive dependency has to be added explicitly:
|
|
|
|
|
|
---------------------------
|
|
|
+----
|
|
|
config BR2_PACKAGE_D
|
|
|
bool "Package D"
|
|
|
depends on BR2_PACKAGE_A
|
|
@@ -203,7 +203,7 @@ config BR2_PACKAGE_E
|
|
|
bool "Package E"
|
|
|
depends on BR2_PACKAGE_A
|
|
|
select BR2_PACKAGE_D
|
|
|
---------------------------
|
|
|
+----
|
|
|
|
|
|
Overall, for package library dependencies, +select+ should be
|
|
|
preferred.
|
|
@@ -247,21 +247,21 @@ comment and other config options.
|
|
|
|
|
|
The general format of a dependency +comment+ for package foo is:
|
|
|
|
|
|
---------------------------
|
|
|
+----
|
|
|
foo needs a toolchain w/ featA, featB, featC
|
|
|
---------------------------
|
|
|
+----
|
|
|
|
|
|
for example:
|
|
|
|
|
|
---------------------------
|
|
|
+----
|
|
|
mpd needs a toolchain w/ C++, threads, wchar
|
|
|
---------------------------
|
|
|
+----
|
|
|
|
|
|
or
|
|
|
|
|
|
---------------------------
|
|
|
+----
|
|
|
crda needs a toolchain w/ threads
|
|
|
---------------------------
|
|
|
+----
|
|
|
|
|
|
Note that this text is kept brief on purpose, so that it will fit on a
|
|
|
80-character terminal.
|
|
@@ -358,32 +358,32 @@ typically kernel modules or firmware. A comment should be added in the
|
|
|
Config.in file to express this dependency, similar to dependencies on
|
|
|
toolchain options. The general format is:
|
|
|
|
|
|
---------------------------
|
|
|
+----
|
|
|
foo needs a Linux kernel to be built
|
|
|
---------------------------
|
|
|
+----
|
|
|
|
|
|
If there is a dependency on both toolchain options and the Linux
|
|
|
kernel, use this format:
|
|
|
|
|
|
---------------------------
|
|
|
+----
|
|
|
foo needs a toolchain w/ featA, featB, featC and a Linux kernel to be built
|
|
|
---------------------------
|
|
|
+----
|
|
|
|
|
|
==== Dependencies on udev /dev management
|
|
|
|
|
|
If a package needs udev /dev management, it should depend on symbol
|
|
|
+BR2_PACKAGE_HAS_UDEV+, and the following comment should be added:
|
|
|
|
|
|
---------------------------
|
|
|
+----
|
|
|
foo needs udev /dev management
|
|
|
---------------------------
|
|
|
+----
|
|
|
|
|
|
If there is a dependency on both toolchain options and udev /dev
|
|
|
management, use this format:
|
|
|
|
|
|
---------------------------
|
|
|
+----
|
|
|
foo needs udev /dev management and a toolchain w/ featA, featB, featC
|
|
|
---------------------------
|
|
|
+----
|
|
|
|
|
|
==== Dependencies on features provided by virtual packages
|
|
|
|
|
@@ -578,7 +578,7 @@ not start before +S40network+. The scripts are started in alphabetical
|
|
|
order, so +S01syslogd+ starts before +S01watchdogd+, and +S02sysctl+
|
|
|
start thereafter.
|
|
|
|
|
|
-------------------------------
|
|
|
+----
|
|
|
01: #!/bin/sh
|
|
|
02:
|
|
|
03: DAEMON="syslogd"
|
|
@@ -634,7 +634,7 @@ start thereafter.
|
|
|
53: echo "Usage: $0 {start|stop|restart|reload}"
|
|
|
54: exit 1
|
|
|
55: esac
|
|
|
-------------------------------
|
|
|
+----
|
|
|
|
|
|
*Note:* programs that support reloading their configuration in some
|
|
|
fashion (+SIGHUP+) should provide a +reload()+ function similar to
|