]> Git Repo - buildroot-mgba.git/commitdiff
docs/manual/adding-packages-directory.txt: reorder select/depends
authorRomain Naour <[email protected]>
Sat, 29 Jan 2022 22:46:51 +0000 (23:46 +0100)
committerThomas Petazzoni <[email protected]>
Sun, 30 Jan 2022 14:12:28 +0000 (15:12 +0100)
From [1]:
"Even though the ordering has absolutely no consequences in Kconfig, it
 is not logical (when reading). It is more logical and far easier to
 understand when depends come first, followed by the selects."

 Also, the Config.in example in the manual suggests to use this coding
 style [2]."

Use the correct coding style in the chapter "Choosing depends on or select"
in the manual.

[1] http://lists.busybox.net/pipermail/buildroot/2015-October/142955.html
[2] https://nightly.buildroot.org/manual.html#_coding_style

Signed-off-by: Romain Naour <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
docs/manual/adding-packages-directory.txt

index 6c68d7aa674f9f72834542d4a49bde8921eba40f..e5c7462a6c998c58438cc68aeba769750e2a8aed 100644 (file)
@@ -196,13 +196,13 @@ config BR2_PACKAGE_E
 --------------------------
 config BR2_PACKAGE_D
        bool "Package D"
-       select BR2_PACKAGE_B
        depends on BR2_PACKAGE_A
+       select BR2_PACKAGE_B
 
 config BR2_PACKAGE_E
        bool "Package E"
-       select BR2_PACKAGE_D
        depends on BR2_PACKAGE_A
+       select BR2_PACKAGE_D
 --------------------------
 
 Overall, for package library dependencies, +select+ should be
This page took 0.034986 seconds and 4 git commands to generate.