mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-14 07:43:32 +08:00
be084204eb
When a package A depends on config option B and toolchain option C, then the comment that is given when C is not fulfilled should also depend on B. For example: config BR2_PACKAGE_A depends on BR2_B depends on BR2_LARGEFILE depends on BR2_WCHAR comment "A needs a toolchain w/ largefile, wchar" depends on !BR2_LARGEFILE || !BR2_WCHAR This comment should actually be: comment "A needs a toolchain w/ largefile, wchar" depends on BR2_B depends on !BR2_LARGEFILE || !BR2_WCHAR or if possible (typically when B is a package config option declared in that same Config.in file): if BR2_B comment "A needs a toolchain w/ largefile, wchar" depends on !BR2_LARGEFILE || !BR2_WCHAR [other config options depending on B] endif Otherwise, the comment would be visible even though the other dependencies are not met. This patch adds such missing dependencies, and changes existing such dependencies from depends on BR2_BASE_DEP && !BR2_TOOLCHAIN_USES_GLIBC to depends on BR2_BASE_DEP depends on !BR2_TOOLCHAIN_USES_GLIBC so that (positive) base dependencies are separate from the (negative) toolchain dependencies. This strategy makes it easier to write such comments (because one can simply copy the base dependency from the actual package config option), but also avoids complex and long boolean expressions. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> (untested) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
114 lines
2.9 KiB
Plaintext
114 lines
2.9 KiB
Plaintext
comment "openpowerlink needs a toolchain w/ C++, threads"
|
|
depends on BR2_i386 || BR2_x86_64
|
|
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
|
|
|
config BR2_PACKAGE_OPENPOWERLINK
|
|
bool "openpowerlink"
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
|
depends on BR2_i386 || BR2_x86_64
|
|
help
|
|
openPOWERLINK is an Open Source Industrial Ethernet
|
|
stack implementing the POWERLINK protocol for Managing Node
|
|
(MN, POWERLINK Master) and Controlled Node (CN, POWERLINK Slave).
|
|
|
|
It is provided by
|
|
SYSTEC electronic (http://www.systec-electronic.com),
|
|
B&R (http://www.br-automation.com) and
|
|
Kalycito (http://www.kalycito.com).
|
|
|
|
https://sourceforge.net/projects/openpowerlink/
|
|
|
|
if BR2_PACKAGE_OPENPOWERLINK
|
|
|
|
choice
|
|
prompt "stack implementation"
|
|
|
|
config BR2_PACKAGE_OPENPOWERLINK_LIBPCAP
|
|
bool "userspace stack"
|
|
select BR2_PACKAGE_LIBPCAP
|
|
help
|
|
The Linux userspace implementation of the openPOWERLINK stack provides
|
|
all functions for a software based POWERLINK solution running as Linux
|
|
userspace application. The stack uses the libpcap library for accessing
|
|
the network interface and is therefore totally independant of the used
|
|
network card and driver.
|
|
|
|
config BR2_PACKAGE_OPENPOWERLINK_KERNEL_MODULE
|
|
bool "kernel stack"
|
|
depends on BR2_LINUX_KERNEL
|
|
help
|
|
The openPOWERLINK stack may be implemented as Linux kernel module.
|
|
This solution provides the best performance, but is limited to the
|
|
available openPOWERLINK network drivers.
|
|
You may select BR2_PACKAGE_PCIUTILS for lscpi,
|
|
and BR2_PACKAGE_PROCPS for ps command.
|
|
These commands are used in EplLoad and EplUndload scripts.
|
|
|
|
endchoice
|
|
|
|
if BR2_PACKAGE_OPENPOWERLINK_KERNEL_MODULE
|
|
|
|
choice
|
|
prompt "select Ethernet Powerlink Driver"
|
|
|
|
config BR2_PACKAGE_OPENPOWERLINK_82573
|
|
bool "Intel 82573"
|
|
|
|
config BR2_PACKAGE_OPENPOWERLINK_8255x
|
|
bool "Intel 8255x"
|
|
|
|
config BR2_PACKAGE_OPENPOWERLINK_RTL8139
|
|
bool "Realtek RTL-8139"
|
|
|
|
endchoice
|
|
|
|
endif
|
|
|
|
choice
|
|
prompt "Select MN/CN mode"
|
|
|
|
config BR2_PACKAGE_OPENPOWERLINK_MN
|
|
bool "MN"
|
|
help
|
|
Enable Managing Node mode
|
|
|
|
config BR2_PACKAGE_OPENPOWERLINK_CN
|
|
bool "CN"
|
|
help
|
|
Enable Controlled Node mode
|
|
|
|
endchoice
|
|
|
|
menu "openpowerlink demos"
|
|
|
|
config BR2_PACKAGE_OPENPOWERLINK_DEMO_MN_CONSOLE
|
|
bool "console MN demo"
|
|
depends on BR2_PACKAGE_OPENPOWERLINK_MN
|
|
|
|
config BR2_PACKAGE_OPENPOWERLINK_DEMO_MN_QT
|
|
bool "qt MN demo"
|
|
depends on BR2_PACKAGE_OPENPOWERLINK_MN
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
select BR2_PACKAGE_QT
|
|
select BR2_PACKAGE_QT_STL
|
|
|
|
config BR2_PACKAGE_OPENPOWERLINK_DEMO_CN_CONSOLE
|
|
bool "console CN demo"
|
|
depends on !BR2_PACKAGE_OPENPOWERLINK_MN
|
|
|
|
config BR2_PACKAGE_OPENPOWERLINK_DEMO_LINUX_KERNEL
|
|
bool "kernel demo"
|
|
depends on BR2_PACKAGE_OPENPOWERLINK_KERNEL_MODULE
|
|
depends on BR2_PACKAGE_OPENPOWERLINK_MN
|
|
|
|
endmenu
|
|
|
|
config BR2_PACKAGE_OPENPOWERLINK_DEBUG_LEVEL
|
|
string "debug level for openpowerlink stack"
|
|
default "0xEC000000L"
|
|
help
|
|
Debug level to be used for openPOWERLINK debugging functions.
|
|
|
|
endif
|