1comment "fmlib needs a Linux kernel to be built"
2	depends on BR2_powerpc_e500mc || BR2_powerpc_e6500 || BR2_aarch64
3	depends on !BR2_LINUX_KERNEL
4
5config BR2_PACKAGE_FMLIB
6	bool "fmlib"
7	depends on BR2_powerpc_e500mc || BR2_powerpc_e6500 || BR2_aarch64
8	depends on BR2_LINUX_KERNEL
9	help
10	  The Frame Manager library provides Freescale PowerPC platforms
11	  an API on top of the Frame Manager driver ioctl calls, that
12	  provides a user space application with a simple way to
13	  configure driver parameters and PCD (parse - classify -
14	  distribute) rules.
15
16	  https://github.com/nxp-qoriq/fmlib
17
18if BR2_PACKAGE_FMLIB
19choice
20	prompt "QorIQ Target Family"
21	help
22	  Select the family of QorIQ processor.
23
24config BR2_FMLIB_QORIQ_FAMILY_P4080
25	bool "p40xx"
26	depends on BR2_powerpc_e500mc
27
28config BR2_FMLIB_QORIQ_FAMILY_T4240
29	bool "t42xx"
30	depends on BR2_powerpc_e500mc
31
32config BR2_FMLIB_QORIQ_FAMILY_T2080
33	bool "t208x"
34	depends on BR2_powerpc_e6500
35
36config BR2_FMLIB_QORIQ_FAMILY_ARM
37	bool "arm"
38	depends on BR2_aarch64
39
40endchoice
41
42config BR2_PACKAGE_FMLIB_ARCHTYPE
43	string
44	default "ppce500mc" if BR2_powerpc_e500mc
45	default "ppc64e6500" if BR2_powerpc_e6500 && BR2_powerpc64
46	default "ppc32e6500" if BR2_powerpc_e6500 && BR2_powerpc
47	default "arm" if BR2_aarch64
48
49config BR2_PACKAGE_FMLIB_PLATFORM
50	string
51	default "P4080" if BR2_FMLIB_QORIQ_FAMILY_P4080
52	default "T4240" if BR2_FMLIB_QORIQ_FAMILY_T4240
53	default "FMAN_V3H" if BR2_FMLIB_QORIQ_FAMILY_T2080
54	default "arm" if BR2_aarch64
55
56endif
57